Iterator for doubly linked template list. More...
#include <tdlist.h>

Public Member Functions | |
| TDLinkedListIterator (const TDLinkedList< T > &list) | |
| virtual bool | done () const |
| virtual T & | next () |
| virtual T & | previous () |
| virtual T & | current () const |
| virtual void | first () |
| virtual void | last () |
| const TDLinkedList< T > & | list () const |
| Return list reference. | |
Iterator for doubly linked template list.
Implements the TIterator interface for TDLinkedList.
| TDLinkedListIterator | ( | const TDLinkedList< T > & | list | ) | [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 TDLinkedList< T > & list | ( | ) | const [inline] |
Return list reference.