BALL::ConstForwardIterator< Container, DataType, Position, Traits > Class Template Reference

#include <BALL/CONCEPT/forwardIterator.h>

Inheritance diagram for BALL::ConstForwardIterator< Container, DataType, Position, Traits >:
BALL::BaseIterator< Container, DataType, Position, Traits >

List of all members.


Public Types

Typedefs
typedef std::forward_iterator_tag iterator_category
typedef BaseIterator
< Container, DataType,
Position, Traits > 
Base

Public Member Functions

Constructors and Destructors
BALL_INLINE ConstForwardIterator ()
 

Default constructor.


BALL_INLINE ConstForwardIterator (const ConstForwardIterator &iterator)
 

Copy constructor.


BALL_INLINE ~ConstForwardIterator ()
Assignment
BALL_INLINE ConstForwardIteratoroperator= (const ConstForwardIterator &iterator)
BALL_INLINE void swap (ConstForwardIterator &iterator)

Protected Member Functions

BALL_INLINE ConstForwardIterator (const Container &container)

Iterator methods

BALL_INLINE void toBegin () throw (Exception::Precondition)
 

Move the iterator to the item at the beginning of the container.


BALL_INLINE bool isBegin () const
 

Check whether the iterator points to the first item of the container.


BALL_INLINE void toEnd () throw (Exception::Precondition)
 

Move the iterator behind the last item of the container.


BALL_INLINE bool isEnd () const
 

Check whether the iterator points behind the last item of the container.


BALL_INLINE ConstForwardIteratoroperator++ () throw (Exception::Precondition)
 

Increment operator.


BALL_INLINE ConstForwardIterator operator++ (int) throw (Exception::Precondition)
 

Postfix increment operator.


static ConstForwardIterator begin (const Container &container) throw (Exception::Precondition)
 

Return an iterator pointing to the beginning of the container.


static ConstForwardIterator end (const Container &container) throw (Exception::Precondition)
 

Return an iterator pointing at the end of the container.



Detailed Description

template<typename Container, typename DataType, typename Position, typename Traits>
class BALL::ConstForwardIterator< Container, DataType, Position, Traits >

Generic non-mutable forward itterator


Member Typedef Documentation


Constructor & Destructor Documentation

template<typename Container, typename DataType, typename Position, typename Traits>
BALL_INLINE BALL::ConstForwardIterator< Container, DataType, Position, Traits >::ConstForwardIterator (  )  [inline]

Default constructor.

template<typename Container, typename DataType, typename Position, typename Traits>
BALL_INLINE BALL::ConstForwardIterator< Container, DataType, Position, Traits >::ConstForwardIterator ( const ConstForwardIterator< Container, DataType, Position, Traits > &  iterator  )  [inline]

Copy constructor.

template<typename Container, typename DataType, typename Position, typename Traits>
BALL_INLINE BALL::ConstForwardIterator< Container, DataType, Position, Traits >::~ConstForwardIterator (  )  [inline]
template<typename Container, typename DataType, typename Position, typename Traits>
BALL_INLINE BALL::ConstForwardIterator< Container, DataType, Position, Traits >::ConstForwardIterator ( const Container &  container  )  [inline, protected]

Member Function Documentation

template<typename Container , typename DataType , typename Position , typename Traits >
BALL_INLINE bool BALL::ConstForwardIterator< Container, DataType, Position, Traits >::isBegin (  )  const [inline]
template<typename Container , typename DataType , typename Position , typename Traits >
BALL_INLINE bool BALL::ConstForwardIterator< Container, DataType, Position, Traits >::isEnd (  )  const [inline]
template<typename Container, typename DataType, typename Position, typename Traits>
BALL_INLINE ConstForwardIterator& BALL::ConstForwardIterator< Container, DataType, Position, Traits >::operator= ( const ConstForwardIterator< Container, DataType, Position, Traits > &  iterator  )  [inline]
template<typename Container, typename DataType, typename Position, typename Traits>
BALL_INLINE void BALL::ConstForwardIterator< Container, DataType, Position, Traits >::swap ( ConstForwardIterator< Container, DataType, Position, Traits > &  iterator  )  [inline]