Crazy Eddie's GUI System
0.8.7
|
32 #ifndef _CEGUIIteratorBase_h_
33 #define _CEGUIIteratorBase_h_
35 #include "CEGUI/Base.h"
45 template<
typename T,
typename V =
typename T::value_type>
46 class ConstBaseIterator
61 ConstBaseIterator(
typename T::const_iterator start_iter,
typename T::const_iterator end_iter) :
94 ConstBaseIterator<T, V>&
operator=(
const ConstBaseIterator<T, V>& rhs)
199 ConstMapIterator(
typename T::const_iterator start_iter,
typename T::const_iterator end_iter) :
203 typename ConstBaseIterator<T, typename T::mapped_type>::value_type
282 ConstMapIterator(
void) {}
290 ConstVectorIterator(
typename T::const_iterator start_iter,
typename T::const_iterator end_iter) :
294 typename ConstBaseIterator<T>::value_type
354 ConstVectorIterator<T> tmp = *
this;
364 ConstVectorIterator(
void) {}
370 #endif // end of guard _CEGUIIteratorBase_h_
value_type operator*() const
Return the value for the current iterator position.
Definition: IteratorBase.h:210
bool isAtStart(void) const
Return whether the current iterator position is at the start of the iterators range.
Definition: IteratorBase.h:181
ConstVectorIterator< T > & operator++()
Increase the iterator position (prefix increment).
Definition: IteratorBase.h:335
Base class constant iterator used to offer iteration over various collections within the system.
Definition: IteratorBase.h:74
ConstMapIterator< T > & operator++()
Increase the iterator position (prefix increment).
Definition: IteratorBase.h:253
ConstVectorIterator< T > & operator--()
Decrease the iterator position (prefix decrement).
Definition: IteratorBase.h:350
T::key_type getCurrentKey() const
Return the key for the item at the current iterator position.
Definition: IteratorBase.h:241
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
virtual ~ConstBaseIterator(void)
ConstBaseIterator destructor.
Definition: IteratorBase.h:129
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:200
T::const_iterator d_currIter
'real' iterator describing the current position within the collection.
Definition: IteratorBase.h:245
bool isAtEnd(void) const
Return whether the current iterator position is at the end of the iterators range.
Definition: IteratorBase.h:171
iterator for vectors
Definition: IteratorBase.h:315
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:190
void toEnd(void)
Set the iterator current position to the end position.
Definition: IteratorBase.h:230
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:247
ConstBaseIterator< T, typename T::mapped_type >::value_type getCurrentValue() const
Return the value for the item at the current iterator position.
Definition: IteratorBase.h:232
iterator class for maps
Definition: IteratorBase.h:224
ConstBaseIterator< T >::value_type getCurrentValue() const
Return the value for the item at the current iterator position.
Definition: IteratorBase.h:323
void toStart(void)
Set the iterator current position to the start position.
Definition: IteratorBase.h:220
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:246
ConstBaseIterator(typename T::const_iterator start_iter, typename T::const_iterator end_iter)
ConstBaseIterator constructor.
Definition: IteratorBase.h:117
ConstBaseIterator< T, V > & operator=(const ConstBaseIterator< T, V > &rhs)
ConstBaseIterator assignment operator.
Definition: IteratorBase.h:150
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:268