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

#include <BALL/CONCEPT/randomAccessIterator.h>

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

List of all members.

Public Types

Typedefs

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 Member Functions

Constructors and Destructors

BALL_INLINE ConstRandomAccessIterator ()
BALL_INLINE ConstRandomAccessIterator (const ConstRandomAccessIterator &iterator)
BALL_INLINE ~ConstRandomAccessIterator ()
 ConstRandomAccessIterator ()
 ConstRandomAccessIterator (const ConstRandomAccessIterator &iterator)
 ~ConstRandomAccessIterator ()
Predicates

BALL_INLINE bool operator+ () const
 Validity predicate.
BALL_INLINE bool operator- () const
 Invalidity perdicate.
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
 Validity predicate.
bool operator- () const
 Invalidity perdicate.
bool operator< (const ConstRandomAccessIterator &iterator) const
bool operator<= (const ConstRandomAccessIterator &iterator) const
bool operator>= (const ConstRandomAccessIterator &iterator) const
bool operator> (const ConstRandomAccessIterator &iterator) const
Iterator dereferencing

const DataType & operator[] (Index index) const
const DataType & operator[] (Index index) const

Protected Member Functions

 ConstRandomAccessIterator (const Container &container)
 ConstRandomAccessIterator (const Container &container)

Assignment



ConstRandomAccessIteratoroperator+= (Distance distance)
ConstRandomAccessIteratoroperator-= (Distance distance)
ConstRandomAccessIterator operator+ (Distance distance) const
ConstRandomAccessIterator operator- (Distance distance) const
Distance operator- (const ConstRandomAccessIterator &iterator) const
ConstRandomAccessIteratoroperator+= (Distance distance)
ConstRandomAccessIteratoroperator-= (Distance distance)
ConstRandomAccessIterator operator+ (Distance distance) const
ConstRandomAccessIterator operator- (Distance distance) const
Distance operator- (const ConstRandomAccessIterator &iterator) const
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)

Detailed Description

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

Definition at line 24 of file CONCEPT/randomAccessIterator.h.


Member Typedef Documentation

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

Constructor & Destructor Documentation

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

Definition at line 44 of file CONCEPT/randomAccessIterator.h.

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

Definition at line 47 of file CONCEPT/randomAccessIterator.h.

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

Definition at line 53 of file CONCEPT/randomAccessIterator.h.

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

Definition at line 178 of file CONCEPT/randomAccessIterator.h.

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

Definition at line 40 of file MATHS/LINALG/randomAccessIterator.h.

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

Definition at line 43 of file MATHS/LINALG/randomAccessIterator.h.

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

Definition at line 49 of file MATHS/LINALG/randomAccessIterator.h.

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

Definition at line 174 of file MATHS/LINALG/randomAccessIterator.h.


Member Function Documentation

template<typename Container , typename DataType , typename Position , typename Traits >
static ConstRandomAccessIterator BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::begin ( const Container &  container  )  [static]
template<typename Container , typename DataType , typename Position , typename Traits >
ConstRandomAccessIterator< Container, DataType, Position, Traits > BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::begin ( const Container &  container  )  [inline, static]
template<typename Container , typename DataType , typename Position , typename Traits >
static ConstRandomAccessIterator BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::end ( const Container &  container  )  [static]
template<typename Container , typename DataType , typename Position , typename Traits >
ConstRandomAccessIterator< Container, DataType, Position, Traits > BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::end ( const Container &  container  )  [inline, static]
template<typename Container , typename DataType , typename Position , typename Traits >
bool BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::operator+ (  )  const [inline]
template<typename Container , typename DataType , typename Position , typename Traits >
ConstRandomAccessIterator BALL::ConstRandomAccessIterator< 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.

Exceptions:
Exception::InvalidIterator if the iterator is invalid

Reimplemented in BALL::ConstReverseIterator< Container, DataType, Position, Traits >.

template<typename Container , typename DataType , typename Position , typename Traits >
BALL_INLINE bool BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::operator+ (  )  const [inline]
template<typename Container , typename DataType , typename Position , typename Traits >
ConstRandomAccessIterator< Container, DataType, Position, Traits > BALL::ConstRandomAccessIterator< 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 

Reimplemented in BALL::ConstReverseIterator< Container, DataType, Position, Traits >.

Definition at line 264 of file CONCEPT/randomAccessIterator.h.

template<typename Container , typename DataType , typename Position , typename Traits >
ConstRandomAccessIterator& BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::operator+= ( Distance  distance  ) 

Advance iterator a given distance.

Exceptions:
Exception::InvalidIterator if the iterator is invalid

Reimplemented in BALL::ConstReverseIterator< Container, DataType, Position, Traits >.

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

Advance iterator a given distance.

Exceptions:
Exception::InvalidIterator 

