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 344 of file RegisteredArray.h.
using ogdf::RegisteredArrayIterator< ArrayType, KeyIterator, isConst >::array_pointer_type = typename std::conditional<isConst, const ArrayType*, ArrayType*>::type |
Definition at line 350 of file RegisteredArray.h.
using ogdf::RegisteredArrayIterator< ArrayType, KeyIterator, isConst >::key_type = typename ArrayType::key_type |
Definition at line 347 of file RegisteredArray.h.
using ogdf::RegisteredArrayIterator< ArrayType, KeyIterator, isConst >::registry_type = typename ArrayType::registry_type |
Definition at line 346 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 349 of file RegisteredArray.h.
|
inline |
Creates a new iterator associated with no array.
Definition at line 358 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 365 of file RegisteredArray.h.
|
inline |
Returns the current key.
Definition at line 369 of file RegisteredArray.h.
|
inline |
Inequality operator.
Definition at line 383 of file RegisteredArray.h.
|
inline |
Returns the value of key() in the registered array.
Definition at line 375 of file RegisteredArray.h.
|
inline |
Increment operator (prefix).
Definition at line 388 of file RegisteredArray.h.
|
inline |
Increment operator (postfix).
Definition at line 394 of file RegisteredArray.h.
|
inline |
Decrement operator (prefix).
Definition at line 401 of file RegisteredArray.h.
|
inline |
Decrement operator (postfix).
Definition at line 407 of file RegisteredArray.h.
|
inline |
Equality operator.
Definition at line 378 of file RegisteredArray.h.
|
inline |
Returns the value of key() in the registered array.
Definition at line 372 of file RegisteredArray.h.
|
private |
Definition at line 354 of file RegisteredArray.h.
|
private |
Definition at line 353 of file RegisteredArray.h.