ezEngine  Release 25.03
ezHashTableBaseConstIterator< KeyType, ValueType, Hasher > Struct Template Reference

Const iterator. More...

#include <HashTable.h>

Inheritance diagram for ezHashTableBaseConstIterator< KeyType, ValueType, Hasher >:

Public Types

using iterator_category = std::forward_iterator_tag
 
using value_type = ezHashTableBaseConstIterator
 
using difference_type = std::ptrdiff_t
 
using pointer = ezHashTableBaseConstIterator *
 
using reference = ezHashTableBaseConstIterator &
 

Public Member Functions

 EZ_DECLARE_POD_TYPE ()
 
bool IsValid () const
 Checks whether this iterator points to a valid element.
 
bool operator== (const ezHashTableBaseConstIterator &rhs) const
 Checks whether the two iterators point to the same element.
 
 EZ_ADD_DEFAULT_OPERATOR_NOTEQUAL (const ezHashTableBaseConstIterator &)
 
const KeyType & Key () const
 Returns the 'key' of the element that this iterator points to.
 
const ValueType & Value () const
 Returns the 'value' of the element that this iterator points to.
 
void Next ()
 Advances the iterator to the next element in the map. The iterator will not be valid anymore, if the end is reached.
 
void operator++ ()
 Shorthand for 'Next'.
 
EZ_ALWAYS_INLINE ezHashTableBaseConstIteratoroperator* ()
 Returns '*this' to enable foreach.
 

Protected Member Functions

 ezHashTableBaseConstIterator (const ezHashTableBase< KeyType, ValueType, Hasher > &hashTable)
 
void SetToBegin ()
 
void SetToEnd ()
 

Protected Attributes

const ezHashTableBase< KeyType, ValueType, Hasher > * m_pHashTable = nullptr
 
ezUInt32 m_uiCurrentIndex = 0
 
ezUInt32 m_uiCurrentCount = 0
 

Friends

class ezHashTableBase< KeyType, ValueType, Hasher >
 

Detailed Description

template<typename KeyType, typename ValueType, typename Hasher>
struct ezHashTableBaseConstIterator< KeyType, ValueType, Hasher >

Const iterator.


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