Encapsulates a pointer to an ogdf::SList element. More...
#include <ogdf/basic/SList.h>
Public Member Functions | |
SListIteratorBase () | |
Constructs an invalid iterator. More... | |
SListIteratorBase (const SListIterator< E > &it) | |
Copy constructor. More... | |
template<bool isArgConst, typename std::enable_if< isConst||!isArgConst, int >::type = 0> | |
SListIteratorBase (const SListIteratorBase< E, isArgConst > &it) | |
Constructs an iterator that is a copy of it . More... | |
SListIteratorBase (ListElem *pX) | |
Constructs an iterator that points to pX . More... | |
SListPure< E > * | listOf () |
Returns the list that this iterator belongs to. More... | |
bool | operator!= (const SListIteratorBase< E, isConst > &it) const |
Inequality operator. More... | |
Elem & | operator* () const |
Returns a reference to the element content. More... | |
SListIteratorBase< E, isConst > & | operator++ () |
Increment operator (prefix). More... | |
SListIteratorBase< E, isConst > | operator++ (int) |
Increment operator (postfix). More... | |
SListIteratorBase< E, isConst > & | operator= (const SListIterator< E > &it) |
Assignment operator. More... | |
bool | operator== (const SListIteratorBase< E, isConst > &it) const |
Equality operator. More... | |
SListIteratorBase< E, isConst > | succ () const |
Returns successor iterator. More... | |
bool | valid () const |
Returns true iff the iterator points to an element. More... | |
Private Types | |
using | Elem = typename std::conditional< isConst, const E, E >::type |
The underlying type, depending on isConst. More... | |
using | ListElem = typename std::conditional< isConst, const SListElement< E >, SListElement< E > >::type |
The underlying list element, depending on isConst. More... | |
Private Member Functions | |
operator ListElem * () | |
Conversion to pointer to slist element. More... | |
Private Attributes | |
ListElem * | m_pX |
Pointer to slist element. More... | |
Friends | |
class | SListIteratorBase< E, !isConst > |
class | SListPure< E > |
Encapsulates a pointer to an ogdf::SList element.
It is used in order to iterate over singly linked lists, and to specify a position in a singly linked list. It is possible that an iterator encapsulates a null pointer.
E | The type of element. |
isConst | True iff this iterator allows only const-access to the element. |
|
private |
|
private |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |
|
private |