ezEngine  Release 25.03
ezMapBaseIteratorBase< KeyType, ValueType, Comparer, REVERSE > Struct Template Reference

Forward Iterator to iterate over all elements in sorted order. More...

#include <Map.h>

Inheritance diagram for ezMapBaseIteratorBase< KeyType, ValueType, Comparer, REVERSE >:

Public Types

using iterator_category = std::forward_iterator_tag
 
using value_type = ezMapBaseIteratorBase< KeyType, ValueType, Comparer, REVERSE >
 
using difference_type = std::ptrdiff_t
 
using pointer = ezMapBaseIteratorBase< KeyType, ValueType, Comparer, REVERSE > *
 
using reference = ezMapBaseIteratorBase< KeyType, ValueType, Comparer, REVERSE > &
 
- Public Types inherited from ezMapBaseConstIteratorBase< KeyType, ValueType, Comparer, REVERSE >
using iterator_category = std::forward_iterator_tag
 
using value_type = ezMapBaseConstIteratorBase< KeyType, ValueType, Comparer, false >
 
using difference_type = std::ptrdiff_t
 
using pointer = ezMapBaseConstIteratorBase< KeyType, ValueType, Comparer, false > *
 
using reference = ezMapBaseConstIteratorBase< KeyType, ValueType, Comparer, false > &
 

Public Member Functions

 EZ_DECLARE_POD_TYPE ()
 
EZ_ALWAYS_INLINE ezMapBaseIteratorBase ()
 Constructs an invalid iterator.
 
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 ezMapBaseIteratorBaseoperator* ()
 Returns '*this' to enable foreach.
 
- Public Member Functions inherited from ezMapBaseConstIteratorBase< KeyType, ValueType, Comparer, REVERSE >
 EZ_DECLARE_POD_TYPE ()
 
EZ_ALWAYS_INLINE ezMapBaseConstIteratorBase ()
 Constructs an invalid iterator.
 
EZ_ALWAYS_INLINE bool IsValid () const
 Checks whether this iterator points to a valid element.
 
EZ_ALWAYS_INLINE bool operator== (const ezMapBaseConstIteratorBase &it2) const
 Checks whether the two iterators point to the same element.
 
 EZ_ADD_DEFAULT_OPERATOR_NOTEQUAL (const ezMapBaseConstIteratorBase &)
 
const EZ_FORCE_INLINE KeyType & Key () const
 Returns the 'key' of the element that this iterator points to.
 
const EZ_FORCE_INLINE ValueType & Value () const
 Returns the 'value' of the element that this iterator points to.
 
EZ_ALWAYS_INLINE ezMapBaseConstIteratorBaseoperator* ()
 Returns '*this' to enable foreach.
 
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 Prev ()
 Advances the iterator to the previous element in the map. The iterator will not be valid anymore, if the end is reached.
 
EZ_ALWAYS_INLINE void operator++ ()
 Shorthand for 'Next'.
 
EZ_ALWAYS_INLINE void operator-- ()
 Shorthand for 'Prev'.
 

Friends

class ezMapBase< KeyType, ValueType, Comparer >
 

Additional Inherited Members

- Protected Member Functions inherited from ezMapBaseConstIteratorBase< KeyType, ValueType, Comparer, REVERSE >
void Advance (const ezInt32 dir0, const ezInt32 dir1)
 
EZ_ALWAYS_INLINE ezMapBaseConstIteratorBase (typename ezMapBase< KeyType, ValueType, Comparer >::Node *pInit)
 
- Protected Attributes inherited from ezMapBaseConstIteratorBase< KeyType, ValueType, Comparer, REVERSE >
ezMapBase< KeyType, ValueType, Comparer >::Node * m_pElement
 

Detailed Description

template<typename KeyType, typename ValueType, typename Comparer, bool REVERSE>
struct ezMapBaseIteratorBase< KeyType, ValueType, Comparer, REVERSE >

Forward Iterator to iterate over all elements in sorted order.


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