32 #ifndef _CEGUIIteratorBase_h_
33 #define _CEGUIIteratorBase_h_
35 #include "CEGUI/Base.h"
45 template<
typename T,
typename V =
typename T::value_type>
61 ConstBaseIterator(
typename T::const_iterator start_iter,
typename T::const_iterator end_iter) :
199 ConstMapIterator(
typename T::const_iterator start_iter,
typename T::const_iterator end_iter) :
203 typename ConstBaseIterator<T, typename T::mapped_type>::value_type
290 ConstVectorIterator(
typename T::const_iterator start_iter,
typename T::const_iterator end_iter) :
370 #endif // end of guard _CEGUIIteratorBase_h_
T::const_iterator d_currIter
'real' iterator describing the current position within the collection.
Definition: IteratorBase.h:189
ConstBaseIterator< T, V > & operator=(const ConstBaseIterator< T, V > &rhs)
ConstBaseIterator assignment operator.
Definition: IteratorBase.h:94
ConstMapIterator< T > operator++(int)
Increase the iterator position (postfix increment).
Definition: IteratorBase.h:255
ConstVectorIterator< T > operator--(int)
Decrease the iterator position (postfix decrement).
Definition: IteratorBase.h:352
ConstMapIterator< T > & operator++()
Increase the iterator position (prefix increment).
Definition: IteratorBase.h:225
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
value_type operator*() const
Return the value for the current iterator position.
Definition: IteratorBase.h:154
ConstVectorIterator< T > & operator--()
Decrease the iterator position (prefix decrement).
Definition: IteratorBase.h:322
iterator for vectors
Definition: IteratorBase.h:287
void toEnd(void)
Set the iterator current position to the end position.
Definition: IteratorBase.h:174
Base class constant iterator used to offer iteration over various collections within the system...
Definition: IteratorBase.h:46
T::const_iterator d_endIter
'real' iterator describing the end position within the collection (or what we were told was the end)...
Definition: IteratorBase.h:191
bool isAtStart(void) const
Return whether the current iterator position is at the start of the iterators range.
Definition: IteratorBase.h:125
ConstBaseIterator(const ConstBaseIterator< T, V > &org)
ConstBaseIterator copy constructor.
Definition: IteratorBase.h:82
ConstMapIterator< T > operator--(int)
Decrease the iterator position (postfix decrement).
Definition: IteratorBase.h:270
T::key_type getCurrentKey() const
Return the key for the item at the current iterator position.
Definition: IteratorBase.h:213
T::const_iterator d_startIter
'real' iterator describing the start position within the collection (or what we were told was the sta...
Definition: IteratorBase.h:190
iterator class for maps
Definition: IteratorBase.h:196
bool operator!=(const ConstBaseIterator< T, V > &rhs) const
Compares two iterators. Return true if the current position of the iterators are different.
Definition: IteratorBase.h:144
void toStart(void)
Set the iterator current position to the start position.
Definition: IteratorBase.h:164
virtual ~ConstBaseIterator(void)
ConstBaseIterator destructor.
Definition: IteratorBase.h:73
bool operator==(const ConstBaseIterator< T, V > &rhs) const
Compares two iterators. Return true if the current position of both iterators are equivalent...
Definition: IteratorBase.h:134
bool isAtEnd(void) const
Return whether the current iterator position is at the end of the iterators range.
Definition: IteratorBase.h:115
ConstVectorIterator< T > & operator++()
Increase the iterator position (prefix increment).
Definition: IteratorBase.h:307
ConstVectorIterator< T > operator++(int)
Increase the iterator position (postfix increment).
Definition: IteratorBase.h:337
ConstBaseIterator(typename T::const_iterator start_iter, typename T::const_iterator end_iter)
ConstBaseIterator constructor.
Definition: IteratorBase.h:61
virtual value_type getCurrentValue(void) const =0
Return the value for the item at the current iterator position.
ConstMapIterator< T > & operator--()
Decrease the iterator position (prefix decrement).
Definition: IteratorBase.h:240
ConstBaseIterator< T, typename T::mapped_type >::value_type getCurrentValue() const
Return the value for the item at the current iterator position.
Definition: IteratorBase.h:204
ConstBaseIterator< T >::value_type getCurrentValue() const
Return the value for the item at the current iterator position.
Definition: IteratorBase.h:295