#include <randomAccessIterator.h>
Inherits BALL::ConstRandomAccessIterator<Container, DataType, Position, Traits>.
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) |
RandomAccessIterator< Container, DataType, Position, Traits > BALL::RandomAccessIterator< Container, DataType, Position, Traits >::begin | ( | const Container & | container | ) | throw (Exception::InvalidIterator)
[static] |
Return a RandomAccessIterator for a given container.
It points at the first element.
Reimplemented from BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >.
References BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >::toBegin().
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().
RandomAccessIterator< Container, DataType, Position, Traits > BALL::RandomAccessIterator< Container, DataType, Position, Traits >::rbegin | ( | const Container & | container | ) | throw (Exception::InvalidIterator)
[static] |
Return a RandomAccessIterator for a given container.
It points at the last element of the container.
Reimplemented from BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >.
References BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >::toRBegin().
RandomAccessIterator< Container, DataType, Position, Traits > BALL::RandomAccessIterator< Container, DataType, Position, Traits >::rend | ( | const Container & | container | ) | throw (Exception::InvalidIterator)
[static] |
Return a RandomAccessIterator for a given container.
It points before the first element.
Reimplemented from BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >.
References BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >::toREnd().