![]() |
nCine 2025.07.r505-7e70e87
A cross-platform 2D game engine
|
A hashmap iterator. More...
#include <HashMapListIterator.h>
Public Types | |
enum class | SentinelTagInit { BEGINNING , END } |
Sentinel tags to initialize the iterator at the beginning and end. More... | |
using | Reference = typename IteratorTraits< HashMapListIterator >::Reference |
Reference type which respects iterator constness. | |
Public Member Functions | |
HashMapListIterator (typename HashMapListHelperTraits< K, T, HashFunc, IsConst >::HashMapListPtr hashMap, unsigned int bucketIndex, typename HashMapListHelperTraits< K, T, HashFunc, IsConst >::ListIteratorType listIterator, bool atFirstNode) | |
HashMapListIterator (typename HashMapListHelperTraits< K, T, HashFunc, IsConst >::HashMapListPtr hashMap, SentinelTagInit tag) | |
HashMapListIterator (const HashMapListIterator< K, T, HashFunc, false > &it) | |
Copy constructor to implicitly convert a non constant iterator to a constant one. | |
Reference | operator* () const |
Deferencing operator. | |
HashMapListIterator & | operator++ () |
Iterates to the next element (prefix) | |
HashMapListIterator | operator++ (int) |
Iterates to the next element (postfix) | |
HashMapListIterator & | operator-- () |
Iterates to the previous element (prefix) | |
HashMapListIterator | operator-- (int) |
Iterates to the previous element (postfix) | |
HashMapListHelperTraits< K, T, HashFunc, IsConst >::NodeReference | node () const |
Returns the hashmap node currently pointed by the iterator. | |
const T & | value () const |
Returns the value associated to the currently pointed node. | |
const K & | key () const |
Returns the key associated to the currently pointed node. | |
hash_t | hash () const |
Returns the hash associated to the currently pointed node. | |
Friends | |
class | HashMapListIterator< K, T, HashFunc, true > |
For non constant to constant iterator implicit conversion. | |
bool | operator== (const HashMapListIterator &lhs, const HashMapListIterator &rhs) |
Equality operator. | |
bool | operator!= (const HashMapListIterator &lhs, const HashMapListIterator &rhs) |
Inequality operator. | |
A hashmap iterator.