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