#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) |
Definition at line 24 of file randomAccessIterator.h.
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 >, BALL::ConstReverseIterator< Container, DataType, Position, Traits >, and BALL::ReverseIterator< Container, DataType, Position, Traits >.
Definition at line 36 of file randomAccessIterator.h.
typedef std::random_access_iterator_tag BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::iterator_category |
Reimplemented from BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >.
Reimplemented in BALL::ConstReverseIterator< Container, DataType, Position, Traits >.
Definition at line 34 of file randomAccessIterator.h.
BALL_INLINE BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::ConstRandomAccessIterator | ( | ) | [inline] |
Definition at line 44 of file randomAccessIterator.h.
BALL_INLINE BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::ConstRandomAccessIterator | ( | const ConstRandomAccessIterator< Container, DataType, Position, Traits > & | iterator | ) | [inline] |
Definition at line 47 of file randomAccessIterator.h.
BALL_INLINE BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::~ConstRandomAccessIterator | ( | ) | [inline] |
Definition at line 53 of file randomAccessIterator.h.
BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::ConstRandomAccessIterator | ( | const Container & | container | ) | [inline, protected] |
Definition at line 180 of file randomAccessIterator.h.
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 >, BALL::ConstReverseIterator< Container, DataType, Position, Traits >, and BALL::ReverseIterator< Container, DataType, Position, Traits >.
Definition at line 382 of file randomAccessIterator.h.
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 >, BALL::ConstReverseIterator< Container, DataType, Position, Traits >, and BALL::ReverseIterator< Container, DataType, Position, Traits >.
Definition at line 392 of file randomAccessIterator.h.
BALL_INLINE bool BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::operator+ | ( | ) | const [inline] |
Validity predicate.
Reimplemented from BALL::BaseIterator< Container, DataType, Position, Traits >.
Reimplemented in BALL::ConstReverseIterator< Container, DataType, Position, Traits >.
Definition at line 123 of file randomAccessIterator.h.
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.
Reimplemented in BALL::ConstReverseIterator< Container, DataType, Position, Traits >.
Definition at line 268 of file randomAccessIterator.h.
ConstRandomAccessIterator< Container, DataType, Position, Traits > & BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::operator+= | ( | Distance | distance | ) | throw (Exception::InvalidIterator) [inline] |
Advance iterator a given distance.
Reimplemented in BALL::ConstReverseIterator< Container, DataType, Position, Traits >.
Definition at line 226 of file randomAccessIterator.h.
BALL_INLINE bool BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::operator- | ( | ) | const [inline] |
Invalidity perdicate.
Reimplemented from BALL::BaseIterator< Container, DataType, Position, Traits >.
Reimplemented in BALL::ConstReverseIterator< Container, DataType, Position, Traits >.
Definition at line 126 of file randomAccessIterator.h.
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.
Reimplemented in BALL::ConstReverseIterator< Container, DataType, Position, Traits >.
Definition at line 277 of file randomAccessIterator.h.
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.
Reimplemented in BALL::ConstReverseIterator< Container, DataType, Position, Traits >.
Definition at line 243 of file randomAccessIterator.h.
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. |
Definition at line 286 of file randomAccessIterator.h.
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. |
Definition at line 307 of file randomAccessIterator.h.
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. |
Definition at line 348 of file randomAccessIterator.h.
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. |
Definition at line 327 of file randomAccessIterator.h.
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 >, BALL::ConstReverseIterator< Container, DataType, Position, Traits >, and BALL::ReverseIterator< Container, DataType, Position, Traits >.
Definition at line 369 of file randomAccessIterator.h.
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 >, BALL::ConstReverseIterator< Container, DataType, Position, Traits >, and BALL::ReverseIterator< Container, DataType, Position, Traits >.
Definition at line 402 of file randomAccessIterator.h.
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 >, BALL::ConstReverseIterator< Container, DataType, Position, Traits >, and BALL::ReverseIterator< Container, DataType, Position, Traits >.
Definition at line 412 of file randomAccessIterator.h.