33 #ifndef _CEGUIIteratorBase_h_
34 #define _CEGUIIteratorBase_h_
36 #include "CEGUIBase.h"
50 #if defined(_MSC_VER) && (_MSC_VER <= 1200) && !defined(_STLPORT_VERSION)
51 typedef typename T::referent_type mapped_type;
53 typedef typename T::mapped_type mapped_type;
66 ConstBaseIterator(
typename T::const_iterator start_iter,
typename T::const_iterator end_iter) :
67 d_currIter(start_iter),
68 d_startIter(start_iter),
88 d_currIter(org.d_currIter),
89 d_startIter(org.d_startIter),
90 d_endIter(org.d_endIter)
101 d_currIter = rhs.d_currIter;
102 d_startIter = rhs.d_startIter;
103 d_endIter = rhs.d_endIter;
115 return d_currIter->first;
125 return d_currIter->second;
135 return d_currIter == d_endIter;
145 return d_currIter == d_startIter;
158 if (d_currIter != d_endIter)
190 if (d_currIter != d_startIter)
219 return d_currIter == rhs.d_currIter;
239 return d_currIter->second;
249 d_currIter = d_startIter;
259 d_currIter = d_endIter;
272 typename T::const_iterator d_currIter;
273 typename T::const_iterator d_startIter;
274 typename T::const_iterator d_endIter;
280 #endif // end of guard _CEGUIIteratorBase_h_
mapped_type getCurrentValue(void) const
Return the value for the item at the current iterator position.
Definition: CEGUIIteratorBase.h:123
ConstBaseIterator< T > operator--(int)
Decrease the iterator position (postfix decrement).
Definition: CEGUIIteratorBase.h:204
mapped_type operator*() const
Return the value for the current iterator position.
Definition: CEGUIIteratorBase.h:237
ConstBaseIterator(const ConstBaseIterator< T > &org)
ConstBaseIterator copy constructor.
Definition: CEGUIIteratorBase.h:87
bool operator==(const ConstBaseIterator< T > &rhs) const
Compares two iterators. Return true if the current position of both iterators are equivalent...
Definition: CEGUIIteratorBase.h:217
void toStart(void)
Set the iterator current position to the start position.
Definition: CEGUIIteratorBase.h:247
bool operator!=(const ConstBaseIterator< T > &rhs) const
Compares two iterators. Return true if the current position of the iterators are different.
Definition: CEGUIIteratorBase.h:227
Base class constant iterator used to offer iteration over various collections within the system...
Definition: CEGUIIteratorBase.h:47
ConstBaseIterator(typename T::const_iterator start_iter, typename T::const_iterator end_iter)
ConstBaseIterator constructor.
Definition: CEGUIIteratorBase.h:66
bool isAtEnd(void) const
Return whether the current iterator position is at the end of the iterators range.
Definition: CEGUIIteratorBase.h:133
T::key_type getCurrentKey(void) const
Return the key for the item at the current iterator position.
Definition: CEGUIIteratorBase.h:113
void toEnd(void)
Set the iterator current position to the end position.
Definition: CEGUIIteratorBase.h:257
bool isAtStart(void) const
Return whether the current iterator position is at the start of the iterators range.
Definition: CEGUIIteratorBase.h:143
ConstBaseIterator< T > operator++(int)
Increase the iterator position (postfix increment).
Definition: CEGUIIteratorBase.h:172
~ConstBaseIterator(void)
ConstBaseIterator destructor.
Definition: CEGUIIteratorBase.h:78
ConstBaseIterator< T > & operator=(const ConstBaseIterator< T > &rhs)
ConstBaseIterator assignment operator.
Definition: CEGUIIteratorBase.h:99
ConstBaseIterator< T > & operator--()
Decrease the iterator position (prefix decrement).
Definition: CEGUIIteratorBase.h:188
ConstBaseIterator< T > & operator++()
Increase the iterator position (prefix increment).
Definition: CEGUIIteratorBase.h:156