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