#include <BALL/CONCEPT/randomAccessIterator.h>
Public Types | |
Typedefs | |
typedef std::random_access_iterator_tag | iterator_category |
typedef ConstBidirectionalIterator < Container, DataType, Position, Traits > | Base |
Public Member Functions | |
Constructors and Destructors | |
BALL_INLINE | ConstRandomAccessIterator () |
BALL_INLINE | ConstRandomAccessIterator (const ConstRandomAccessIterator &iterator) |
BALL_INLINE | ~ConstRandomAccessIterator () |
Predicates | |
BALL_INLINE bool | operator+ () const |
Validity predicate. | |
BALL_INLINE bool | operator- () const |
Invalidity perdicate. | |
bool | operator< (const ConstRandomAccessIterator &iterator) const throw (Exception::InvalidIterator, Exception::IncompatibleIterators) |
bool | operator<= (const ConstRandomAccessIterator &iterator) const throw (Exception::InvalidIterator, Exception::IncompatibleIterators) |
bool | operator>= (const ConstRandomAccessIterator &iterator) const throw (Exception::InvalidIterator, Exception::IncompatibleIterators) |
bool | operator> (const ConstRandomAccessIterator &iterator) const throw (Exception::InvalidIterator, Exception::IncompatibleIterators) |
Iterator dereferencing | |
const DataType & | operator[] (Index index) const throw (Exception::InvalidIterator) |
Protected Member Functions | |
ConstRandomAccessIterator (const Container &container) | |
Assignment | |
ConstRandomAccessIterator & | operator+= (Distance distance) throw (Exception::InvalidIterator) |
ConstRandomAccessIterator & | operator-= (Distance distance) throw (Exception::InvalidIterator) |
ConstRandomAccessIterator | operator+ (Distance distance) const throw (Exception::InvalidIterator) |
ConstRandomAccessIterator | operator- (Distance distance) const throw (Exception::InvalidIterator) |
Distance | operator- (const ConstRandomAccessIterator &iterator) const throw (Exception::InvalidIterator, Exception::IncompatibleIterators) |
static ConstRandomAccessIterator | begin (const Container &container) throw (Exception::InvalidIterator) |
static ConstRandomAccessIterator | end (const Container &container) throw (Exception::InvalidIterator) |
static ConstRandomAccessIterator | rbegin (const Container &container) throw (Exception::InvalidIterator) |
static ConstRandomAccessIterator | rend (const Container &container) throw (Exception::InvalidIterator) |
typedef ConstBidirectionalIterator<Container, DataType, Position, Traits> BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::Base |
Reimplemented from BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >.
Reimplemented in BALL::RandomAccessIterator< Container, DataType, Position, Traits >.
typedef std::random_access_iterator_tag BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::iterator_category |
Reimplemented from BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >.
BALL_INLINE BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::ConstRandomAccessIterator | ( | ) | [inline] |
BALL_INLINE BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::ConstRandomAccessIterator | ( | const ConstRandomAccessIterator< Container, DataType, Position, Traits > & | iterator | ) | [inline] |
BALL_INLINE BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::~ConstRandomAccessIterator | ( | ) | [inline] |
BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::ConstRandomAccessIterator | ( | const Container & | container | ) | [inline, protected] |
ConstRandomAccessIterator< Container, DataType, Position, Traits > BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::begin | ( | const Container & | container | ) | throw (Exception::InvalidIterator) [inline, static] |
Return a ConstRandomAccessIterator for a given container. It points to the first element.
Reimplemented from BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >.
Reimplemented in BALL::RandomAccessIterator< Container, DataType, Position, Traits >.
References BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >::toBegin().
ConstRandomAccessIterator< Container, DataType, Position, Traits > BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::end | ( | const Container & | container | ) | throw (Exception::InvalidIterator) [inline, static] |
Return a Const RandomAccessIterator for a given container. It points behind the last element of the container.
Reimplemented from BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >.
Reimplemented in BALL::RandomAccessIterator< Container, DataType, Position, Traits >.
References BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >::toEnd().
BALL_INLINE bool BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::operator+ | ( | ) | const [inline] |
Validity predicate.
Reimplemented from BALL::BaseIterator< Container, DataType, Position, Traits >.
ConstRandomAccessIterator< Container, DataType, Position, Traits > BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::operator+ | ( | Distance | distance | ) | const throw (Exception::InvalidIterator) [inline] |
Return an iterator. It points to the element with the given distance from the element of this iterator.
ConstRandomAccessIterator< Container, DataType, Position, Traits > & BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::operator+= | ( | Distance | distance | ) | throw (Exception::InvalidIterator) [inline] |
Advance iterator a given distance.
BALL_INLINE bool BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::operator- | ( | ) | const [inline] |
Invalidity perdicate.
Reimplemented from BALL::BaseIterator< Container, DataType, Position, Traits >.
Distance BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::operator- | ( | const ConstRandomAccessIterator< Container, DataType, Position, Traits > & | iterator | ) | const throw (Exception::InvalidIterator, Exception::IncompatibleIterators) |
Return an iterator. It points to the element with the given distance in reverse direction from the element of this iterator.
ConstRandomAccessIterator< Container, DataType, Position, Traits > BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::operator- | ( | Distance | distance | ) | const throw (Exception::InvalidIterator) [inline] |
Return an iterator. It points to the element with the given distance in reverse direction from the element of this iterator.
ConstRandomAccessIterator< Container, DataType, Position, Traits > & BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::operator-= | ( | Distance | distance | ) | throw (Exception::InvalidIterator) [inline] |
Advance iterator a given distance in reverse direction.
bool BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::operator< | ( | const ConstRandomAccessIterator< Container, DataType, Position, Traits > & | iterator | ) | const throw (Exception::InvalidIterator, Exception::IncompatibleIterators) [inline] |
Lesser operator. Returns true if both iterators have the same container and the element of this iterator resides before the elemen of the given iterator.
InvalidIterator | if one of the iterators is not valid | |
IncompatibleIterators | if the iterators show to different containers. |
bool BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::operator<= | ( | const ConstRandomAccessIterator< Container, DataType, Position, Traits > & | iterator | ) | const throw (Exception::InvalidIterator, Exception::IncompatibleIterators) [inline] |
Lesser or equal operator. Returns true if both iterators have the same container and the element of this iterator resides before the elemen of the given iterator or both iterators point to the same element.
InvalidIterator | if one of the iterators is not valid | |
IncompatibleIterators | if the iterators show to different containers. |
bool BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::operator> | ( | const ConstRandomAccessIterator< Container, DataType, Position, Traits > & | iterator | ) | const throw (Exception::InvalidIterator, Exception::IncompatibleIterators) [inline] |
Greater operator. Returns true if both iterators have the same container and the element of this iterator resides after the elemen of the given iterator.
InvalidIterator | if one of the iterators is not valid | |
IncompatibleIterators | if the iterators show to different containers. |
bool BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::operator>= | ( | const ConstRandomAccessIterator< Container, DataType, Position, Traits > & | iterator | ) | const throw (Exception::InvalidIterator, Exception::IncompatibleIterators) [inline] |
Greater or equal operator. Returns true if both iterators have the same container and the element of this iterator resides after the elemen of the given iterator or both iterators point to the same element.
InvalidIterator | if one of the iterators is not valid | |
IncompatibleIterators | if the iterators show to different containers. |
const DataType & BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::operator[] | ( | Index | index | ) | const throw (Exception::InvalidIterator) [inline] |
Random access operator.
Reimplemented in BALL::RandomAccessIterator< Container, DataType, Position, Traits >.
ConstRandomAccessIterator< Container, DataType, Position, Traits > BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::rbegin | ( | const Container & | container | ) | throw (Exception::InvalidIterator) [inline, static] |
Return a Const RandomAccessIterator for a given container. It points at the last element of the container.
Reimplemented from BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >.
Reimplemented in BALL::RandomAccessIterator< Container, DataType, Position, Traits >.
References BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >::toRBegin().
ConstRandomAccessIterator< Container, DataType, Position, Traits > BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::rend | ( | const Container & | container | ) | throw (Exception::InvalidIterator) [inline, static] |
Return a Const RandomAccessIterator for a given container. It points before the first element.
Reimplemented from BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >.
Reimplemented in BALL::RandomAccessIterator< Container, DataType, Position, Traits >.
References BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >::toREnd().