Iterator for registered arrays. More...
#include <ogdf/basic/RegisteredArray.h>
Public Types | |
using | array_pointer_type = typename std::conditional< isConst, const ArrayType *, ArrayType * >::type |
using | key_type = typename ArrayType::key_type |
using | registry_type = typename ArrayType::registry_type |
using | value_type = typename std::conditional< isConst, const typename ArrayType::value_type, typename ArrayType::value_type >::type |
Public Member Functions | |
RegisteredArrayIterator () | |
Creates a new iterator associated with no array. More... | |
RegisteredArrayIterator (KeyIterator mIt, array_pointer_type mArray) | |
Creates a new iterator. More... | |
key_type | key () const |
Returns the current key. More... | |
bool | operator!= (const RegisteredArrayIterator< ArrayType, KeyIterator, isConst > &iter) const |
Inequality operator. More... | |
value_type & | operator* () const |
Returns the value of key() in the registered array. More... | |
RegisteredArrayIterator< ArrayType, KeyIterator, isConst > & | operator++ () |
Increment operator (prefix). More... | |
RegisteredArrayIterator< ArrayType, KeyIterator, isConst > | operator++ (int) |
Increment operator (postfix). More... | |
RegisteredArrayIterator< ArrayType, KeyIterator, isConst > & | operator-- () |
Decrement operator (prefix). More... | |
RegisteredArrayIterator< ArrayType, KeyIterator, isConst > | operator-- (int) |
Decrement operator (postfix). More... | |
bool | operator== (const RegisteredArrayIterator< ArrayType, KeyIterator, isConst > &iter) const |
Equality operator. More... | |
value_type & | value () const |
Returns the value of key() in the registered array. More... | |
Private Attributes | |
array_pointer_type | m_array |
KeyIterator | m_it |
Iterator for registered arrays.
Provides an iterator for the key-value pairs stored in registered arrays.
ArrayType | The type of registered array. |
KeyIterator | An iterator for the keys in the registry. Determines the order of the key-value pairs. |
isConst | Whether the iterator allows modifying the data or not. |
Definition at line 353 of file RegisteredArray.h.
using ogdf::RegisteredArrayIterator< ArrayType, KeyIterator, isConst >::array_pointer_type = typename std::conditional<isConst, const ArrayType*, ArrayType*>::type |
Definition at line 359 of file RegisteredArray.h.
using ogdf::RegisteredArrayIterator< ArrayType, KeyIterator, isConst >::key_type = typename ArrayType::key_type |
Definition at line 356 of file RegisteredArray.h.
using ogdf::RegisteredArrayIterator< ArrayType, KeyIterator, isConst >::registry_type = typename ArrayType::registry_type |
Definition at line 355 of file RegisteredArray.h.
using ogdf::RegisteredArrayIterator< ArrayType, KeyIterator, isConst >::value_type = typename std::conditional<isConst, const typename ArrayType::value_type, typename ArrayType::value_type>::type |
Definition at line 358 of file RegisteredArray.h.
|
inline |
Creates a new iterator associated with no array.
Definition at line 367 of file RegisteredArray.h.
|
inline |
Creates a new iterator.
mIt | An iterator pointing to the current key. |
mArray | A pointer to the registered array containing the desired values. |
Definition at line 374 of file RegisteredArray.h.
|
inline |
Returns the current key.
Definition at line 378 of file RegisteredArray.h.
|
inline |
Inequality operator.
Definition at line 392 of file RegisteredArray.h.
|
inline |
Returns the value of key() in the registered array.
Definition at line 384 of file RegisteredArray.h.
|
inline |
Increment operator (prefix).
Definition at line 397 of file RegisteredArray.h.
|
inline |
Increment operator (postfix).
Definition at line 403 of file RegisteredArray.h.
|
inline |
Decrement operator (prefix).
Definition at line 410 of file RegisteredArray.h.
|
inline |
Decrement operator (postfix).
Definition at line 416 of file RegisteredArray.h.
|
inline |
Equality operator.
Definition at line 387 of file RegisteredArray.h.
|
inline |
Returns the value of key() in the registered array.
Definition at line 381 of file RegisteredArray.h.
|
private |
Definition at line 363 of file RegisteredArray.h.
|
private |
Definition at line 362 of file RegisteredArray.h.