#include <ogdf/basic/internal/graph_iterators.h>
Public Types | |
using | array_pointer_type = typename std::conditional< isConst, const ArrayType *, ArrayType * >::type |
Type of the array. More... | |
using | key_type = typename ArrayType::key_type |
Index type of the associated array. More... | |
using | value_type = typename std::conditional< isConst, const typename ArrayType::value_type, typename ArrayType::value_type >::type |
Value type of the associated array. More... | |
Public Member Functions | |
GraphArrayIteratorBase () | |
Constructor. More... | |
template<bool isArgConst, typename std::enable_if< isConst||!isArgConst, int >::type = 0> | |
GraphArrayIteratorBase (const GraphArrayIteratorBase< ArrayType, isArgConst > &iter) | |
Constructor. More... | |
GraphArrayIteratorBase (const GraphArrayIteratorBase< ArrayType, isConst > &iter) | |
Copy constructor. More... | |
GraphArrayIteratorBase (key_type key, array_pointer_type a) | |
Constructor. More... | |
key_type | key () const |
Index in m_array. More... | |
bool | operator!= (const GraphArrayIteratorBase< ArrayType, isConst > &iter) const |
Inequality operator. More... | |
value_type & | operator* () const |
Value of m_array at index m_key. More... | |
GraphArrayIteratorBase< ArrayType, isConst > & | operator++ () |
Increment operator (prefix). More... | |
GraphArrayIteratorBase< ArrayType, isConst > | operator++ (int) |
Increment operator (postfix). More... | |
GraphArrayIteratorBase< ArrayType, isConst > & | operator-- () |
Decrement operator (prefix). More... | |
GraphArrayIteratorBase< ArrayType, isConst > | operator-- (int) |
Decrement operator (postfix). More... | |
GraphArrayIteratorBase< ArrayType, isConst > & | operator= (const GraphArrayIteratorBase< ArrayType, isConst > &iter) |
Copy assignment operator. More... | |
bool | operator== (const GraphArrayIteratorBase< ArrayType, isConst > &iter) const |
Equality operator. More... | |
value_type & | value () const |
Value of m_array at index m_key. More... | |
Private Attributes | |
array_pointer_type | m_array |
The array. More... | |
key_type | m_key |
Index in m_array. More... | |
Friends | |
class | GraphArrayIteratorBase< ArrayType, true > |
Definition at line 112 of file graph_iterators.h.
using ogdf::internal::GraphArrayIteratorBase< ArrayType, isConst >::array_pointer_type = typename std::conditional<isConst, const ArrayType*, ArrayType*>::type |
Type of the array.
Definition at line 130 of file graph_iterators.h.
using ogdf::internal::GraphArrayIteratorBase< ArrayType, isConst >::key_type = typename ArrayType::key_type |
Index type of the associated array.
Definition at line 125 of file graph_iterators.h.
using ogdf::internal::GraphArrayIteratorBase< ArrayType, isConst >::value_type = typename std::conditional<isConst, const typename ArrayType::value_type, typename ArrayType::value_type>::type |
Value type of the associated array.
Definition at line 128 of file graph_iterators.h.
|
inline |
Constructor.
Definition at line 133 of file graph_iterators.h.
|
inline |
Constructor.
Definition at line 136 of file graph_iterators.h.
|
inline |
Constructor.
Definition at line 140 of file graph_iterators.h.
|
inline |
Copy constructor.
Definition at line 145 of file graph_iterators.h.
|
inline |
Index in m_array.
Definition at line 157 of file graph_iterators.h.
|
inline |
Inequality operator.
Definition at line 171 of file graph_iterators.h.
|
inline |
Value of m_array at index m_key.
Definition at line 163 of file graph_iterators.h.
|
inline |
Increment operator (prefix).
Definition at line 176 of file graph_iterators.h.
|
inline |
Increment operator (postfix).
Definition at line 183 of file graph_iterators.h.
|
inline |
Decrement operator (prefix).
Definition at line 190 of file graph_iterators.h.
|
inline |
Decrement operator (postfix).
Definition at line 197 of file graph_iterators.h.
|
inline |
Copy assignment operator.
Definition at line 149 of file graph_iterators.h.
|
inline |
Equality operator.
Definition at line 166 of file graph_iterators.h.
|
inline |
Value of m_array at index m_key.
Definition at line 160 of file graph_iterators.h.
|
friend |
Definition at line 121 of file graph_iterators.h.
|
private |
The array.
Definition at line 205 of file graph_iterators.h.
|
private |
Index in m_array.
Definition at line 204 of file graph_iterators.h.