STL style iterator for access to elements. More...
#include <IntrusiveDList.h>
Public Types | |
typedef iterator | self |
Self reference type. | |
typedef T | value_type |
Referenced type for iterator. | |
typedef int | difference_type |
Distance type. | |
typedef T * | pointer |
Pointer to referent. | |
typedef T & | reference |
Reference to referent. | |
typedef std::bidirectional_iterator_tag | iterator_category |
Public Member Functions | |
iterator () | |
Default constructor. | |
bool | operator== (self const &that) const |
Equality test. | |
self & | operator++ () |
Pre-increment. | |
self & | operator-- () |
Pre-decrement. | |
self | operator++ (int) |
Post-increment. | |
self | operator-- (int) |
Post-decrement. | |
bool | operator!= (self const &that) const |
Inequality test. | |
reference | operator* () |
Dereference. | |
pointer | operator-> () |
Dereference. | |
Protected Member Functions | |
iterator (IntrusiveDList *container, T *elt) | |
Internal constructor for containers. | |
Protected Attributes | |
IntrusiveDList * | _list |
List for this iterator. | |
T * | _elt |
Referenced element. | |
Friends | |
class | IntrusiveDList |
STL style iterator for access to elements.
Definition at line 113 of file IntrusiveDList.h.
typedef int IntrusiveDList< T, N, P >::iterator::difference_type |
Distance type.
Definition at line 118 of file IntrusiveDList.h.
typedef std::bidirectional_iterator_tag IntrusiveDList< T, N, P >::iterator::iterator_category |
Definition at line 121 of file IntrusiveDList.h.
typedef T* IntrusiveDList< T, N, P >::iterator::pointer |
Pointer to referent.
Definition at line 119 of file IntrusiveDList.h.
typedef T& IntrusiveDList< T, N, P >::iterator::reference |
Reference to referent.
Definition at line 120 of file IntrusiveDList.h.
typedef iterator IntrusiveDList< T, N, P >::iterator::self |
Self reference type.
Definition at line 116 of file IntrusiveDList.h.
typedef T IntrusiveDList< T, N, P >::iterator::value_type |
Referenced type for iterator.
Definition at line 117 of file IntrusiveDList.h.
IntrusiveDList< T, N, P >::iterator::iterator | ( | ) | [inline] |
Default constructor.
Definition at line 124 of file IntrusiveDList.h.
IntrusiveDList< T, N, P >::iterator::iterator | ( | IntrusiveDList * | container, | |
T * | elt | |||
) | [inline, protected] |
Internal constructor for containers.
container | Container for iteration. | |
elt | Initial referent |
Definition at line 174 of file IntrusiveDList.h.
bool IntrusiveDList< T, N, P >::iterator::operator!= | ( | self const & | that | ) | const [inline] |
Inequality test.
true
if this
and do not refer to the same object. Definition at line 163 of file IntrusiveDList.h.
reference IntrusiveDList< T, N, P >::iterator::operator* | ( | ) | [inline] |
Dereference.
Definition at line 166 of file IntrusiveDList.h.
References IntrusiveDList< T, N, P >::iterator::_elt.
self IntrusiveDList< T, N, P >::iterator::operator++ | ( | int | ) | [inline] |
Post-increment.
Move to the next element in the list.
Definition at line 148 of file IntrusiveDList.h.
self& IntrusiveDList< T, N, P >::iterator::operator++ | ( | ) | [inline] |
Pre-increment.
Move to the next element in the list.
Definition at line 133 of file IntrusiveDList.h.
References IntrusiveDList< T, N, P >::iterator::_elt.
self IntrusiveDList< T, N, P >::iterator::operator-- | ( | int | ) | [inline] |
Post-decrement.
Move to the previous element in the list.
Definition at line 156 of file IntrusiveDList.h.
self& IntrusiveDList< T, N, P >::iterator::operator-- | ( | ) | [inline] |
Pre-decrement.
Move to the previous element in the list.
Definition at line 140 of file IntrusiveDList.h.
References IntrusiveDList< T, N, P >::iterator::_elt, IntrusiveDList< T, N, P >::iterator::_list, and IntrusiveDList< T, N, P >::_tail.
pointer IntrusiveDList< T, N, P >::iterator::operator-> | ( | ) | [inline] |
Dereference.
Definition at line 169 of file IntrusiveDList.h.
References IntrusiveDList< T, N, P >::iterator::_elt.
bool IntrusiveDList< T, N, P >::iterator::operator== | ( | self const & | that | ) | const [inline] |
Equality test.
true
if this
and that refer to the same object. Definition at line 127 of file IntrusiveDList.h.
References IntrusiveDList< T, N, P >::iterator::_elt, and IntrusiveDList< T, N, P >::iterator::_list.
friend class IntrusiveDList [friend] |
Definition at line 114 of file IntrusiveDList.h.
T* IntrusiveDList< T, N, P >::iterator::_elt [protected] |
Referenced element.
Definition at line 172 of file IntrusiveDList.h.
Referenced by IntrusiveDList< T, N, P >::iterator::operator*(), IntrusiveDList< T, N, P >::iterator::operator++(), IntrusiveDList< T, N, P >::iterator::operator--(), IntrusiveDList< T, N, P >::iterator::operator->(), and IntrusiveDList< T, N, P >::iterator::operator==().
IntrusiveDList* IntrusiveDList< T, N, P >::iterator::_list [protected] |
List for this iterator.
Definition at line 171 of file IntrusiveDList.h.
Referenced by IntrusiveDList< T, N, P >::iterator::operator--(), and IntrusiveDList< T, N, P >::iterator::operator==().