Crazy Eddie's GUI System  0.8.4
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
CEGUI::ConstVectorIterator< T > Class Template Reference

iterator for vectors More...

+ Inheritance diagram for CEGUI::ConstVectorIterator< T >:
+ Collaboration diagram for CEGUI::ConstVectorIterator< T >:

Public Member Functions

 ConstVectorIterator (typename T::const_iterator start_iter, typename T::const_iterator end_iter)
 
ConstBaseIterator< T >::value_type getCurrentValue () const
 Return the value for the item at the current iterator position.
 
ConstVectorIterator< T > & operator++ ()
 Increase the iterator position (prefix increment). More...
 
ConstVectorIterator< T > & operator-- ()
 Decrease the iterator position (prefix decrement). More...
 
ConstVectorIterator< T > operator++ (int)
 Increase the iterator position (postfix increment). More...
 
ConstVectorIterator< T > operator-- (int)
 Decrease the iterator position (postfix decrement). More...
 
- Public Member Functions inherited from CEGUI::ConstBaseIterator< T >
 ConstBaseIterator (typename T::const_iterator start_iter, typename T::const_iterator end_iter)
 ConstBaseIterator constructor. More...
 
 ConstBaseIterator (const ConstBaseIterator< T, typename T::value_type > &org)
 ConstBaseIterator copy constructor.
 
virtual ~ConstBaseIterator (void)
 ConstBaseIterator destructor.
 
ConstBaseIterator< T, typename
T::value_type > & 
operator= (const ConstBaseIterator< T, typename T::value_type > &rhs)
 ConstBaseIterator assignment operator.
 
bool isAtEnd (void) const
 Return whether the current iterator position is at the end of the iterators range.
 
bool isAtStart (void) const
 Return whether the current iterator position is at the start of the iterators range.
 
bool operator== (const ConstBaseIterator< T, typename T::value_type > &rhs) const
 Compares two iterators. Return true if the current position of both iterators are equivalent.
 
bool operator!= (const ConstBaseIterator< T, typename T::value_type > &rhs) const
 Compares two iterators. Return true if the current position of the iterators are different.
 
value_type operator* () const
 Return the value for the current iterator position.
 
void toStart (void)
 Set the iterator current position to the start position.
 
void toEnd (void)
 Set the iterator current position to the end position.
 

Additional Inherited Members

- Public Types inherited from CEGUI::ConstBaseIterator< T >
typedef typename T::value_type value_type
 
- Protected Attributes inherited from CEGUI::ConstBaseIterator< T >
T::const_iterator d_currIter
 'real' iterator describing the current position within the collection.
 
T::const_iterator d_startIter
 'real' iterator describing the start position within the collection (or what we were told was the start).
 
T::const_iterator d_endIter
 'real' iterator describing the end position within the collection (or what we were told was the end).
 

Detailed Description

template<class T>
class CEGUI::ConstVectorIterator< T >

iterator for vectors

Member Function Documentation

template<class T>
ConstVectorIterator<T>& CEGUI::ConstVectorIterator< T >::operator++ ( )
inline

Increase the iterator position (prefix increment).

Note
The iterator is checked, and this call will always succeed, so do not rely on some exception to exit a loop.
template<class T>
ConstVectorIterator<T> CEGUI::ConstVectorIterator< T >::operator++ ( int  )
inline

Increase the iterator position (postfix increment).

Note
The iterator is checked, and this call will always succeed, so do not rely on some exception to exit a loop.
template<class T>
ConstVectorIterator<T>& CEGUI::ConstVectorIterator< T >::operator-- ( )
inline

Decrease the iterator position (prefix decrement).

Note
The iterator is checked, and this call will always succeed, so do not rely on some exception to exit a loop.
template<class T>
ConstVectorIterator<T> CEGUI::ConstVectorIterator< T >::operator-- ( int  )
inline

Decrease the iterator position (postfix decrement).

Note
The iterator is checked, and this call will always succeed, so do not rely on some exception to exit a loop.