#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 () | |
ConstReverseIterator (const ConstReverseIterator &iterator) | |
~ConstReverseIterator () | |
Predicates | |
bool | operator+ () const |
Validity predicate. | |
bool | operator- () const |
Invalidity perdicate. | |
bool | operator< (const ConstReverseIterator &iterator) const |
bool | operator<= (const ConstReverseIterator &iterator) const |
bool | operator>= (const ConstReverseIterator &iterator) const |
bool | operator> (const ConstReverseIterator &iterator) const |
Iterator dereferencing | |
const DataType & | operator[] (Index index) const |
Protected Member Functions | |
ConstReverseIterator (const Container &container) | |
Assignment | |
| |
ConstReverseIterator & | operator+= (Distance distance) |
ConstReverseIterator & | operator-= (Distance distance) |
ConstReverseIterator | operator+ (Distance distance) const |
ConstReverseIterator | operator- (Distance distance) const |
Distance | operator- (const ConstReverseIterator &iterator) const |
ConstReverseIterator & | operator++ () |
ConstReverseIterator | operator++ (int) |
ConstReverseIterator & | operator-- () |
ConstReverseIterator | operator-- (int) |
static ConstReverseIterator | begin (const Container &container) |
static ConstReverseIterator | end (const Container &container) |
static ConstReverseIterator | rbegin (const Container &container) |
static ConstReverseIterator | rend (const Container &container) |
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 | ( | ) | [inline] |
Definition at line 42 of file reverseIterator.h.
BALL::ConstReverseIterator< Container, DataType, Position, Traits >::ConstReverseIterator | ( | const ConstReverseIterator< Container, DataType, Position, Traits > & | iterator | ) | [inline] |
Definition at line 45 of file reverseIterator.h.
BALL::ConstReverseIterator< Container, DataType, Position, Traits >::~ConstReverseIterator | ( | ) | [inline] |
Definition at line 51 of file reverseIterator.h.
BALL::ConstReverseIterator< Container, DataType, Position, Traits >::ConstReverseIterator | ( | const Container & | container | ) | [inline, protected] |
Definition at line 197 of file reverseIterator.h.
ConstReverseIterator< Container, DataType, Position, Traits > BALL::ConstReverseIterator< Container, DataType, Position, Traits >::begin | ( | const Container & | container | ) | [inline, static] |
Return a ConstReverseIterator for a given container. It points to the first element.
Exception::Precondition |
Reimplemented from BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >.
Reimplemented in BALL::ReverseIterator< Container, DataType, Position, Traits >.
Definition at line 463 of file reverseIterator.h.
ConstReverseIterator< Container, DataType, Position, Traits > BALL::ConstReverseIterator< Container, DataType, Position, Traits >::end | ( | const Container & | container | ) | [inline, static] |
Return a Const ReverseIterator for a given container. It points behind the last element of the container.
Exception::Precondition |
Reimplemented from BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >.
Reimplemented in BALL::ReverseIterator< Container, DataType, Position, Traits >.
Definition at line 472 of file reverseIterator.h.
bool BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator+ | ( | ) | const [inline] |
Validity predicate.
Reimplemented from BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >.
Definition at line 143 of file reverseIterator.h.
ConstReverseIterator< Container, DataType, Position, Traits > BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator+ | ( | Distance | distance | ) | const [inline] |
Return an iterator. It points to the element with the given distance from the element of this iterator.
Exception::InvalidIterator | if the iterator is invalid |
Reimplemented from BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >.
Definition at line 343 of file reverseIterator.h.
ConstReverseIterator< Container, DataType, Position, Traits > BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator++ | ( | int | ) | [inline] |
Postfix increment operator
Exception::InvalidIterator | if the iterator is invalid |
Reimplemented from BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >.
Definition at line 219 of file reverseIterator.h.
ConstReverseIterator< Container, DataType, Position, Traits > & BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator++ | ( | ) | [inline] |
Increment operator
Exception::InvalidIterator | if the iterator is invalid |
Reimplemented from BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >.
Definition at line 206 of file reverseIterator.h.
ConstReverseIterator< Container, DataType, Position, Traits > & BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator+= | ( | Distance | distance | ) | [inline] |
Advance iterator a given distance.
Exception::InvalidIterator | if the iterator is invalid |
Reimplemented from BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >.
Definition at line 301 of file reverseIterator.h.
bool BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator- | ( | ) | const [inline] |
Invalidity perdicate.
Reimplemented from BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >.
Definition at line 146 of file reverseIterator.h.
Distance BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator- | ( | const ConstReverseIterator< Container, DataType, Position, Traits > & | iterator | ) | const |
Return an iterator. It points to the element with the given distance in reverse direction from the element of this iterator.
Exception::InvalidIterator | if the iterator is invalid | |
Exception::IncompatibleIterators | if this iterator and the argument are incompatible |
ConstReverseIterator< Container, DataType, Position, Traits > BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator- | ( | Distance | distance | ) | const [inline] |
Return an iterator. It points to the element with the given distance in reverse direction from the element of this iterator.
Exception::InvalidIterator | if the iterator is invalid |
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 | ) | [inline] |
Postfix decrement operator
Exception::SingularIterator | if the iterator is singular |
Reimplemented from BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >.
Definition at line 246 of file reverseIterator.h.
ConstReverseIterator< Container, DataType, Position, Traits > & BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator-- | ( | ) | [inline] |
Decrement operator
Exception::SingularIterator | if the iterator is singular |
Reimplemented from BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >.
Definition at line 233 of file reverseIterator.h.
ConstReverseIterator< Container, DataType, Position, Traits > & BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator-= | ( | Distance | distance | ) | [inline] |
Advance iterator a given distance in reverse direction.
Exception::InvalidIterator | if the iterator is invalid |
Reimplemented from BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >.
Definition at line 318 of file reverseIterator.h.
bool BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator< | ( | const ConstReverseIterator< Container, DataType, Position, Traits > & | iterator | ) | const [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 359 of file reverseIterator.h.
bool BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator<= | ( | const ConstReverseIterator< Container, DataType, Position, Traits > & | iterator | ) | const [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 382 of file reverseIterator.h.
bool BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator> | ( | const ConstReverseIterator< Container, DataType, Position, Traits > & | iterator | ) | const [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 427 of file reverseIterator.h.
bool BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator>= | ( | const ConstReverseIterator< Container, DataType, Position, Traits > & | iterator | ) | const [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 404 of file reverseIterator.h.
const DataType & BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator[] | ( | Index | index | ) | const [inline] |
Random access operator.
Exception::InvalidIterator | if the iterator is invalid |
Reimplemented from BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >.
Reimplemented in BALL::ReverseIterator< Container, DataType, Position, Traits >.
Definition at line 450 of file reverseIterator.h.
ConstReverseIterator< Container, DataType, Position, Traits > BALL::ConstReverseIterator< Container, DataType, Position, Traits >::rbegin | ( | const Container & | container | ) | [inline, static] |
Return a Const ReverseIterator for a given container. It points at the last element of the container.
Exception::Precondition |
Reimplemented from BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >.
Reimplemented in BALL::ReverseIterator< Container, DataType, Position, Traits >.
Definition at line 481 of file reverseIterator.h.
ConstReverseIterator< Container, DataType, Position, Traits > BALL::ConstReverseIterator< Container, DataType, Position, Traits >::rend | ( | const Container & | container | ) | [inline, static] |
Return a Const ReverseIterator for a given container. It points before the first element.
Exception::Precondition |
Reimplemented from BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >.
Reimplemented in BALL::ReverseIterator< Container, DataType, Position, Traits >.
Definition at line 490 of file reverseIterator.h.