ezEngine  Milestone 9
ezHashTableBase< KeyType, ValueType, Hasher >::Iterator Struct Reference

Iterator with write access. More...

#include <HashTable.h>

Inheritance diagram for ezHashTableBase< KeyType, ValueType, Hasher >::Iterator:

Public Member Functions

 EZ_DECLARE_POD_TYPE ()
 
EZ_ALWAYS_INLINE Iterator (const Iterator &rhs)
 Creates a new iterator from another.
 
EZ_ALWAYS_INLINE void operator= (const Iterator &rhs)
 Assigns one iterator no another.
 
EZ_FORCE_INLINE ValueType & Value ()
 Returns the 'value' of the element that this iterator points to.
 
EZ_ALWAYS_INLINE ValueType & operator* ()
 Returns the 'value' of the element that this iterator points to.
 
const ValueType & Value () const
 Returns the 'value' of the element that this iterator points to.
 
- Public Member Functions inherited from ezHashTableBase< KeyType, ValueType, Hasher >::ConstIterator
 EZ_DECLARE_POD_TYPE ()
 
bool IsValid () const
 Checks whether this iterator points to a valid element.
 
bool operator== (const typename ezHashTableBase< KeyType, ValueType, Hasher >::ConstIterator &it2) const
 Checks whether the two iterators point to the same element.
 
bool operator!= (const typename ezHashTableBase< KeyType, ValueType, Hasher >::ConstIterator &it2) const
 Checks whether the two iterators point to the same element.
 
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'.
 

Friends

class ezHashTableBase< KeyType, ValueType, Hasher >
 

Additional Inherited Members

- Protected Member Functions inherited from ezHashTableBase< KeyType, ValueType, Hasher >::ConstIterator
 ConstIterator (const ezHashTableBase< KeyType, ValueType, Hasher > &hashTable)
 
- Protected Attributes inherited from ezHashTableBase< KeyType, ValueType, Hasher >::ConstIterator
const ezHashTableBase< KeyType, ValueType, Hasher > * m_hashTable
 
ezUInt32 m_uiCurrentIndex
 
ezUInt32 m_uiCurrentCount
 

Detailed Description

template<typename KeyType, typename ValueType, typename Hasher>
struct ezHashTableBase< KeyType, ValueType, Hasher >::Iterator

Iterator with write access.


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