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

Iterator with write access. More...

#include <HashTable.h>

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

Public Member Functions

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

Friends

class plHashTableBase< KeyType, ValueType, Hasher >
 

Additional Inherited Members

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

Detailed Description

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

Iterator with write access.


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