Intel(R) Threading Building Blocks Doxygen Documentation  version 4.2.3
tbb::internal::intrusive_list_base< List, T >::iterator_impl< Iterator > Class Template Reference
Inheritance diagram for tbb::internal::intrusive_list_base< List, T >::iterator_impl< Iterator >:
Collaboration diagram for tbb::internal::intrusive_list_base< List, T >::iterator_impl< Iterator >:

Public Member Functions

 iterator_impl ()
 
Iterator & operator= (const Iterator &it)
 
Iterator & operator= (const T &val)
 
bool operator== (const Iterator &it) const
 
bool operator!= (const Iterator &it) const
 
Iterator & operator++ ()
 
Iterator & operator-- ()
 
Iterator operator++ (int)
 
Iterator operator-- (int)
 

Protected Member Functions

 iterator_impl (intrusive_list_node *pos)
 
T & item () const
 

Private Member Functions

Iterator & self ()
 

Private Attributes

intrusive_list_nodemy_pos
 Node the iterator points to at the moment. More...
 

Detailed Description

template<class List, class T>
template<class Iterator>
class tbb::internal::intrusive_list_base< List, T >::iterator_impl< Iterator >

Definition at line 53 of file intrusive_list.h.

Constructor & Destructor Documentation

◆ iterator_impl() [1/2]

template<class List, class T>
template<class Iterator>
tbb::internal::intrusive_list_base< List, T >::iterator_impl< Iterator >::iterator_impl ( intrusive_list_node pos)
inlineprotected

Definition at line 60 of file intrusive_list.h.

61  : my_pos(pos)
62  {}
intrusive_list_node * my_pos
Node the iterator points to at the moment.

◆ iterator_impl() [2/2]

template<class List, class T>
template<class Iterator>
tbb::internal::intrusive_list_base< List, T >::iterator_impl< Iterator >::iterator_impl ( )
inline

Definition at line 69 of file intrusive_list.h.

69 : my_pos(NULL) {}
intrusive_list_node * my_pos
Node the iterator points to at the moment.

Member Function Documentation

◆ item()

template<class List, class T>
template<class Iterator>
T& tbb::internal::intrusive_list_base< List, T >::iterator_impl< Iterator >::item ( ) const
inlineprotected

Definition at line 64 of file intrusive_list.h.

64  {
66  }
static T & item(intrusive_list_node *node)
intrusive_list_node * my_pos
Node the iterator points to at the moment.

◆ operator!=()

template<class List, class T>
template<class Iterator>
bool tbb::internal::intrusive_list_base< List, T >::iterator_impl< Iterator >::operator!= ( const Iterator &  it) const
inline

Definition at line 83 of file intrusive_list.h.

83  {
84  return my_pos != it.my_pos;
85  }
intrusive_list_node * my_pos
Node the iterator points to at the moment.

◆ operator++() [1/2]

template<class List, class T>
template<class Iterator>
Iterator& tbb::internal::intrusive_list_base< List, T >::iterator_impl< Iterator >::operator++ ( )
inline

Definition at line 87 of file intrusive_list.h.

87  {
89  return self();
90  }
intrusive_list_node * my_next_node
intrusive_list_node * my_pos
Node the iterator points to at the moment.

◆ operator++() [2/2]

template<class List, class T>
template<class Iterator>
Iterator tbb::internal::intrusive_list_base< List, T >::iterator_impl< Iterator >::operator++ ( int  )
inline

Definition at line 97 of file intrusive_list.h.

97  {
98  Iterator result = self();
99  ++(*this);
100  return result;
101  }

◆ operator--() [1/2]

template<class List, class T>
template<class Iterator>
Iterator& tbb::internal::intrusive_list_base< List, T >::iterator_impl< Iterator >::operator-- ( )
inline

Definition at line 92 of file intrusive_list.h.

92  {
94  return self();
95  }
intrusive_list_node * my_prev_node
intrusive_list_node * my_pos
Node the iterator points to at the moment.

◆ operator--() [2/2]

template<class List, class T>
template<class Iterator>
Iterator tbb::internal::intrusive_list_base< List, T >::iterator_impl< Iterator >::operator-- ( int  )
inline

Definition at line 103 of file intrusive_list.h.

103  {
104  Iterator result = self();
105  --(*this);
106  return result;
107  }

◆ operator=() [1/2]

template<class List, class T>
template<class Iterator>
Iterator& tbb::internal::intrusive_list_base< List, T >::iterator_impl< Iterator >::operator= ( const Iterator &  it)
inline

Definition at line 71 of file intrusive_list.h.

71  {
72  return my_pos = it.my_pos;
73  }
intrusive_list_node * my_pos
Node the iterator points to at the moment.

◆ operator=() [2/2]

template<class List, class T>
template<class Iterator>
Iterator& tbb::internal::intrusive_list_base< List, T >::iterator_impl< Iterator >::operator= ( const T &  val)
inline

Definition at line 75 of file intrusive_list.h.

75  {
76  return my_pos = &node(val);
77  }
intrusive_list_node * my_pos
Node the iterator points to at the moment.
static intrusive_list_node & node(T &item)

◆ operator==()

template<class List, class T>
template<class Iterator>
bool tbb::internal::intrusive_list_base< List, T >::iterator_impl< Iterator >::operator== ( const Iterator &  it) const
inline

Definition at line 79 of file intrusive_list.h.

79  {
80  return my_pos == it.my_pos;
81  }
intrusive_list_node * my_pos
Node the iterator points to at the moment.

◆ self()

template<class List, class T>
template<class Iterator>
Iterator& tbb::internal::intrusive_list_base< List, T >::iterator_impl< Iterator >::self ( )
inlineprivate

Definition at line 54 of file intrusive_list.h.

54 { return *static_cast<Iterator*>(this); }

Member Data Documentation

◆ my_pos

template<class List, class T>
template<class Iterator>
intrusive_list_node* tbb::internal::intrusive_list_base< List, T >::iterator_impl< Iterator >::my_pos
private

Node the iterator points to at the moment.

Definition at line 57 of file intrusive_list.h.


The documentation for this class was generated from the following file:

Copyright © 2005-2019 Intel Corporation. All Rights Reserved.

Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are registered trademarks or trademarks of Intel Corporation or its subsidiaries in the United States and other countries.

* Other names and brands may be claimed as the property of others.