32#ifndef _CEGUIIteratorBase_h_
33#define _CEGUIIteratorBase_h_
35#include "CEGUI/Base.h"
45template<
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) :
294 typename ConstBaseIterator<T>::value_type
Base class constant iterator used to offer iteration over various collections within the system.
Definition: IteratorBase.h:47
virtual value_type getCurrentValue(void) const =0
Return the value for the item at the current iterator position.
void toStart(void)
Set the iterator current position to the start position.
Definition: IteratorBase.h:164
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
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 the iterators are different.
Definition: IteratorBase.h:144
ConstBaseIterator(typename T::const_iterator start_iter, typename T::const_iterator end_iter)
ConstBaseIterator constructor.
Definition: IteratorBase.h:61
ConstBaseIterator(const ConstBaseIterator< T, V > &org)
ConstBaseIterator copy constructor.
Definition: IteratorBase.h:82
ConstBaseIterator< T, V > & operator=(const ConstBaseIterator< T, V > &rhs)
ConstBaseIterator assignment operator.
Definition: IteratorBase.h:94
void toEnd(void)
Set the iterator current position to the end position.
Definition: IteratorBase.h:174
bool isAtEnd(void) const
Return whether the current iterator position is at the end of the iterators range.
Definition: IteratorBase.h:115
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
T::const_iterator d_currIter
'real' iterator describing the current position within the collection.
Definition: IteratorBase.h:189
value_type operator*() const
Return the value for the current iterator position.
Definition: IteratorBase.h:154
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
iterator class for maps
Definition: IteratorBase.h:197
ConstMapIterator< T > & operator++()
Increase the iterator position (prefix increment).
Definition: IteratorBase.h:225
ConstMapIterator< T > operator++(int)
Increase the iterator position (postfix increment).
Definition: IteratorBase.h:255
T::key_type getCurrentKey() const
Return the key for the item at the current iterator position.
Definition: IteratorBase.h:213
ConstMapIterator< T > & operator--()
Decrease the iterator position (prefix decrement).
Definition: IteratorBase.h:240
ConstBaseIterator< T, typenameT::mapped_type >::value_type getCurrentValue() const
Return the value for the item at the current iterator position.
Definition: IteratorBase.h:204
ConstMapIterator< T > operator--(int)
Decrease the iterator position (postfix decrement).
Definition: IteratorBase.h:270
iterator for vectors
Definition: IteratorBase.h:288
ConstVectorIterator< T > operator--(int)
Decrease the iterator position (postfix decrement).
Definition: IteratorBase.h:352
ConstVectorIterator< T > & operator--()
Decrease the iterator position (prefix decrement).
Definition: IteratorBase.h:322
ConstVectorIterator< T > operator++(int)
Increase the iterator position (postfix increment).
Definition: IteratorBase.h:337
ConstVectorIterator< T > & operator++()
Increase the iterator position (prefix increment).
Definition: IteratorBase.h:307
ConstBaseIterator< T >::value_type getCurrentValue() const
Return the value for the item at the current iterator position.
Definition: IteratorBase.h:295
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1