Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

ConstForwardIterator< Container, DataType, Position, Traits > Class Template Reference
[Iterators]

Generic non-mutable forward itterator. More...

#include <forwardIterator.h>

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

BaseIterator< Container, DataType, Position, Traits > ConstBidirectionalIterator< Container, DataType, Position, Traits > ForwardIterator< Container, DataType, Position, Traits > BidirectionalIterator< Container, DataType, Position, Traits > List of all members.

Iterator methods

void toBegin () throw (Exception::Precondition)
 Move the iterator to the item at the beginning of the container.
bool isBegin () const throw ()
 Check whether the iterator points to the first item of the container.
void toEnd () throw (Exception::Precondition)
 Move the iterator behind the last item of the container.
bool isEnd () const throw ()
 Check whether the iterator points behind the last item of the container.
ConstForwardIteratoroperator++ () throw (Exception::Precondition)
 Increment operator.
ConstForwardIterator operator++ (int) throw (Exception::Precondition)
 Postfix increment operator.
ConstForwardIterator begin (const Container &container) throw (Exception::Precondition)
 Return an iterator pointing to the beginning of the container.
ConstForwardIterator end (const Container &container) throw (Exception::Precondition)
 Return an iterator pointing at the end of the container.

Public Types

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

Public Member Functions

Constructors and Destructors
 ConstForwardIterator () throw ()
 Default constructor.
 ConstForwardIterator (const ConstForwardIterator &iterator) throw ()
 Copy constructor.
Assignment
ConstForwardIteratoroperator= (const ConstForwardIterator &iterator) throw ()
void swap (ConstForwardIterator &iterator) throw ()

Protected Member Functions

 ConstForwardIterator (const Container &container) throw ()

Detailed Description

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

Generic non-mutable forward itterator.