Plasma Engine  2.0
Loading...
Searching...
No Matches
plHashTableBaseConstIterator< KeyType, ValueType, Hasher > Struct Template Reference

Const iterator. More...

#include <HashTable.h>

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

Public Types

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

Public Member Functions

 PL_DECLARE_POD_TYPE ()
 
bool IsValid () const
 Checks whether this iterator points to a valid element.
 
bool operator== (const plHashTableBaseConstIterator &rhs) const
 Checks whether the two iterators point to the same element.
 
 PL_ADD_DEFAULT_OPERATOR_NOTEQUAL (const plHashTableBaseConstIterator &)
 
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'.
 
PL_ALWAYS_INLINE plHashTableBaseConstIteratoroperator* ()
 Returns '*this' to enable foreach.
 

Protected Member Functions

 plHashTableBaseConstIterator (const plHashTableBase< KeyType, ValueType, Hasher > &hashTable)
 
void SetToBegin ()
 
void SetToEnd ()
 

Protected Attributes

const plHashTableBase< KeyType, ValueType, Hasher > * m_pHashTable = nullptr
 
plUInt32 m_uiCurrentIndex = 0
 
plUInt32 m_uiCurrentCount = 0
 

Friends

class plHashTableBase< KeyType, ValueType, Hasher >
 

Detailed Description

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

Const iterator.


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