#include <BALL/MATHS/LINALG/randomAccessFilterIterator.h>
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 () throw () | |
ConstRandomAccessFilterIterator (Predicate p, IteratorRandomAccess it) throw () | |
ConstRandomAccessFilterIterator (const ConstRandomAccessFilterIterator &iterator) throw () | |
~ConstRandomAccessFilterIterator () throw () | |
Predicates | |
bool | operator+ () const throw () |
Validity predicate. | |
bool | operator- () const throw () |
Invalidity predicate. | |
bool | operator< (const ConstRandomAccessFilterIterator &iterator) const throw (Exception::InvalidIterator, Exception::IncompatibleIterators) |
bool | operator<= (const ConstRandomAccessFilterIterator &iterator) const throw (Exception::InvalidIterator, Exception::IncompatibleIterators) |
bool | operator>= (const ConstRandomAccessFilterIterator &iterator) const throw (Exception::InvalidIterator, Exception::IncompatibleIterators) |
bool | operator> (const ConstRandomAccessFilterIterator &iterator) const throw (Exception::InvalidIterator, Exception::IncompatibleIterators) |
Iterator dereferencing | |
const DataType & | operator[] (Index index) const throw (Exception::InvalidIterator) |
Protected Member Functions | |
ConstRandomAccessFilterIterator (const Container &container) throw () | |
Assignment | |
ConstRandomAccessFilterIterator & | operator+= (Distance distance) throw (Exception::InvalidIterator) |
ConstRandomAccessFilterIterator & | operator-= (Distance distance) throw (Exception::InvalidIterator) |
ConstRandomAccessFilterIterator | operator+ (Distance distance) const throw (Exception::InvalidIterator) |
ConstRandomAccessFilterIterator | operator- (Distance distance) const throw (Exception::InvalidIterator) |
Distance | operator- (const ConstRandomAccessFilterIterator &iterator) const throw (Exception::InvalidIterator, Exception::IncompatibleIterators) |
static ConstRandomAccessFilterIterator | begin (const Container &container) throw (Exception::Precondition) |
static ConstRandomAccessFilterIterator | end (const Container &container) throw (Exception::Precondition) |
static ConstRandomAccessFilterIterator | rbegin (const Container &container) throw (Exception::Precondition) |
static ConstRandomAccessFilterIterator | rend (const Container &container) throw (Exception::Precondition) |
Definition at line 20 of file randomAccessFilterIterator.h.
typedef ConstBidirectionalFilterIterator<Predicate, IteratorRandomAccess> BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::Base |
Reimplemented from BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >.
Reimplemented in BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >.
Definition at line 49 of file randomAccessFilterIterator.h.
typedef IteratorRandomAccess::container_type BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::Container |
Reimplemented from BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >.
Reimplemented in BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >.
Definition at line 35 of file randomAccessFilterIterator.h.
typedef IteratorRandomAccess::value_type BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::DataType |
Reimplemented from BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >.
Definition at line 37 of file randomAccessFilterIterator.h.
typedef IteratorRandomAccess::difference_type BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::difference_type |
Reimplemented from BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >.
Reimplemented in BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >.
Definition at line 31 of file randomAccessFilterIterator.h.
typedef std::random_access_iterator_tag BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::iterator_category |
Reimplemented from BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >.
Definition at line 47 of file randomAccessFilterIterator.h.
typedef IteratorRandomAccess::pointer BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::pointer |
Reimplemented from BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >.
Reimplemented in BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >.
Definition at line 43 of file randomAccessFilterIterator.h.
typedef IteratorRandomAccess::difference_type BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::Position |
Reimplemented from BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >.
Definition at line 39 of file randomAccessFilterIterator.h.
typedef IteratorRandomAccess::reference BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::reference |
Reimplemented from BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >.
Reimplemented in BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >.
Definition at line 45 of file randomAccessFilterIterator.h.
typedef IteratorRandomAccess::traits_type BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::Traits |
Reimplemented from BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >.
Definition at line 41 of file randomAccessFilterIterator.h.
typedef IteratorRandomAccess::value_type BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::value_type |
Reimplemented from BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >.
Reimplemented in BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >.
Definition at line 33 of file randomAccessFilterIterator.h.
BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::ConstRandomAccessFilterIterator | ( | ) | throw () [inline] |
Definition at line 57 of file randomAccessFilterIterator.h.
BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::ConstRandomAccessFilterIterator | ( | Predicate | p, | |
IteratorRandomAccess | it | |||
) | throw () [inline] |
Definition at line 60 of file randomAccessFilterIterator.h.
BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::ConstRandomAccessFilterIterator | ( | const ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess > & | iterator | ) | throw () [inline] |
Definition at line 66 of file randomAccessFilterIterator.h.
BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::~ConstRandomAccessFilterIterator | ( | ) | throw () [inline] |
Definition at line 72 of file randomAccessFilterIterator.h.
BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::ConstRandomAccessFilterIterator | ( | const Container & | container | ) | throw () [inline, protected] |
Definition at line 208 of file randomAccessFilterIterator.h.
ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess > BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::begin | ( | const Container & | container | ) | throw (Exception::Precondition) [inline, static] |
Return a ConstRandomAccessFilterIterator for a given container. It points to the first element.
Reimplemented from BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >.
Reimplemented in BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >.
Definition at line 420 of file randomAccessFilterIterator.h.
ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess > BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::end | ( | const Container & | container | ) | throw (Exception::Precondition) [inline, static] |
Return a Const RandomAccessFilterIterator for a given container. It points behind the last element of the container.
Reimplemented from BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >.
Reimplemented in BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >.
Definition at line 430 of file randomAccessFilterIterator.h.
bool BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::operator+ | ( | ) | const throw () [inline] |
Validity predicate.
Reimplemented from BALL::BaseFilterIterator< Predicate, IteratorRandomAccess >.
Definition at line 142 of file randomAccessFilterIterator.h.
ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess > BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::operator+ | ( | Distance | distance | ) | const throw (Exception::InvalidIterator) [inline] |
Return an iterator. It points to the element with the given distance from the element of this iterator.
Definition at line 307 of file randomAccessFilterIterator.h.
ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess > & BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::operator+= | ( | Distance | distance | ) | throw (Exception::InvalidIterator) [inline] |
Advance iterator a given distance.
Definition at line 257 of file randomAccessFilterIterator.h.
bool BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::operator- | ( | ) | const throw () [inline] |
Invalidity predicate.
Reimplemented from BALL::BaseFilterIterator< Predicate, IteratorRandomAccess >.
Definition at line 145 of file randomAccessFilterIterator.h.
Distance BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::operator- | ( | const ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess > & | iterator | ) | const throw (Exception::InvalidIterator, Exception::IncompatibleIterators) [inline] |
Return an iterator. It points to the element with the given distance in reverse direction from the element of this iterator.
Return the distance between two iterators. It points to the element with the given distance in reverse direction of the given iterator.
Definition at line 234 of file randomAccessFilterIterator.h.
ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess > BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::operator- | ( | Distance | distance | ) | const throw (Exception::InvalidIterator) [inline] |
Return an iterator. It points to the element with the given distance in reverse direction from the element of this iterator.
Definition at line 316 of file randomAccessFilterIterator.h.
ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess > & BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::operator-= | ( | Distance | distance | ) | throw (Exception::InvalidIterator) [inline] |
Advance iterator a given distance in reverse direction.
Definition at line 278 of file randomAccessFilterIterator.h.
bool BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::operator< | ( | const ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess > & | iterator | ) | const throw (Exception::InvalidIterator, Exception::IncompatibleIterators) [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 325 of file randomAccessFilterIterator.h.
bool BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::operator<= | ( | const ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess > & | iterator | ) | const throw (Exception::InvalidIterator, Exception::IncompatibleIterators) [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 349 of file randomAccessFilterIterator.h.
bool BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::operator> | ( | const ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess > & | iterator | ) | const throw (Exception::InvalidIterator, Exception::IncompatibleIterators) [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 396 of file randomAccessFilterIterator.h.
bool BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::operator>= | ( | const ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess > & | iterator | ) | const throw (Exception::InvalidIterator, Exception::IncompatibleIterators) [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 372 of file randomAccessFilterIterator.h.
const DataType& BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::operator[] | ( | Index | index | ) | const throw (Exception::InvalidIterator) [inline] |
Random access operator.
Reimplemented in BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >.
Definition at line 194 of file randomAccessFilterIterator.h.
ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess > BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::rbegin | ( | const Container & | container | ) | throw (Exception::Precondition) [inline, static] |
Return a Const RandomAccessFilterIterator for a given container. It points at the last element of the container.
Reimplemented from BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >.
Reimplemented in BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >.
Definition at line 440 of file randomAccessFilterIterator.h.
ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess > BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >::rend | ( | const Container & | container | ) | throw (Exception::Precondition) [inline, static] |
Return a Const RandomAccessFilterIterator for a given container. It points before the first element.
Reimplemented from BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >.
Reimplemented in BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >.
Definition at line 450 of file randomAccessFilterIterator.h.