Reimplemented in BALL::ConstReverseIterator< Container, DataType, Position, Traits >.

Definition at line 224 of file CONCEPT/randomAccessIterator.h.

template<typename Container , typename DataType , typename Position , typename Traits >
bool BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::operator- (  )  const [inline]
template<typename Container , typename DataType , typename Position , typename Traits >
Distance BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::operator- ( const ConstRandomAccessIterator< 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 >
ConstRandomAccessIterator BALL::ConstRandomAccessIterator< 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.

Exceptions:
Exception::InvalidIterator if the iterator is invalid

Reimplemented in BALL::ConstReverseIterator< Container, DataType, Position, Traits >.

template<typename Container , typename DataType , typename Position , typename Traits >
BALL_INLINE bool BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::operator- (  )  const [inline]
template<typename Container , typename DataType , typename Position , typename Traits >
Distance BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::operator- ( const ConstRandomAccessIterator< 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 
Exception::IncompatibleIterators 
template<typename Container , typename DataType , typename Position , typename Traits >
ConstRandomAccessIterator< Container, DataType, Position, Traits > BALL::ConstRandomAccessIterator< 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 

Reimplemented in BALL::ConstReverseIterator< Container, DataType, Position, Traits >.

Definition at line 272 of file CONCEPT/randomAccessIterator.h.

template<typename Container , typename DataType , typename Position , typename Traits >
ConstRandomAccessIterator& BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::operator-= ( Distance  distance  ) 

Advance iterator a given distance in reverse direction.

Exceptions:
Exception::InvalidIterator if the iterator is invalid

Reimplemented in BALL::ConstReverseIterator< Container, DataType, Position, Traits >.

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

Advance iterator a given distance in reverse direction.

Exceptions:
Exception::InvalidIterator 

Reimplemented in BALL::ConstReverseIterator< Container, DataType, Position, Traits >.

Definition at line 240 of file CONCEPT/randomAccessIterator.h.

template<typename Container , typename DataType , typename Position , typename Traits >
bool BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::operator< ( const ConstRandomAccessIterator< 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.

Exceptions:
InvalidIterator if one of the iterators is not valid
IncompatibleIterators if the iterators point into different containers.
template<typename Container , typename DataType , typename Position , typename Traits >
bool BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::operator< ( const ConstRandomAccessIterator< 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 280 of file CONCEPT/randomAccessIterator.h.

template<typename Container , typename DataType , typename Position , typename Traits >
bool BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::operator<= ( const ConstRandomAccessIterator< 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.

Exceptions:
InvalidIterator if one of the iterators is not valid
IncompatibleIterators if the iterators point into different containers.
template<typename Container , typename DataType , typename Position , typename Traits >
bool BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::operator<= ( const ConstRandomAccessIterator< 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 300 of file CONCEPT/randomAccessIterator.h.

template<typename Container , typename DataType , typename Position , typename Traits >
bool BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::operator> ( const ConstRandomAccessIterator< 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.

Exceptions:
InvalidIterator if one of the iterators is not valid
IncompatibleIterators if the iterators point into different containers.
template<typename Container , typename DataType , typename Position , typename Traits >
bool BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::operator> ( const ConstRandomAccessIterator< 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 339 of file CONCEPT/randomAccessIterator.h.

template<typename Container , typename DataType , typename Position , typename Traits >
bool BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::operator>= ( const ConstRandomAccessIterator< 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.

Exceptions:
InvalidIterator if one of the iterators is not valid
IncompatibleIterators if the iterators point into different containers.
template<typename Container , typename DataType , typename Position , typename Traits >
bool BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::operator>= ( const ConstRandomAccessIterator< 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 319 of file CONCEPT/randomAccessIterator.h.

template<typename Container , typename DataType , typename Position , typename Traits >
const DataType& BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::operator[] ( Index  index  )  const
template<typename Container , typename DataType , typename Position , typename Traits >
const DataType & BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::operator[] ( Index  index  )  const [inline]
template<typename Container , typename DataType , typename Position , typename Traits >
static ConstRandomAccessIterator BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::rbegin ( const Container &  container  )  [static]
template<typename Container , typename DataType , typename Position , typename Traits >
ConstRandomAccessIterator< Container, DataType, Position, Traits > BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::rbegin ( const Container &  container  )  [inline, static]
template<typename Container , typename DataType , typename Position , typename Traits >
static ConstRandomAccessIterator BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::rend ( const Container &  container  )  [static]
template<typename Container , typename DataType , typename Position , typename Traits >
ConstRandomAccessIterator< Container, DataType, Position, Traits > BALL::ConstRandomAccessIterator< Container, DataType, Position, Traits >::rend ( const Container &  container  )  [inline, static]
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Generated by  doxygen 1.6.3