ezEngine  Milestone 7
ezSetBase< KeyType, Comparer >::Iterator Struct Reference

Base class for all iterators. More...

#include <Set.h>

Public Types

typedef std::forward_iterator_tag iterator_category
 
typedef Iterator value_type
 
typedef ptrdiff_t difference_type
 
typedef Iteratorpointer
 
typedef Iteratorreference
 

Public Member Functions

 EZ_DECLARE_POD_TYPE ()
 
EZ_FORCE_INLINE Iterator ()
 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 ezSetBase< KeyType, Comparer >::Iterator &it2) const
 Checks whether the two iterators point to the same element.
 
EZ_FORCE_INLINE bool operator!= (const typename ezSetBase< KeyType, Comparer >::Iterator &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 KeyType & operator* ()
 Returns the 'key' of the element that this iterator points to.
 
void Next ()
 Advances the iterator to the next element in the set. The iterator will not be valid anymore, if the end is reached.
 
void Prev ()
 Advances the iterator to the previous element in the set. 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 Iterator (Node *pInit)
 

Protected Attributes

Nodem_pElement
 

Friends

class ezSetBase< KeyType, Comparer >
 

Detailed Description

template<typename KeyType, typename Comparer>
struct ezSetBase< KeyType, Comparer >::Iterator

Base class for all iterators.


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