XII Release 0.1.0
Loading...
Searching...
No Matches
xiiHashTableBaseIterator< KeyType, ValueType, Hasher > Struct Template Reference

Iterator with write access. More...

#include <HashTable.h>

Inheritance diagram for xiiHashTableBaseIterator< KeyType, ValueType, Hasher >:
[legend]

Classes

struct  Pointer
 

Public Member Functions

 XII_DECLARE_POD_TYPE ()
 
XII_ALWAYS_INLINE xiiHashTableBaseIterator (const xiiHashTableBaseIterator &rhs)
 Creates a new iterator from another.
 
XII_ALWAYS_INLINE void operator= (const xiiHashTableBaseIterator &rhs)
 Assigns one iterator no another.
 
XII_FORCE_INLINE ValueType & Value ()
 Returns the 'value' of the element that this iterator points to.
 
XII_FORCE_INLINE ValueType & Value () const
 Returns the 'value' of the element that this iterator points to.
 
XII_ALWAYS_INLINE xiiHashTableBaseIteratoroperator* ()
 Returns '*this' to enable foreach.
 
XII_ALWAYS_INLINE Pointer operator-> () const
 
template<std::size_t Index>
std::tuple_element_t< Index, xiiHashTableBaseIterator > & get ()
 
template<std::size_t Index>
std::tuple_element_t< Index, xiiHashTableBaseIterator > & get () const
 
- Public Member Functions inherited from xiiHashTableBaseConstIterator< KeyType, ValueType, Hasher >
 XII_DECLARE_POD_TYPE ()
 
bool IsValid () const
 Checks whether this iterator points to a valid element.
 
bool operator== (const xiiHashTableBaseConstIterator &rhs) 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'.
 
XII_ALWAYS_INLINE xiiHashTableBaseConstIteratoroperator* ()
 Returns '*this' to enable foreach.
 
XII_ALWAYS_INLINE Pointer operator-> () const
 
template<std::size_t Index>
std::tuple_element_t< Index, xiiHashTableBaseConstIterator > & get () const
 

Friends

class xiiHashTableBase< KeyType, ValueType, Hasher >
 

Additional Inherited Members

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

Detailed Description

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

Iterator with write access.


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