#include <BALL/MATHS/LINALG/reverseIterator.h>
Public Types | |
Typedefs | |
typedef std::random_access_iterator_tag | iterator_category |
typedef ConstRandomAccessIterator < Container, DataType, Position, Traits > | Base |
Public Member Functions | |
Constructors and Destructors | |
ConstReverseIterator () throw () | |
ConstReverseIterator (const ConstReverseIterator &iterator) throw () | |
~ConstReverseIterator () throw () | |
Predicates | |
bool | operator+ () const throw () |
Validity predicate. | |
bool | operator- () const throw () |
Invalidity perdicate. | |
bool | operator< (const ConstReverseIterator &iterator) const throw (Exception::InvalidIterator, Exception::IncompatibleIterators) |
bool | operator<= (const ConstReverseIterator &iterator) const throw (Exception::InvalidIterator, Exception::IncompatibleIterators) |
bool | operator>= (const ConstReverseIterator &iterator) const throw (Exception::InvalidIterator, Exception::IncompatibleIterators) |
bool | operator> (const ConstReverseIterator &iterator) const throw (Exception::InvalidIterator, Exception::IncompatibleIterators) |
Iterator dereferencing | |
const DataType & | operator[] (Index index) const throw (Exception::InvalidIterator) |
Protected Member Functions | |
ConstReverseIterator (const Container &container) throw () | |
Assignment | |
| |
ConstReverseIterator & | operator+= (Distance distance) throw (Exception::InvalidIterator) |
ConstReverseIterator & | operator-= (Distance distance) throw (Exception::InvalidIterator) |
ConstReverseIterator | operator+ (Distance distance) const throw (Exception::InvalidIterator) |
ConstReverseIterator | operator- (Distance distance) const throw (Exception::InvalidIterator) |
Distance | operator- (const ConstReverseIterator &iterator) const throw (Exception::InvalidIterator, Exception::IncompatibleIterators) |
ConstReverseIterator & | operator++ () throw (Exception::InvalidIterator) |
Increment operator. | |
ConstReverseIterator | operator++ (int) throw (Exception::InvalidIterator) |
Postfix increment operator. | |
ConstReverseIterator & | operator-- () throw (Exception::SingularIterator) |
Decrement operator. | |
ConstReverseIterator | operator-- (int) throw (Exception::SingularIterator) |
Postfix decrement operator. | |
static ConstReverseIterator | begin (const Container &container) throw (Exception::Precondition) |
static ConstReverseIterator | end (const Container &container) throw (Exception::Precondition) |
static ConstReverseIterator | rbegin (const Container &container) throw (Exception::Precondition) |
static ConstReverseIterator | rend (const Container &container) throw (Exception::Precondition) |
Definition at line 22 of file reverseIterator.h.
typedef ConstRandomAccessIterator<Container, DataType, Position, Traits> BALL::ConstReverseIterator< Container, DataType, Position, Traits >::Base |
Reimplemented from BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >.
Reimplemented in BALL::ReverseIterator< Container, DataType, Position, Traits >.
Definition at line 34 of file reverseIterator.h.
typedef std::random_access_iterator_tag BALL::ConstReverseIterator< Container, DataType, Position, Traits >::iterator_category |
Reimplemented from BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >.
Definition at line 32 of file reverseIterator.h.
BALL::ConstReverseIterator< Container, DataType, Position, Traits >::ConstReverseIterator | ( | ) | throw () [inline] |
Definition at line 42 of file reverseIterator.h.
BALL::ConstReverseIterator< Container, DataType, Position, Traits >::ConstReverseIterator | ( | const ConstReverseIterator< Container, DataType, Position, Traits > & | iterator | ) | throw () [inline] |
Definition at line 45 of file reverseIterator.h.
BALL::ConstReverseIterator< Container, DataType, Position, Traits >::~ConstReverseIterator | ( | ) | throw () [inline] |
Definition at line 51 of file reverseIterator.h.
BALL::ConstReverseIterator< Container, DataType, Position, Traits >::ConstReverseIterator | ( | const Container & | container | ) | throw () [inline, protected] |
Definition at line 191 of file reverseIterator.h.
ConstReverseIterator< Container, DataType, Position, Traits > BALL::ConstReverseIterator< Container, DataType, Position, Traits >::begin | ( | const Container & | container | ) | throw (Exception::Precondition) [inline, static] |
Return a ConstReverseIterator for a given container. It points to the first element.
Reimplemented from BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >.
Reimplemented in BALL::ReverseIterator< Container, DataType, Position, Traits >.
Definition at line 469 of file reverseIterator.h.
ConstReverseIterator< Container, DataType, Position, Traits > BALL::ConstReverseIterator< Container, DataType, Position, Traits >::end | ( | const Container & | container | ) | throw (Exception::Precondition) [inline, static] |
Return a Const ReverseIterator for a given container. It points behind the last element of the container.
Reimplemented from BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >.
Reimplemented in BALL::ReverseIterator< Container, DataType, Position, Traits >.
Definition at line 479 of file reverseIterator.h.
bool BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator+ | ( | ) | const throw () [inline] |
Validity predicate.
Reimplemented from BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >.
Definition at line 134 of file reverseIterator.h.
ConstReverseIterator< Container, DataType, Position, Traits > BALL::ConstReverseIterator< 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 from BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >.
Definition at line 342 of file reverseIterator.h.
ConstReverseIterator< Container, DataType, Position, Traits > BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator++ | ( | int | ) | throw (Exception::InvalidIterator) [inline] |
Postfix increment operator.
Reimplemented from BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >.
Definition at line 214 of file reverseIterator.h.
ConstReverseIterator< Container, DataType, Position, Traits > & BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator++ | ( | ) | throw (Exception::InvalidIterator) [inline] |
Increment operator.
Reimplemented from BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >.
Definition at line 200 of file reverseIterator.h.
ConstReverseIterator< Container, DataType, Position, Traits > & BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator+= | ( | Distance | distance | ) | throw (Exception::InvalidIterator) [inline] |
Advance iterator a given distance.
Reimplemented from BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >.
Definition at line 298 of file reverseIterator.h.
bool BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator- | ( | ) | const throw () [inline] |
Invalidity perdicate.
Reimplemented from BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >.
Definition at line 137 of file reverseIterator.h.
Distance BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator- | ( | const ConstReverseIterator< 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.
ConstReverseIterator< Container, DataType, Position, Traits > BALL::ConstReverseIterator< 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 from BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >.
Definition at line 351 of file reverseIterator.h.
ConstReverseIterator< Container, DataType, Position, Traits > BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator-- | ( | int | ) | throw (Exception::SingularIterator) [inline] |
Postfix decrement operator.
Reimplemented from BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >.
Definition at line 243 of file reverseIterator.h.
ConstReverseIterator< Container, DataType, Position, Traits > & BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator-- | ( | ) | throw (Exception::SingularIterator) [inline] |
Decrement operator.
Reimplemented from BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >.
Definition at line 229 of file reverseIterator.h.
ConstReverseIterator< Container, DataType, Position, Traits > & BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator-= | ( | Distance | distance | ) | throw (Exception::InvalidIterator) [inline] |
Advance iterator a given distance in reverse direction.
Reimplemented from BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >.
Definition at line 316 of file reverseIterator.h.
bool BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator< | ( | const ConstReverseIterator< 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 360 of file reverseIterator.h.
bool BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator<= | ( | const ConstReverseIterator< 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 384 of file reverseIterator.h.
bool BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator> | ( | const ConstReverseIterator< 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 431 of file reverseIterator.h.
bool BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator>= | ( | const ConstReverseIterator< 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 407 of file reverseIterator.h.
const DataType & BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator[] | ( | Index | index | ) | const throw (Exception::InvalidIterator) [inline] |
Random access operator.
Reimplemented from BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >.
Reimplemented in BALL::ReverseIterator< Container, DataType, Position, Traits >.
Definition at line 455 of file reverseIterator.h.
ConstReverseIterator< Container, DataType, Position, Traits > BALL::ConstReverseIterator< Container, DataType, Position, Traits >::rbegin | ( | const Container & | container | ) | throw (Exception::Precondition) [inline, static] |
Return a Const ReverseIterator for a given container. It points at the last element of the container.
Reimplemented from BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >.
Reimplemented in BALL::ReverseIterator< Container, DataType, Position, Traits >.
Definition at line 489 of file reverseIterator.h.
ConstReverseIterator< Container, DataType, Position, Traits > BALL::ConstReverseIterator< Container, DataType, Position, Traits >::rend | ( | const Container & | container | ) | throw (Exception::Precondition) [inline, static] |
Return a Const ReverseIterator for a given container. It points before the first element.
Reimplemented from BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >.
Reimplemented in BALL::ReverseIterator< Container, DataType, Position, Traits >.
Definition at line 499 of file reverseIterator.h.