Plasma Engine  2.0
Loading...
Searching...
No Matches
plMapBaseIteratorBase< KeyType, ValueType, Comparer, REVERSE > Struct Template Reference

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

#include <Map.h>

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

Public Types

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

Public Member Functions

 PL_DECLARE_POD_TYPE ()
 
PL_ALWAYS_INLINE plMapBaseIteratorBase ()
 Constructs an invalid iterator.
 
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 plMapBaseIteratorBaseoperator* ()
 Returns '*this' to enable foreach.
 
- Public Member Functions inherited from plMapBaseConstIteratorBase< KeyType, ValueType, Comparer, REVERSE >
 PL_DECLARE_POD_TYPE ()
 
PL_ALWAYS_INLINE plMapBaseConstIteratorBase ()
 Constructs an invalid iterator.
 
PL_ALWAYS_INLINE bool IsValid () const
 Checks whether this iterator points to a valid element.
 
PL_ALWAYS_INLINE bool operator== (const plMapBaseConstIteratorBase &it2) const
 Checks whether the two iterators point to the same element.
 
 PL_ADD_DEFAULT_OPERATOR_NOTEQUAL (const plMapBaseConstIteratorBase &)
 
PL_FORCE_INLINE const KeyType & Key () const
 Returns the 'key' of the element that this iterator points to.
 
PL_FORCE_INLINE const ValueType & Value () const
 Returns the 'value' of the element that this iterator points to.
 
PL_ALWAYS_INLINE plMapBaseConstIteratorBaseoperator* ()
 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.
 
PL_ALWAYS_INLINE void operator++ ()
 Shorthand for 'Next'.
 
PL_ALWAYS_INLINE void operator-- ()
 Shorthand for 'Prev'.
 

Friends

class plMapBase< KeyType, ValueType, Comparer >
 

Additional Inherited Members

- Protected Member Functions inherited from plMapBaseConstIteratorBase< KeyType, ValueType, Comparer, REVERSE >
void Advance (const plInt32 dir0, const plInt32 dir1)
 
PL_ALWAYS_INLINE plMapBaseConstIteratorBase (typename plMapBase< KeyType, ValueType, Comparer >::Node *pInit)
 
- Protected Attributes inherited from plMapBaseConstIteratorBase< KeyType, ValueType, Comparer, REVERSE >
plMapBase< KeyType, ValueType, Comparer >::Node * m_pElement
 

Detailed Description

template<typename KeyType, typename ValueType, typename Comparer, bool REVERSE>
struct plMapBaseIteratorBase< 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: