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

Random Access Iterator Class. More...

#include <randomAccessIterator.h>

Inherits BALL::ConstRandomAccessIterator<Container, DataType, Position, Traits>.

List of all members.


Public Types

Typedefs
typedef DataType & reference
typedef DataType * pointer
typedef
ConstRandomAccessIterator
< Container, DataType,
Position, Traits >
Base

Public Member Functions

Constructors and Destructors
RandomAccessIterator ()
RandomAccessIterator (const RandomAccessIterator &iterator)
~RandomAccessIterator ()
Dereferenciation
reference operator[] (Index index) const throw (Exception::InvalidIterator)
reference operator* () const
Convert an iterator to its Datatype by returning a reference to the current data.
pointer operator-> () const
Return a pointer to the current data.

Static Public Member Functions

Assignment
static RandomAccessIterator begin (const Container &container) throw (Exception::InvalidIterator)
Return a RandomAccessIterator for a given container.
static RandomAccessIterator end (const Container &container) throw (Exception::InvalidIterator)
Return a RandomAccessIterator for a given container.
static RandomAccessIterator rbegin (const Container &container) throw (Exception::InvalidIterator)
Return a RandomAccessIterator for a given container.
static RandomAccessIterator rend (const Container &container) throw (Exception::InvalidIterator)
Return a RandomAccessIterator for a given container.

Protected Member Functions

RandomAccessIterator (const Container &container)

Detailed Description

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

Random Access Iterator Class.

Member Function Documentation

template<typename Container , typename DataType , typename Position , typename Traits >
RandomAccessIterator< Container, DataType, Position, Traits > BALL::RandomAccessIterator< Container, DataType, Position, Traits >::begin ( const Container & container ) throw (Exception::InvalidIterator) [static]

template<typename Container , typename DataType , typename Position , typename Traits >
RandomAccessIterator< Container, DataType, Position, Traits > BALL::RandomAccessIterator< Container, DataType, Position, Traits >::end ( const Container & container ) throw (Exception::InvalidIterator) [static]

Return a RandomAccessIterator for a given container.

It points behind the last element of the container.

Reimplemented from BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >.

References BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >::toEnd().

template<typename Container , typename DataType , typename Position , typename Traits >
RandomAccessIterator< Container, DataType, Position, Traits > BALL::RandomAccessIterator< Container, DataType, Position, Traits >::rbegin ( const Container & container ) throw (Exception::InvalidIterator) [static]

template<typename Container , typename DataType , typename Position , typename Traits >
RandomAccessIterator< Container, DataType, Position, Traits > BALL::RandomAccessIterator< Container, DataType, Position, Traits >::rend ( const Container & container ) throw (Exception::InvalidIterator) [static]

Generated on Thu Aug 6 18:30:27 2009 for BALL by doxygen 1.5.8