BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess > Class Template Reference

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

Inheritance diagram for BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >:
Inheritance graph
[legend]

List of all members.

Public Types

Typedefs

typedef
IteratorRandomAccess::difference_type 
difference_type
typedef
IteratorRandomAccess::value_type 
value_type
typedef
IteratorRandomAccess::container_type 
Container
typedef
IteratorRandomAccess::value_type 
DataType
typedef
IteratorRandomAccess::difference_type 
Position
typedef
IteratorRandomAccess::traits_type 
Traits
typedef
IteratorRandomAccess::pointer 
pointer
typedef
IteratorRandomAccess::reference 
reference
typedef
std::random_access_iterator_tag 
iterator_category
typedef
ConstBidirectionalFilterIterator
< Predicate,
IteratorRandomAccess
Base

Public Member Functions

Constructors and Destructors

 ConstRandomAccessFilterIterator ()
 ConstRandomAccessFilterIterator (Predicate p, IteratorRandomAccess it)
 ConstRandomAccessFilterIterator (const ConstRandomAccessFilterIterator &iterator)
 ~ConstRandomAccessFilterIterator ()
Predicates

bool operator+ () const
 Validity predicate.
bool operator- () const
 Invalidity predicate.
bool operator< (const ConstRandomAccessFilterIterator &iterator) const
bool operator<= (const ConstRandomAccessFilterIterator &iterator) const
bool operator>= (const ConstRandomAccessFilterIterator &iterator) const
bool operator> (const ConstRandomAccessFilterIterator &iterator) const
Iterator dereferencing

const DataTypeoperator[] (Index index) const

Protected Member Functions

 ConstRandomAccessFilterIterator (const Container &container)

Assignment



ConstRandomAccessFilterIteratoroperator+= (Distance distance)
ConstRandomAccessFilterIteratoroperator-= (Distance distance)
ConstRandomAccessFilterIterator operator+ (Distance distance) const
ConstRandomAccessFilterIterator operator- (Distance distance) const
Distance operator- (const ConstRandomAccessFilterIterator &iterator) const
static
ConstRandomAccessFilterIterator 
begin (const Container &container)
static
ConstRandomAccessFilterIterator 
end (const Container &container)
static
ConstRandomAccessFilterIterator 
rbegin (const Container &container)
static
ConstRandomAccessFilterIterator 
rend (const Container &container)

Detailed Description

template<class Predicate, class IteratorRandomAccess>
class BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >

Definition at line 20 of file randomAccessFilterIterator.h.


Member Typedef Documentation

template<class Predicate, class IteratorRandomAccess>
typedef ConstBidirectionalFilterIterator<Predicate, IteratorRandomAccess> BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::Base
template<class Predicate, class IteratorRandomAccess>
typedef IteratorRandomAccess::container_type BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::Container
template<class Predicate, class IteratorRandomAccess>
typedef IteratorRandomAccess::value_type BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::DataType
template<class Predicate, class IteratorRandomAccess>
typedef IteratorRandomAccess::difference_type BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::difference_type
template<class Predicate, class IteratorRandomAccess>
typedef std::random_access_iterator_tag BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::iterator_category
template<class Predicate, class IteratorRandomAccess>
typedef IteratorRandomAccess::pointer BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::pointer
template<class Predicate, class IteratorRandomAccess>
typedef IteratorRandomAccess::difference_type BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::Position
template<class Predicate, class IteratorRandomAccess>
typedef IteratorRandomAccess::reference BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::reference
template<class Predicate, class IteratorRandomAccess>
typedef IteratorRandomAccess::traits_type BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::Traits
template<class Predicate, class IteratorRandomAccess>
typedef IteratorRandomAccess::value_type BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::value_type

Constructor & Destructor Documentation

template<class Predicate, class IteratorRandomAccess>
BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::ConstRandomAccessFilterIterator (  )  [inline]

Definition at line 57 of file randomAccessFilterIterator.h.

template<class Predicate, class IteratorRandomAccess>
BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::ConstRandomAccessFilterIterator ( Predicate  p,
IteratorRandomAccess  it 
) [inline]

Definition at line 60 of file randomAccessFilterIterator.h.

template<class Predicate, class IteratorRandomAccess>
BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::ConstRandomAccessFilterIterator ( const ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess > &  iterator  )  [inline]

Definition at line 66 of file randomAccessFilterIterator.h.

template<class Predicate, class IteratorRandomAccess>
BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::~ConstRandomAccessFilterIterator (  )  [inline]

Definition at line 72 of file randomAccessFilterIterator.h.

