BALL::ConstReverseIterator< Container, DataType, Position, Traits > Class Template Reference

#include <BALL/MATHS/LINALG/reverseIterator.h>

Inheritance diagram for BALL::ConstReverseIterator< Container, DataType, Position, Traits >:
Inheritance graph
[legend]

List of all members.

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



ConstReverseIteratoroperator+= (Distance distance)
ConstReverseIteratoroperator-= (Distance distance)
ConstReverseIterator operator+ (Distance distance) const
ConstReverseIterator operator- (Distance distance) const
Distance operator- (const ConstReverseIterator &iterator) const
ConstReverseIteratoroperator++ ()
ConstReverseIterator operator++ (int)
ConstReverseIteratoroperator-- ()
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)

Detailed Description

template<typename Container, typename DataType, typename Position, typename Traits>
class BALL::ConstReverseIterator< Container, DataType, Position, Traits >

Definition at line 22 of file reverseIterator.h.


Member Typedef Documentation

template<typename Container, typename DataType, typename Position, typename Traits>
typedef ConstRandomAccessIterator<Container, DataType, Position, Traits> BALL::ConstReverseIterator< Container, DataType, Position, Traits >::Base
template<typename Container, typename DataType, typename Position, typename Traits>
typedef std::random_access_iterator_tag BALL::ConstReverseIterator< Container, DataType, Position, Traits >::iterator_category

Constructor & Destructor Documentation

template<typename Container, typename DataType, typename Position, typename Traits>
BALL::ConstReverseIterator< Container, DataType, Position, Traits >::ConstReverseIterator (  )  [inline]

Definition at line 42 of file reverseIterator.h.

template<typename Container, typename DataType, typename Position, typename Traits>
BALL::ConstReverseIterator< Container, DataType, Position, Traits >::ConstReverseIterator ( const ConstReverseIterator< Container, DataType, Position, Traits > &  iterator  )  [inline]

Definition at line 45 of file reverseIterator.h.

template<typename Container, typename DataType, typename Position, typename Traits>
BALL::ConstReverseIterator< Container, DataType, Position, Traits >::~ConstReverseIterator (  )  [inline]

Definition at line 51 of file reverseIterator.h.

template<typename Container, typename DataType, typename Position, typename Traits>
BALL::ConstReverseIterator< Container, DataType, Position, Traits >::ConstReverseIterator ( const Container &  container  )  [inline, protected]

Definition at line 197 of file reverseIterator.h.


Member Function Documentation

template<typename Container , typename DataType , typename Position , typename Traits >
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.

Exceptions:
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.

template<typename Container , typename DataType , typename Position , typename Traits >
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.

Exceptions:
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.

template<typename Container, typename DataType, typename Position, typename Traits>
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.

template<typename Container , typename DataType , typename Position , typename Traits >
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.

Exceptions:
Exception::InvalidIterator if the iterator is invalid

Reimplemented from BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >.

Definition at line 343 of file reverseIterator.h.

template<typename Container , typename DataType , typename Position , typename Traits >
ConstReverseIterator< Container, DataType, Position, Traits > BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator++ ( int   )  [inline]

Postfix increment operator

Exceptions:
Exception::InvalidIterator if the iterator is invalid

Reimplemented from BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >.

Definition at line 219 of file reverseIterator.h.

template<typename Container , typename DataType , typename Position , typename Traits >
ConstReverseIterator< Container, DataType, Position, Traits > & BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator++ (  )  [inline]

Increment operator

Exceptions:
Exception::InvalidIterator if the iterator is invalid

Reimplemented from BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >.

Definition at line 206 of file reverseIterator.h.

template<typename Container , typename DataType , typename Position , typename Traits >
ConstReverseIterator< Container, DataType, Position, Traits > & BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator+= ( Distance  distance  )  [inline]

Advance iterator a given distance.

Exceptions:
Exception::InvalidIterator if the iterator is invalid

Reimplemented from BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >.

Definition at line 301 of file reverseIterator.h.

template<typename Container, typename DataType, typename Position, typename Traits>
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.

template<typename Container, typename DataType, typename Position, typename Traits>
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.

Exceptions:
Exception::InvalidIterator if the iterator is invalid
Exception::IncompatibleIterators if this iterator and the argument are incompatible
template<typename Container , typename DataType , typename Position , typename Traits >
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.

Exceptions:
Exception::InvalidIterator if the iterator is invalid

Reimplemented from BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >.

Definition at line 351 of file reverseIterator.h.

template<typename Container , typename DataType , typename Position , typename Traits >
ConstReverseIterator< Container, DataType, Position, Traits > BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator-- ( int   )  [inline]

Postfix decrement operator

Exceptions:
Exception::SingularIterator if the iterator is singular

Reimplemented from BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >.

Definition at line 246 of file reverseIterator.h.

template<typename Container , typename DataType , typename Position , typename Traits >
ConstReverseIterator< Container, DataType, Position, Traits > & BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator-- (  )  [inline]

Decrement operator

Exceptions:
Exception::SingularIterator if the iterator is singular

Reimplemented from BALL::ConstBidirectionalIterator< Container, DataType, Position, Traits >.

Definition at line 233 of file reverseIterator.h.

template<typename Container , typename DataType , typename Position , typename Traits >
ConstReverseIterator< Container, DataType, Position, Traits > & BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator-= ( Distance  distance  )  [inline]

Advance iterator a given distance in reverse direction.

Exceptions:
Exception::InvalidIterator if the iterator is invalid

Reimplemented from BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >.

Definition at line 318 of file reverseIterator.h.

template<typename Container , typename DataType , typename Position , typename Traits >
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.

Exceptions:
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.

template<typename Container , typename DataType , typename Position , typename Traits >
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.

Exceptions:
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.

template<typename Container , typename DataType , typename Position , typename Traits >
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.

Exceptions:
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.

template<typename Container , typename DataType , typename Position , typename Traits >
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.

Exceptions:
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.

template<typename Container , typename DataType , typename Position , typename Traits >
const DataType & BALL::ConstReverseIterator< Container, DataType, Position, Traits >::operator[] ( Index  index  )  const [inline]

Random access operator.

Exceptions:
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.

template<typename Container , typename DataType , typename Position , typename Traits >
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.

Exceptions:
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.

template<typename Container , typename DataType , typename Position , typename Traits >
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.

Exceptions:
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.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Generated by  doxygen 1.6.3