#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 110 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 127 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 122 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 125 of file graph_iterators.h.
|
inline |
Constructor.
Definition at line 130 of file graph_iterators.h.
|
inline |
Constructor.
Definition at line 133 of file graph_iterators.h.
|
inline |
Constructor.
Definition at line 137 of file graph_iterators.h.
|
inline |
Copy constructor.
Definition at line 142 of file graph_iterators.h.
|
inline |
Index in m_array.
Definition at line 154 of file graph_iterators.h.
|
inline |
Inequality operator.
Definition at line 168 of file graph_iterators.h.
|
inline |
Value of m_array at index m_key.
Definition at line 160 of file graph_iterators.h.
|
inline |
Increment operator (prefix).
Definition at line 173 of file graph_iterators.h.
|
inline |
Increment operator (postfix).
Definition at line 180 of file graph_iterators.h.
|
inline |
Decrement operator (prefix).
Definition at line 187 of file graph_iterators.h.
|
inline |
Decrement operator (postfix).
Definition at line 194 of file graph_iterators.h.
|
inline |
Copy assignment operator.
Definition at line 146 of file graph_iterators.h.
|
inline |
Equality operator.
Definition at line 163 of file graph_iterators.h.
|
inline |
Value of m_array at index m_key.
Definition at line 157 of file graph_iterators.h.
|
friend |
Definition at line 118 of file graph_iterators.h.
|
private |
The array.
Definition at line 202 of file graph_iterators.h.
|
private |
Index in m_array.
Definition at line 201 of file graph_iterators.h.