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

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

Constant Bidirectional Iterator. More...

#include <bidirectionalIterator.h>

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

ConstForwardIterator< Container, DataType, Position, Traits > BaseIterator< 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 beginning of the container.
bool isBegin () const throw ()
 Check whether the iterator points to the item at the beginning of the container.
void toEnd () throw (Exception::Precondition)
 Move the iterator to the position after the last item of the container.
bool isEnd () const throw ()
 Check whether the iterator points to the position after the last item of the container.
void toRBegin () throw (Exception::Precondition)
 Move the iterator to the "reverse" beginning of the container.
bool isRBegin () const throw ()
 Test whether the iterator points to the "reverse" first element of the container.
void toREnd () throw (Exception::Precondition)
 Move the iterator to the position before the first element.
bool isREnd () const throw ()
 Test wheter the iterator points to the position before the first element.
ConstBidirectionalIteratoroperator++ () throw (Exception::Precondition)
 Increment operator.
ConstBidirectionalIterator operator++ (int) throw (Exception::Precondition)
 Postfix increment operator.
ConstBidirectionalIteratoroperator-- () throw (Exception::Precondition)
 Decrement operator.
ConstBidirectionalIterator operator-- (int) throw (Exception::Precondition)
 Postfix decrement operator.
ConstBidirectionalIterator begin (const Container &container) throw (Exception::Precondition)
 Return an iterator pointingto the first item of the container.
ConstBidirectionalIterator end (const Container &container) throw (Exception::Precondition)
 Return an iterator pointing to the position after the last element.
ConstBidirectionalIterator rbegin (const Container &container) throw (Exception::Precondition)
 Return an iterator pointing to the last element.
ConstBidirectionalIterator rend (const Container &container) throw (Exception::Precondition)
 Return an iterator pointing to the positon before the first element.

Public Types

Typedefs
typedef std::bidirectional_iterator_tag iterator_category
typedef ConstForwardIterator<
Container, DataType, Position,
Traits > 
Base

Public Member Functions

Constructors and destructor.
 ConstBidirectionalIterator (const ConstBidirectionalIterator &iterator) throw ()

Protected Member Functions

 ConstBidirectionalIterator (const Container &container) throw ()
 Construct an iterator bound to a specific container.

Detailed Description

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

Constant Bidirectional Iterator.