#include <IntrusiveList.h>
Inheritance diagram for IntrusiveListIter< T, DerivedListNode >:
Public Member Functions | |
IntrusiveListIter () | |
Constructs a singular iterator. | |
IntrusiveListIter (IntrusiveList< T, DerivedListNode > const &list) | |
Constructs an iterator positioned at the front of a given list. | |
T * | operator-> () const |
| |
operator T * () const | |
| |
T & | operator * () const |
| |
void | repositionToFront (IntrusiveList< T, DerivedListNode > const &list) |
Repositions to the front of a given list. | |
void | operator++ () |
Advances iterator position to next node. | |
Protected Member Functions | |
IntrusiveListNode * | getCurrent () const |
void | repositionToFront (RawIntrusiveList const &l) |
Protected Attributes | |
IntrusiveListNode * | pCurr |
Private Types | |
typedef RawIntrusiveListIter | super |
Definition at line 114 of file IntrusiveList.h.
typedef RawIntrusiveListIter IntrusiveListIter< T, DerivedListNode >::super [private] |
Definition at line 116 of file IntrusiveList.h.
IntrusiveListIter< T, DerivedListNode >::IntrusiveListIter | ( | ) | [inline, explicit] |
IntrusiveListIter< T, DerivedListNode >::IntrusiveListIter | ( | IntrusiveList< T, DerivedListNode > const & | list | ) | [inline, explicit] |
Constructs an iterator positioned at the front of a given list.
list | the list to access |
Definition at line 131 of file IntrusiveList.h.
00133 : super(list) 00134 { 00135 }
T* IntrusiveListIter< T, DerivedListNode >::operator-> | ( | ) | const [inline] |
Definition at line 140 of file IntrusiveList.h.
References RawIntrusiveListIter::getCurrent().
00141 { 00142 return static_cast<T *>( 00143 static_cast<DerivedListNode *>(getCurrent())); 00144 }
IntrusiveListIter< T, DerivedListNode >::operator T * | ( | ) | const [inline] |
Definition at line 149 of file IntrusiveList.h.
References RawIntrusiveListIter::getCurrent().
00150 { 00151 return static_cast<T *>( 00152 static_cast<DerivedListNode *>(getCurrent())); 00153 }
T& IntrusiveListIter< T, DerivedListNode >::operator * | ( | ) | const [inline] |
Definition at line 158 of file IntrusiveList.h.
References RawIntrusiveListIter::getCurrent().
00159 { 00160 return *static_cast<T *>( 00161 static_cast<DerivedListNode *>(getCurrent())); 00162 }
void IntrusiveListIter< T, DerivedListNode >::repositionToFront | ( | IntrusiveList< T, DerivedListNode > const & | list | ) | [inline] |
Repositions to the front of a given list.
list | the list to access |
Definition at line 169 of file IntrusiveList.h.
References RawIntrusiveListIter::repositionToFront().
00171 { 00172 super::repositionToFront(list); 00173 }
IntrusiveListNode* RawIntrusiveListIter::getCurrent | ( | ) | const [inline, protected, inherited] |
Definition at line 125 of file RawIntrusiveList.h.
Referenced by IntrusiveListIter< T, DerivedListNode >::operator *(), IntrusiveListIter< T, DerivedListNode >::operator T *(), and IntrusiveListIter< T, DerivedListNode >::operator->().
00126 { 00127 return pCurr; 00128 }
void RawIntrusiveListIter::repositionToFront | ( | RawIntrusiveList const & | l | ) | [inline, protected, inherited] |
Definition at line 130 of file RawIntrusiveList.h.
References RawIntrusiveList::pFront.
Referenced by IntrusiveListIter< T, DerivedListNode >::repositionToFront().
00131 { 00132 pCurr = l.pFront; 00133 }
void RawIntrusiveListIter::operator++ | ( | ) | [inline, inherited] |
Advances iterator position to next node.
Definition at line 139 of file RawIntrusiveList.h.
References IntrusiveListNode::pNext.
IntrusiveListNode* RawIntrusiveListIter::pCurr [protected, inherited] |
Definition at line 113 of file RawIntrusiveList.h.