BALL
1.4.2
|
#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 Types inherited from BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits > | |
typedef std::random_access_iterator_tag | iterator_category |
typedef ConstBidirectionalIterator < Container, DataType, Position, Traits > | Base |
typedef std::random_access_iterator_tag | iterator_category |
typedef ConstBidirectionalIterator < Container, DataType, Position, Traits > | Base |
Public Types inherited from BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits > | |
typedef std::bidirectional_iterator_tag | iterator_category |
typedef ConstForwardIterator < Container, DataType, Position, Traits > | Base |
typedef std::bidirectional_iterator_tag | iterator_category |
typedef ConstForwardIterator < Container, DataType, Position, Traits > | Base |
Public Types inherited from BALL::ConstForwardIterator< Container, DataType, Position, Traits > | |
typedef std::forward_iterator_tag | iterator_category |
typedef BaseIterator < Container, DataType, Position, Traits > | Base |
typedef std::forward_iterator_tag | iterator_category |
typedef BaseIterator < Container, DataType, Position, Traits > | Base |
Public Types inherited from BALL::BaseIterator< Container, DataType, Position, Traits > | |
typedef DataType | value_type |
typedef Position | difference_type |
typedef const DataType * | pointer |
typedef const DataType & | reference |
typedef std::input_iterator_tag | iterator_category |
typedef DataType | value_type |
typedef Position | difference_type |
typedef const DataType * | pointer |
typedef const DataType & | reference |
typedef Container | container_type |
typedef Traits | traits_type |
typedef std::input_iterator_tag | iterator_category |
Public Member Functions | |
Constructors and Destructors | |
ConstReverseIterator () | |
ConstReverseIterator (const ConstReverseIterator &iterator) | |
~ConstReverseIterator () | |
Predicates | |
bool | operator+ () const |
bool | operator- () const |
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 |
Public Member Functions inherited from BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits > | |
BALL_INLINE | ConstRandomAccessIterator () |
BALL_INLINE | ConstRandomAccessIterator (const ConstRandomAccessIterator &iterator) |
BALL_INLINE | ~ConstRandomAccessIterator () |
ConstRandomAccessIterator () | |
ConstRandomAccessIterator (const ConstRandomAccessIterator &iterator) | |
~ConstRandomAccessIterator () | |
BALL_INLINE bool | operator+ () const |
BALL_INLINE bool | operator- () const |
bool | operator< (const ConstRandomAccessIterator &iterator) const |
bool | operator<= (const ConstRandomAccessIterator &iterator) const |
bool | operator>= (const ConstRandomAccessIterator &iterator) const |
bool | operator> (const ConstRandomAccessIterator &iterator) const |
bool | operator+ () const |
bool | operator- () const |
bool | operator< (const ConstRandomAccessIterator &iterator) const |
bool | operator<= (const ConstRandomAccessIterator &iterator) const |
bool | operator>= (const ConstRandomAccessIterator &iterator) const |
bool | operator> (const ConstRandomAccessIterator &iterator) const |
const DataType & | operator[] (Index index) const |
const DataType & | operator[] (Index index) const |
ConstRandomAccessIterator & | operator+= (Distance distance) |
ConstRandomAccessIterator & | operator-= (Distance distance) |
ConstRandomAccessIterator | operator+ (Distance distance) const |
ConstRandomAccessIterator | operator- (Distance distance) const |
Distance | operator- (const ConstRandomAccessIterator &iterator) const |
ConstRandomAccessIterator & | operator+= (Distance distance) |
ConstRandomAccessIterator & | operator-= (Distance distance) |
ConstRandomAccessIterator | operator+ (Distance distance) const |
ConstRandomAccessIterator | operator- (Distance distance) const |
Distance | operator- (const ConstRandomAccessIterator &iterator) const |
Public Member Functions inherited from BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits > | |
BALL_INLINE | ConstBidirectionalIterator () |
BALL_INLINE | ConstBidirectionalIterator (const ConstBidirectionalIterator &iterator) |
BALL_INLINE | ~ConstBidirectionalIterator () |
ConstBidirectionalIterator () | |
ConstBidirectionalIterator (const ConstBidirectionalIterator &iterator) | |
~ConstBidirectionalIterator () | |
BALL_INLINE void | toBegin () |
BALL_INLINE bool | isBegin () const |
Check whether the iterator points to the item at the beginning of the container. More... | |
void | toEnd () |
BALL_INLINE bool | isEnd () const |
Check whether the iterator points to the position after the last item of the container. More... | |
void | toRBegin () |
BALL_INLINE bool | isRBegin () const |
Test whether the iterator points to the "reverse" first element of the container. More... | |
void | toREnd () |
BALL_INLINE bool | isREnd () const |
Test wheter the iterator points to the position before the first element. More... | |
BALL_INLINE ConstBidirectionalIterator & | operator++ () |
BALL_INLINE ConstBidirectionalIterator | operator++ (int) |
BALL_INLINE ConstBidirectionalIterator & | operator-- () |
BALL_INLINE ConstBidirectionalIterator | operator-- (int) |
void | toBegin () |
bool | isBegin () const |
Check whether the iterator points to the item at the beginning of the container. More... | |
void | toEnd () |
bool | isEnd () const |
Check whether the iterator points to the position after the last item of the container. More... | |
void | toRBegin () |
bool | isRBegin () const |
Test whether the iterator points to the "reverse" first element of the container. More... | |
void | toREnd () |
bool | isREnd () const |
Test wheter the iterator points to the position before the first element. More... | |
ConstBidirectionalIterator & | operator++ () |
ConstBidirectionalIterator | operator++ (int) |
ConstBidirectionalIterator & | operator-- () |
ConstBidirectionalIterator | operator-- (int) |
Public Member Functions inherited from BALL::ConstForwardIterator< Container, DataType, Position, Traits > | |
BALL_INLINE | ConstForwardIterator () |
Default constructor. More... | |
BALL_INLINE | ConstForwardIterator (const ConstForwardIterator &iterator) |
Copy constructor. More... | |
BALL_INLINE | ~ConstForwardIterator () |
ConstForwardIterator () | |
Default constructor. More... | |
ConstForwardIterator (const ConstForwardIterator &iterator) | |
Copy constructor. More... | |
~ConstForwardIterator () | |
BALL_INLINE ConstForwardIterator & | operator= (const ConstForwardIterator &iterator) |
BALL_INLINE void | swap (ConstForwardIterator &iterator) |
ConstForwardIterator & | operator= (const ConstForwardIterator &iterator) |
void | swap (ConstForwardIterator &iterator) |
BALL_INLINE void | toBegin () |
BALL_INLINE bool | isBegin () const |
Check whether the iterator points to the first item of the container. More... | |
BALL_INLINE void | toEnd () |
BALL_INLINE bool | isEnd () const |
Check whether the iterator points behind the last item of the container. More... | |
BALL_INLINE ConstForwardIterator & | operator++ () |
BALL_INLINE ConstForwardIterator | operator++ (int) |
void | toBegin () |
bool | isBegin () const |
Check whether the iterator points to the first item of the container. More... | |
void | toEnd () |
bool | isEnd () const |
Check whether the iterator points behind the last item of the container. More... | |
ConstForwardIterator & | operator++ () |
ConstForwardIterator | operator++ (int) |
Public Member Functions inherited from BALL::BaseIterator< Container, DataType, Position, Traits > | |
BALL_INLINE | BaseIterator () |
Default constructor. More... | |
BALL_INLINE | BaseIterator (const BaseIterator &iterator) |
Copy constructor. More... | |
BALL_INLINE | ~BaseIterator () |
Destructor. More... | |
BaseIterator () | |
Default constructor. More... | |
BaseIterator (const BaseIterator &iterator) | |
Copy constructor. More... | |
~BaseIterator () | |
Destructor. More... | |
BALL_INLINE BaseIterator & | operator= (const BaseIterator &iterator) |
BALL_INLINE void | swap (BaseIterator &iterator) |
Swap two iterators. More... | |
BaseIterator & | operator= (const BaseIterator &iterator) |
void | swap (BaseIterator &iterator) |
Swap two iterators. More... | |
BALL_INLINE void | invalidate () |
Invalidate the iterator. More... | |
BALL_INLINE void | setTraits (const Traits &traits) |
Set the traits. More... | |
BALL_INLINE const Traits & | getTraits () const |
Get a constant reference to the traits of this iterator. More... | |
BALL_INLINE Traits & | getTraits () |
Get a constant reference to the traits of this iterator. More... | |
BALL_INLINE const Container * | getContainer () const |
Get a constant pointer to the container of this iterator. More... | |
void | invalidate () |
Invalidate the iterator. More... | |
void | setTraits (const Traits &traits) |
Set the traits. More... | |
const Traits & | getTraits () const |
Get a constant reference to the traits of this iterator. More... | |
Traits & | getTraits () |
Get a constant reference to the traits of this iterator. More... | |
const Container * | getContainer () const |
Get a constant pointer to the container of this iterator. More... | |
BALL_INLINE | operator const Position & () const |
BALL_INLINE reference | operator* () const |
Convert an iterator to its Datatype by returning a reference to the current data. More... | |
BALL_INLINE pointer | operator-> () const |
Return a pointer to the current data. More... | |
operator const Position & () const | |
reference | operator* () const |
Convert an iterator to its Datatype by returning a reference to the current data. More... | |
pointer | operator-> () const |
Return a pointer to the current data. More... | |
BALL_INLINE bool | operator== (const BaseIterator &iterator) const |
Equality operator. More... | |
BALL_INLINE bool | operator!= (const BaseIterator &iterator) const |
Inequality operator. More... | |
BALL_INLINE bool | isSingular () const |
BALL_INLINE bool | isValid () const |
BALL_INLINE bool | operator+ () const |
Validity predicate. More... | |
BALL_INLINE bool | operator- () const |
Invalidity perdicate. More... | |
bool | operator== (const BaseIterator &iterator) const |
Equality operator. More... | |
bool | operator!= (const BaseIterator &iterator) const |
Inequality operator. More... | |
bool | isSingular () const |
bool | isValid () const |
bool | operator+ () const |
Validity predicate. More... | |
bool | operator- () const |
Invalidity predicate. More... | |
Protected Member Functions | |
ConstReverseIterator (const Container &container) | |
Protected Member Functions inherited from BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits > | |
ConstRandomAccessIterator (const Container &container) | |
ConstRandomAccessIterator (const Container &container) | |
Protected Member Functions inherited from BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits > | |
BALL_INLINE | ConstBidirectionalIterator (const Container &container) |
Construct an iterator bound to a specific container. More... | |
ConstBidirectionalIterator (const Container &container) | |
Construct an iterator bound to a specific container. More... | |
Protected Member Functions inherited from BALL::ConstForwardIterator< Container, DataType, Position, Traits > | |
BALL_INLINE | ConstForwardIterator (const Container &container) |
ConstForwardIterator (const Container &container) | |
Protected Member Functions inherited from BALL::BaseIterator< Container, DataType, Position, Traits > | |
BALL_INLINE | BaseIterator (const Container &container) |
BaseIterator (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) |
Additional Inherited Members | |
Static Public Member Functions inherited from BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits > | |
static ConstRandomAccessIterator | begin (const Container &container) |
static ConstRandomAccessIterator | end (const Container &container) |
static ConstRandomAccessIterator | rbegin (const Container &container) |
static ConstRandomAccessIterator | rend (const Container &container) |
static ConstRandomAccessIterator | begin (const Container &container) |
static ConstRandomAccessIterator | end (const Container &container) |
static ConstRandomAccessIterator | rbegin (const Container &container) |
static ConstRandomAccessIterator | rend (const Container &container) |
Static Public Member Functions inherited from BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits > | |
static ConstBidirectionalIterator | begin (const Container &container) |
static ConstBidirectionalIterator | end (const Container &container) |
static ConstBidirectionalIterator | rbegin (const Container &container) |
static ConstBidirectionalIterator | rend (const Container &container) |
static ConstBidirectionalIterator | begin (const Container &container) |
static ConstBidirectionalIterator | end (const Container &container) |
static ConstBidirectionalIterator | rbegin (const Container &container) |
static ConstBidirectionalIterator | rend (const Container &container) |
Static Public Member Functions inherited from BALL::ConstForwardIterator< Container, DataType, Position, Traits > | |
static ConstForwardIterator | begin (const Container &container) |
static ConstForwardIterator | end (const Container &container) |
static ConstForwardIterator | begin (const Container &container) |
static ConstForwardIterator | end (const Container &container) |
Definition at line 22 of file reverseIterator.h.
typedef ConstRandomAccessIterator<Container, DataType, Position, Traits> BALL::ConstReverseIterator< Container, DataType, Position, Traits >::Base |
Definition at line 34 of file reverseIterator.h.
typedef std::random_access_iterator_tag BALL::ConstReverseIterator< Container, DataType, Position, Traits >::iterator_category |
Definition at line 32 of file reverseIterator.h.
|
inline |
Definition at line 42 of file reverseIterator.h.
|
inline |
Definition at line 45 of file reverseIterator.h.
|
inline |
Definition at line 51 of file reverseIterator.h.
|
inlineprotected |
Definition at line 197 of file reverseIterator.h.
|
static |
Return a ConstReverseIterator for a given container. It points to the first element.
Exception::Precondition |
Definition at line 463 of file reverseIterator.h.
|
static |
Return a Const ReverseIterator for a given container. It points behind the last element of the container.
Exception::Precondition |
Definition at line 472 of file reverseIterator.h.
ConstReverseIterator< Container, DataType, Position, Traits > BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator+ | ( | Distance | distance | ) | const |
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 |
Definition at line 343 of file reverseIterator.h.
|
inline |
Definition at line 143 of file reverseIterator.h.
ConstReverseIterator< Container, DataType, Position, Traits > & BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator++ | ( | ) |
Increment operator
Exception::InvalidIterator | if the iterator is invalid |
Definition at line 206 of file reverseIterator.h.
ConstReverseIterator< Container, DataType, Position, Traits > BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator++ | ( | int | ) |
Postfix increment operator
Exception::InvalidIterator | if the iterator is invalid |
Definition at line 219 of file reverseIterator.h.
ConstReverseIterator< Container, DataType, Position, Traits > & BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator+= | ( | Distance | distance | ) |
Advance iterator a given distance.
Exception::InvalidIterator | if the iterator is invalid |
Definition at line 301 of file reverseIterator.h.
ConstReverseIterator< Container, DataType, Position, Traits > BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator- | ( | Distance | distance | ) | 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 |
Definition at line 351 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 |
|
inline |
Definition at line 146 of file reverseIterator.h.
ConstReverseIterator< Container, DataType, Position, Traits > & BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator-- | ( | ) |
Decrement operator
Exception::SingularIterator | if the iterator is singular |
Definition at line 233 of file reverseIterator.h.
ConstReverseIterator< Container, DataType, Position, Traits > BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator-- | ( | int | ) |
Postfix decrement operator
Exception::SingularIterator | if the iterator is singular |
Definition at line 246 of file reverseIterator.h.
ConstReverseIterator< Container, DataType, Position, Traits > & BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator-= | ( | Distance | distance | ) |
Advance iterator a given distance in reverse direction.
Exception::InvalidIterator | if the iterator is invalid |
Definition at line 318 of file reverseIterator.h.
bool BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator< | ( | const ConstReverseIterator< Container, DataType, Position, Traits > & | iterator | ) | const |
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 |
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 |
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 |
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 |
Random access operator.
Exception::InvalidIterator | if the iterator is invalid |
Definition at line 450 of file reverseIterator.h.
|
static |
Return a Const ReverseIterator for a given container. It points at the last element of the container.
Exception::Precondition |
Definition at line 481 of file reverseIterator.h.
|
static |
Return a Const ReverseIterator for a given container. It points before the first element.
Exception::Precondition |
Definition at line 490 of file reverseIterator.h.