nCine 2025.07.r505-a745cd4
A cross-platform 2D game engine
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Friends | List of all members
nctl::StaticHashSetIterator< K, HashFunc, Capacity > Class Template Reference

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.
 
StaticHashSetIteratoroperator++ ()
 Iterates to the next element (prefix)
 
StaticHashSetIterator operator++ (int)
 Iterates to the next element (postfix)
 
StaticHashSetIteratoroperator-- ()
 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.
 

Detailed Description

template<class K, class HashFunc, unsigned int Capacity>
class nctl::StaticHashSetIterator< K, HashFunc, Capacity >

A hashset iterator.

Member Enumeration Documentation

◆ SentinelTagInit

Sentinel tags to initialize the iterator at the beginning and end.

Enumerator
BEGINNING 

Iterator at the beginning, next element is the first one.

END 

Iterator at the end, previous element is the last one.


The documentation for this class was generated from the following files: