The parameterized class SListIterator<E> encapsulates a constant pointer to an slist element. More...
#include <ogdf/basic/SList.h>
Public Member Functions | |
| SListConstIterator () | |
| Constructs an iterator pointing to no element. | |
| SListConstIterator (const SListElement< E > *pX) | |
| Constructs an iterator pointing to pX. | |
| SListConstIterator (const SListIterator< E > &it) | |
| Constructs an iterator that is a copy of it. | |
| SListConstIterator (const SListConstIterator &it) | |
| Constructs an iterator that is a copy of it. | |
| bool | valid () const |
| Returns true iff the iterator points to an element. | |
| bool | operator== (const SListConstIterator< E > &it) const |
| Equality operator. | |
| bool | operator!= (const SListConstIterator< E > &it) const |
| Inequality operator. | |
| SListConstIterator< E > | succ () const |
| Returns successor iterator. | |
| const E & | operator* () const |
| Returns a reference to the element content. | |
| SListConstIterator< E > & | operator= (const SListConstIterator< E > &it) |
| Assignment operator. | |
| SListConstIterator< E > & | operator++ () |
| Increment operator (prefix). | |
| SListConstIterator< E > | operator++ (int) |
| Increment operator (postfix). | |
Private Member Functions | |
| operator const SListElement< E > * () | |
| Conversion to pointer to slist element. | |
Private Attributes | |
| const SListElement< E > * | m_pX |
| Pointer to slist element. | |
Friends | |
| class | SListPure< E > |
The parameterized class SListIterator<E> encapsulates a constant pointer to an 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. In contrast to SListIterator, it is not possible to change the slist element pointed to.
| ogdf::SListConstIterator< E >::SListConstIterator | ( | ) | [inline] |
| ogdf::SListConstIterator< E >::SListConstIterator | ( | const SListElement< E > * | pX | ) | [inline] |
| ogdf::SListConstIterator< E >::SListConstIterator | ( | const SListIterator< E > & | it | ) | [inline] |
| ogdf::SListConstIterator< E >::SListConstIterator | ( | const SListConstIterator< E > & | it | ) | [inline] |
| ogdf::SListConstIterator< E >::operator const SListElement< E > * | ( | ) | [inline, private] |
| bool ogdf::SListConstIterator< E >::operator!= | ( | const SListConstIterator< E > & | it | ) | const [inline] |
| const E& ogdf::SListConstIterator< E >::operator* | ( | ) | const [inline] |
| SListConstIterator<E>& ogdf::SListConstIterator< E >::operator++ | ( | ) | [inline] |
| SListConstIterator<E> ogdf::SListConstIterator< E >::operator++ | ( | int | ) | [inline] |
| SListConstIterator<E>& ogdf::SListConstIterator< E >::operator= | ( | const SListConstIterator< E > & | it | ) | [inline] |
| bool ogdf::SListConstIterator< E >::operator== | ( | const SListConstIterator< E > & | it | ) | const [inline] |
| SListConstIterator<E> ogdf::SListConstIterator< E >::succ | ( | ) | const [inline] |
| bool ogdf::SListConstIterator< E >::valid | ( | ) | const [inline] |
const SListElement<E>* ogdf::SListConstIterator< E >::m_pX [private] |