ezEngine  Milestone 7
ezMapBase< KeyType, ValueType, Comparer >::ConstIterator Struct Reference

Base class for all iterators. More...

#include <Map.h>

Inheritance diagram for ezMapBase< KeyType, ValueType, Comparer >::ConstIterator:

Public Types

typedef std::forward_iterator_tag iterator_category
 
typedef ConstIterator value_type
 
typedef ptrdiff_t difference_type
 
typedef ConstIteratorpointer
 
typedef ConstIteratorreference
 

Public Member Functions

 EZ_DECLARE_POD_TYPE ()
 
EZ_FORCE_INLINE ConstIterator ()
 Constructs an invalid iterator.
 
EZ_FORCE_INLINE bool IsValid () const
 Checks whether this iterator points to a valid element.
 
EZ_FORCE_INLINE bool operator== (const typename ezMapBase< KeyType, ValueType, Comparer >::ConstIterator &it2) const
 Checks whether the two iterators point to the same element.
 
EZ_FORCE_INLINE bool operator!= (const typename ezMapBase< KeyType, ValueType, Comparer >::ConstIterator &it2) const
 Checks whether the two iterators point to the same element.
 
EZ_FORCE_INLINE const KeyType & Key () const
 Returns the 'key' of the element that this iterator points to.
 
EZ_FORCE_INLINE 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 Prev ()
 Advances the iterator to the previous element in the map. The iterator will not be valid anymore, if the end is reached.
 
EZ_FORCE_INLINE void operator++ ()
 Shorthand for 'Next'.
 
EZ_FORCE_INLINE void operator-- ()
 Shorthand for 'Prev'.
 

Protected Member Functions

EZ_FORCE_INLINE ConstIterator (Node *pInit)
 

Protected Attributes

Nodem_pElement
 

Friends

class ezMapBase< KeyType, ValueType, Comparer >
 

Detailed Description

template<typename KeyType, typename ValueType, typename Comparer>
struct ezMapBase< KeyType, ValueType, Comparer >::ConstIterator

Base class for all iterators.


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