template<class Predicate, class IteratorRandomAccess>
BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::ConstRandomAccessFilterIterator ( const Container container  )  [inline, protected]

Definition at line 206 of file randomAccessFilterIterator.h.


Member Function Documentation

template<class Predicate , class IteratorRandomAccess >
ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess > BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::begin ( const Container container  )  [inline, static]

Return a ConstRandomAccessFilterIterator for a given container. It points to the first element.

Exceptions:
Exception::Precondition 

Reimplemented from BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >.

Reimplemented in BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >.

Definition at line 411 of file randomAccessFilterIterator.h.

template<class Predicate , class IteratorRandomAccess >
ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess > BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::end ( const Container container  )  [inline, static]

Return a Const RandomAccessFilterIterator for a given container. It points behind the last element of the container.

Exceptions:
Exception::Precondition 

Reimplemented from BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >.

Reimplemented in BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >.

Definition at line 420 of file randomAccessFilterIterator.h.

template<class Predicate, class IteratorRandomAccess>
bool BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::operator+ (  )  const [inline]

Validity predicate.

Reimplemented from BALL::BaseFilterIterator< Predicate, IteratorRandomAccess >.

Definition at line 143 of file randomAccessFilterIterator.h.

template<class Predicate , class IteratorRandomAccess >
ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess > BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::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

Definition at line 304 of file randomAccessFilterIterator.h.

template<class Predicate , class IteratorRandomAccess >
ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess > & BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::operator+= ( Distance  distance  )  [inline]

Advance iterator a given distance.

Exceptions:
Exception::InvalidIterator if the iterator is invalid

Definition at line 256 of file randomAccessFilterIterator.h.

template<class Predicate, class IteratorRandomAccess>
bool BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::operator- (  )  const [inline]

Invalidity predicate.

Reimplemented from BALL::BaseFilterIterator< Predicate, IteratorRandomAccess >.

Definition at line 146 of file randomAccessFilterIterator.h.

template<class Predicate , class IteratorRandomAccess >
Distance BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::operator- ( const ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess > &  iterator  )  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
Exception::IncompatibleIterators if this iterator and the argument are incompatible

Return the distance between two iterators. It points to the element with the given distance in reverse direction of the given iterator.

Exceptions:
InvalidIterator if one of the iterators is not valid
IncompatibleIterators if the iterators point into different containers.

Definition at line 234 of file randomAccessFilterIterator.h.

template<class Predicate , class IteratorRandomAccess >
ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess > BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::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

Definition at line 312 of file randomAccessFilterIterator.h.

template<class Predicate , class IteratorRandomAccess >
ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess > & BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::operator-= ( Distance  distance  )  [inline]

Advance iterator a given distance in reverse direction.

Exceptions:
Exception::InvalidIterator if the iterator is invalid

Definition at line 276 of file randomAccessFilterIterator.h.

template<class Predicate , class IteratorRandomAccess >
bool BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::operator< ( const ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess > &  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 point into different containers.

Definition at line 320 of file randomAccessFilterIterator.h.

template<class Predicate , class IteratorRandomAccess >
bool BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::operator<= ( const ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess > &  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 point into different containers.

Definition at line 343 of file randomAccessFilterIterator.h.

template<class Predicate , class IteratorRandomAccess >
bool BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::operator> ( const ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess > &  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 point into different containers.

Definition at line 388 of file randomAccessFilterIterator.h.

template<class Predicate , class IteratorRandomAccess >
bool BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::operator>= ( const ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess > &  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 point into different containers.

Definition at line 365 of file randomAccessFilterIterator.h.

template<class Predicate, class IteratorRandomAccess>
const DataType& BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::operator[] ( Index  index  )  const [inline]

Random access operator.

Exceptions:
Exception::InvalidIterator if the iterator is invalid

Reimplemented in BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >.

Definition at line 192 of file randomAccessFilterIterator.h.

template<class Predicate , class IteratorRandomAccess >
ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess > BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::rbegin ( const Container container  )  [inline, static]

Return a Const RandomAccessFilterIterator for a given container. It points at the last element of the container.

Exceptions:
Exception::Precondition 

Reimplemented from BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >.

Reimplemented in BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >.

Definition at line 429 of file randomAccessFilterIterator.h.

template<class Predicate , class IteratorRandomAccess >
ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess > BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::rend ( const Container container  )  [inline, static]

Return a Const RandomAccessFilterIterator for a given container. It points before the first element.

Exceptions:
Exception::Precondition 

Reimplemented from BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >.

Reimplemented in BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >.

Definition at line 438 of file randomAccessFilterIterator.h.

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