The parameterized class ListIterator<E> encapsulates a pointer to a dlist element. More...
#include <ogdf/basic/List.h>
Public Member Functions | |
| ListIterator () | |
| Constructs an iterator pointing to no element. | |
| ListIterator (ListElement< E > *pX) | |
| Constructs an iterator pointing to pX. | |
| ListIterator (const ListIterator< E > &it) | |
| Constructs an iterator that is a copy of it. | |
| bool | operator!= (const ListIterator< E > &it) const |
| Inequality operator. | |
| E & | operator* () const |
| Returns a reference to the element content. | |
| ListIterator< E > & | operator++ () |
| Increment operator (prefix). | |
| ListIterator< E > | operator++ (int) |
| Increment operator (postfix). | |
| ListIterator< E > & | operator-- () |
| Decrement operator (prefix). | |
| ListIterator< E > | operator-- (int) |
| Decrement operator (postfix). | |
| ListIterator< E > & | operator= (const ListIterator< E > &it) |
| Assignment operator. | |
| bool | operator== (const ListIterator< E > &it) const |
| Equality operator. | |
| ListIterator< E > | pred () const |
| Returns predecessor iterator. | |
| ListIterator< E > | succ () const |
| Returns successor iterator. | |
| bool | valid () const |
| Returns true iff the iterator points to an element. | |
Private Member Functions | |
| operator const ListElement< E > * () const | |
| Conversion to pointer to list element. | |
| operator ListElement< E > * () | |
| Conversion to pointer to list element. | |
Private Attributes | |
| ListElement< E > * | m_pX |
Friends | |
| class | ListConstIterator< E > |
| class | ListPure< E > |
The parameterized class ListIterator<E> encapsulates a pointer to a dlist element.
It is used in order to iterate over doubly linked lists, and to specify a position in a doubly linked list. It is possible that an iterator encapsulates a null pointer.
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
private |