|
| ListIteratorBase () |
| Constructs an invalid iterator. More...
|
|
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 . More...
|
|
| ListIteratorBase (const ListIteratorBase< E, isConst, isReverse > &it) |
| Copy constructor. More...
|
|
| ListIteratorBase (ListElem *pX) |
| Constructs an iterator that points to pX . More...
|
|
ListPure< E > * | listOf () |
| Returns the list that this iterator belongs to. More...
|
|
| operator ListElem * () |
| Conversion to pointer to list element. More...
|
|
bool | operator!= (const ListIteratorBase< E, isConst, isReverse > &it) const |
| Inequality operator. More...
|
|
Elem & | operator* () const |
| Returns a reference to the element content. More...
|
|
ListIteratorBase< E, isConst, isReverse > & | operator++ () |
| Increment operator (prefix). More...
|
|
ListIteratorBase< E, isConst, isReverse > | operator++ (int) |
| Increment operator (postfix). More...
|
|
ListIteratorBase< E, isConst, isReverse > & | operator-- () |
| Decrement operator (prefix). More...
|
|
ListIteratorBase< E, isConst, isReverse > | operator-- (int) |
| Decrement operator (postfix). More...
|
|
ListIteratorBase< E, isConst, isReverse > & | operator= (const ListIteratorBase< E, isConst, isReverse > &it) |
| Assignment operator. More...
|
|
bool | operator== (const ListIteratorBase< E, isConst, isReverse > &it) const |
| Equality operator. More...
|
|
ListIteratorBase< E, isConst, isReverse > | pred () const |
| Returns predecessor iterator. More...
|
|
ListIteratorBase< E, isConst, isReverse > | succ () const |
| Returns successor iterator. More...
|
|
bool | valid () const |
| Returns true iff the iterator points to an element. More...
|
|
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 51 of file List.h.
template<class E , bool isConst, bool isReverse>
template<bool isArgConst, typename std::enable_if< isConst||!isArgConst, int >::type = 0, bool isArgReverse>
Constructs an iterator that is a copy of it
.
Definition at line 144 of file List.h.