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

Iterator with write access. More...

#include <HashTable.h>

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

Public Member Functions

 EZ_DECLARE_POD_TYPE ()
 
EZ_ALWAYS_INLINE ezHashTableBaseIterator (const ezHashTableBaseIterator &rhs)
 Creates a new iterator from another.
 
EZ_ALWAYS_INLINE void operator= (const ezHashTableBaseIterator &rhs)
 Assigns one iterator no another.
 
EZ_FORCE_INLINE ValueType & Value ()
 Returns the 'value' of the element that this iterator points to.
 
EZ_FORCE_INLINE ValueType & Value () const
 Returns the 'value' of the element that this iterator points to.
 
EZ_ALWAYS_INLINE ezHashTableBaseIteratoroperator* ()
 Returns '*this' to enable foreach.
 
- Public Member Functions inherited from ezHashTableBaseConstIterator< KeyType, ValueType, Hasher >
 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.
 

Friends

class ezHashTableBase< KeyType, ValueType, Hasher >
 

Additional Inherited Members

- Public Types inherited from ezHashTableBaseConstIterator< KeyType, ValueType, Hasher >
using iterator_category = std::forward_iterator_tag
 
using value_type = ezHashTableBaseConstIterator
 
using difference_type = std::ptrdiff_t
 
using pointer = ezHashTableBaseConstIterator *
 
using reference = ezHashTableBaseConstIterator &
 
- Protected Member Functions inherited from ezHashTableBaseConstIterator< KeyType, ValueType, Hasher >
 ezHashTableBaseConstIterator (const ezHashTableBase< KeyType, ValueType, Hasher > &hashTable)
 
void SetToBegin ()
 
void SetToEnd ()
 
- Protected Attributes inherited from ezHashTableBaseConstIterator< KeyType, ValueType, Hasher >
const ezHashTableBase< KeyType, ValueType, Hasher > * m_pHashTable = nullptr
 
ezUInt32 m_uiCurrentIndex = 0
 
ezUInt32 m_uiCurrentCount = 0
 

Detailed Description

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

Iterator with write access.


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