Encapsulates a pointer to an ogdf::SList element. More...
#include <ogdf/basic/SList.h>
Public Member Functions | |
SListIteratorBase () | |
Constructs an invalid iterator. | |
SListIteratorBase (const SListIterator< E > &it) | |
Copy constructor. | |
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 . | |
SListIteratorBase (ListElem *pX) | |
Constructs an iterator that points to pX . | |
bool | operator!= (const SListIteratorBase< E, isConst > &it) const |
Inequality operator. | |
Elem & | operator* () const |
Returns a reference to the element content. | |
SListIteratorBase< E, isConst > & | operator++ () |
Increment operator (prefix). | |
SListIteratorBase< E, isConst > | operator++ (int) |
Increment operator (postfix). | |
SListIteratorBase< E, isConst > & | operator= (const SListIterator< E > &it) |
Assignment operator. | |
bool | operator== (const SListIteratorBase< E, isConst > &it) const |
Equality operator. | |
SListIteratorBase< E, isConst > | succ () const |
Returns successor iterator. | |
bool | valid () const |
Returns true iff the iterator points to an element. | |
Private Types | |
using | Elem = typename std::conditional< isConst, const E, E >::type |
The underlying type, depending on isConst. | |
using | ListElem = typename std::conditional< isConst, const SListElement< E >, SListElement< E > >::type |
The underlying list element, depending on isConst. | |
Private Member Functions | |
operator ListElem * () | |
Conversion to pointer to slist element. | |
Private Attributes | |
ListElem * | m_pX |
Pointer to slist element. | |
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 |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |