|
| ListIteratorBase () |
| Constructs an invalid iterator.
|
|
template<bool isArgConst, typename std::enable_if< isConst||!isArgConst, int >::type = 0, bool isArgReverse> |
| ListIteratorBase (const ListIteratorBase< E, isArgConst, isArgReverse > &it) |
| Constructs an iterator that is a copy of it .
|
|
| ListIteratorBase (const ListIteratorBase< E, isConst, isReverse > &it) |
| Copy constructor.
|
|
| ListIteratorBase (ListElem *pX) |
| Constructs an iterator that points to pX .
|
|
bool | operator!= (const ListIteratorBase< E, isConst, isReverse > &it) const |
| Inequality operator.
|
|
Elem & | operator* () const |
| Returns a reference to the element content.
|
|
ListIteratorBase< E, isConst, isReverse > & | operator++ () |
| Increment operator (prefix).
|
|
ListIteratorBase< E, isConst, isReverse > | operator++ (int) |
| Increment operator (postfix).
|
|
ListIteratorBase< E, isConst, isReverse > & | operator-- () |
| Decrement operator (prefix).
|
|
ListIteratorBase< E, isConst, isReverse > | operator-- (int) |
| Decrement operator (postfix).
|
|
ListIteratorBase< E, isConst, isReverse > & | operator= (const ListIteratorBase< E, isConst, isReverse > &it) |
| Assignment operator.
|
|
bool | operator== (const ListIteratorBase< E, isConst, isReverse > &it) const |
| Equality operator.
|
|
ListIteratorBase< E, isConst, isReverse > | pred () const |
| Returns predecessor iterator.
|
|
ListIteratorBase< E, isConst, isReverse > | succ () const |
| Returns successor iterator.
|
|
bool | valid () const |
| Returns true iff the iterator points to an element.
|
|
template<
class E,
bool isConst,
bool isReverse>
class ogdf::ListIteratorBase< E, isConst, isReverse >
Encapsulates a 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.
- Template Parameters
-
E | The type of element. |
isConst | True iff this iterator allows only const-access to the element. |
isReverse | True iff this iterator is a reverse iterator. |
Definition at line 103 of file List.h.