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
287 class ConstVectorIterator :
public ConstBaseIterator<T>
290 ConstVectorIterator(
typename T::const_iterator start_iter,
typename T::const_iterator end_iter) :
291 ConstBaseIterator<T>(start_iter, end_iter)
370 #endif // end of guard _CEGUIIteratorBase_h_
value_type operator*() const
Return the value for the current iterator position.
Definition: IteratorBase.h:201
bool isAtStart(void) const
Return whether the current iterator position is at the start of the iterators range.
Definition: IteratorBase.h:172
ConstVectorIterator< T > & operator++()
Increase the iterator position (prefix increment).
Definition: IteratorBase.h:329
Base class constant iterator used to offer iteration over various collections within the system.
Definition: IteratorBase.h:68
ConstMapIterator< T > & operator++()
Increase the iterator position (prefix increment).
Definition: IteratorBase.h:247
ConstVectorIterator< T > & operator--()
Decrease the iterator position (prefix decrement).
Definition: IteratorBase.h:344
T::key_type getCurrentKey() const
Return the key for the item at the current iterator position.
Definition: IteratorBase.h:235
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
virtual ~ConstBaseIterator(void)
ConstBaseIterator destructor.
Definition: IteratorBase.h:120
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:191
T::const_iterator d_currIter
'real' iterator describing the current position within the collection.
Definition: IteratorBase.h:234
bool isAtEnd(void) const
Return whether the current iterator position is at the end of the iterators range.
Definition: IteratorBase.h:162
iterator for vectors
Definition: IteratorBase.h:309
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:181
void toEnd(void)
Set the iterator current position to the end position.
Definition: IteratorBase.h:221
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:236
ConstBaseIterator< T, typename T::mapped_type >::value_type getCurrentValue() const
Return the value for the item at the current iterator position.
Definition: IteratorBase.h:226
iterator class for maps
Definition: IteratorBase.h:218
ConstBaseIterator< T >::value_type getCurrentValue() const
Return the value for the item at the current iterator position.
Definition: IteratorBase.h:317
void toStart(void)
Set the iterator current position to the start position.
Definition: IteratorBase.h:211
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:235
ConstBaseIterator(typename T::const_iterator start_iter, typename T::const_iterator end_iter)
ConstBaseIterator constructor.
Definition: IteratorBase.h:108
ConstBaseIterator< T, V > & operator=(const ConstBaseIterator< T, V > &rhs)
ConstBaseIterator assignment operator.
Definition: IteratorBase.h:141
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:262