The parameterized class ListIterator<E> encapsulates a constant pointer to a list element. More...
#include <ogdf/basic/List.h>
Public Member Functions | |
| ListConstIterator () | |
| Constructs an iterator pointing to no element. | |
| ListConstIterator (const ListElement< E > *pX) | |
| Constructs an iterator pointing to pX. | |
| ListConstIterator (const ListIterator< E > &it) | |
| Constructs an iterator that is a copy of it. | |
| ListConstIterator (const ListConstIterator &it) | |
| Constructs an iterator that is a copy of it. | |
| bool | operator!= (const ListConstIterator< E > &it) const |
| Inequality operator. | |
| const E & | operator* () const |
| Returns a reference to the element content. | |
| ListConstIterator< E > & | operator++ () |
| Increment operator (prefix). | |
| ListConstIterator< E > | operator++ (int) |
| Increment operator (postfix). | |
| ListConstIterator< E > & | operator-- () |
| Decrement operator (prefix). | |
| ListConstIterator< E > | operator-- (int) |
| Decrement operator (postfix). | |
| ListConstIterator< E > & | operator= (const ListConstIterator< E > &it) |
| Assignment operator. | |
| bool | operator== (const ListConstIterator< E > &it) const |
| Equality operator. | |
| ListConstIterator< E > | pred () const |
| Returns predecessor iterator. | |
| ListConstIterator< 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 > * () | |
| Conversion to pointer to list element. | |
Private Attributes | |
| const ListElement< E > * | m_pX |
Friends | |
| class | ListPure< E > |
The parameterized class ListIterator<E> encapsulates a constant pointer to a list 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. In contrast to ListIterator, it is not possible to change the list element pointed to.
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |