Iterator for single linked template list. More...
#include <tlist.h>
Public Member Functions | |
TLinkedListIterator (const TLinkedList< T > &) | |
virtual bool | done () const |
virtual T & | next () |
virtual T & | previous () |
virtual T & | current () const |
virtual void | first () |
virtual void | last () |
const TLinkedList< T > & | list () const |
Return list reference. |
Iterator for single linked template list.
TLinkedListIterator | ( | const TLinkedList< T > & | L | ) | [inline] |
bool done | ( | ) | const [inline, virtual] |
Check if end of container is reached.
Implements TIterator< T >.
T & next | ( | ) | [inline, virtual] |
Returns the current data and advances the iterator. postfix as in t = c++;.
Implements TIterator< T >.
T & previous | ( | ) | [inline, virtual] |
Returns the current data and backup. postfix as in t = c--;.
Implements TIterator< T >.
T & current | ( | ) | const [inline, virtual] |
Returns the current data.
Implements TIterator< T >.
void first | ( | ) | [inline, virtual] |
Move to first data.
Implements TIterator< T >.
void last | ( | ) | [inline, virtual] |
Move to last data.
Implements TIterator< T >.
const TLinkedList< T > & list | ( | ) | const [inline] |
Return list reference.