![]() |
nCine 2025.07.r505-a745cd4
A cross-platform 2D game engine
|
A hashset iterator. More...
#include <StaticHashSetIterator.h>
Public Types | |
enum class | SentinelTagInit { BEGINNING , END } |
Sentinel tags to initialize the iterator at the beginning and end. More... | |
using | Reference = typename IteratorTraits< StaticHashSetIterator >::Reference |
Reference type which respects iterator constness. | |
Public Member Functions | |
StaticHashSetIterator (typename StaticHashSetHelperTraits< K, HashFunc, Capacity >::HashSetPtr hashSet, unsigned int bucketIndex) | |
StaticHashSetIterator (typename StaticHashSetHelperTraits< K, HashFunc, Capacity >::HashSetPtr hashSet, SentinelTagInit tag) | |
Reference | operator* () const |
Deferencing operator. | |
StaticHashSetIterator & | operator++ () |
Iterates to the next element (prefix) | |
StaticHashSetIterator | operator++ (int) |
Iterates to the next element (postfix) | |
StaticHashSetIterator & | operator-- () |
Iterates to the previous element (prefix) | |
StaticHashSetIterator | operator-- (int) |
Iterates to the previous element (postfix) | |
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 | |
bool | operator== (const StaticHashSetIterator &lhs, const StaticHashSetIterator &rhs) |
Equality operator. | |
bool | operator!= (const StaticHashSetIterator &lhs, const StaticHashSetIterator &rhs) |
Inequality operator. | |
A hashset iterator.