![]() |
ezEngine
Release 25.03
|
Iterator with write access. More...
#include <HashTable.h>
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 ezHashTableBaseIterator & | operator* () |
Returns '*this' to enable foreach. | |
![]() | |
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 ezHashTableBaseConstIterator & | operator* () |
Returns '*this' to enable foreach. | |
Friends | |
class | ezHashTableBase< KeyType, ValueType, Hasher > |
Additional Inherited Members | |
![]() | |
using | iterator_category = std::forward_iterator_tag |
using | value_type = ezHashTableBaseConstIterator |
using | difference_type = std::ptrdiff_t |
using | pointer = ezHashTableBaseConstIterator * |
using | reference = ezHashTableBaseConstIterator & |
![]() | |
ezHashTableBaseConstIterator (const ezHashTableBase< KeyType, ValueType, Hasher > &hashTable) | |
void | SetToBegin () |
void | SetToEnd () |
![]() | |
const ezHashTableBase< KeyType, ValueType, Hasher > * | m_pHashTable = nullptr |
ezUInt32 | m_uiCurrentIndex = 0 |
ezUInt32 | m_uiCurrentCount = 0 |
Iterator with write access.