#include <BALL/MATHS/LINALG/forwardFilterIterator.h>
Public Types | |
Typedefs | |
typedef IteratorForward::container_type | Container |
typedef IteratorForward::value_type | DataType |
typedef IteratorForward::difference_type | Position |
typedef IteratorForward::traits_type | Traits |
typedef IteratorForward::value_type | value_type |
typedef IteratorForward::difference_type | difference_type |
typedef IteratorForward::pointer | pointer |
typedef IteratorForward::reference | reference |
typedef std::forward_iterator_tag | iterator_category |
typedef BaseFilterIterator < Predicate, IteratorForward > | Base |
Public Member Functions | |
void | setIterator (const IteratorForward &iterator) throw () |
Set the internal iterator. | |
const IteratorForward & | getIterator () const throw () |
Get a constant reference to the internal iterator. | |
IteratorForward & | getIterator () throw () |
Get a constant reference to the internal iterator. | |
Constructors and Destructors | |
ConstForwardFilterIterator () throw () | |
Default constructor. | |
ConstForwardFilterIterator (Predicate p, IteratorForward it) throw () | |
ConstForwardFilterIterator (const ConstForwardFilterIterator &iterator) throw () | |
Copy constructor. | |
~ConstForwardFilterIterator () throw () | |
Assignment | |
ConstForwardFilterIterator & | operator= (const ConstForwardFilterIterator &iterator) throw () |
void | swap (ConstForwardFilterIterator &iterator) throw () |
Protected Member Functions | |
template<typename Container > | |
ConstForwardFilterIterator (const Container &container) throw () | |
Iterator methods | |
void | toBegin () throw (Exception::SingularIterator) |
Move the iterator to the item at the beginning of the container. | |
bool | isBegin () const throw () |
Check whether the iterator points to the first item of the container. | |
void | toEnd () throw (Exception::SingularIterator) |
Move the iterator behind the last item of the container. | |
bool | isEnd () const throw () |
Check whether the iterator points behind the last item of the container. | |
ConstForwardFilterIterator & | operator++ () throw (Exception::InvalidIterator) |
Increment operator. | |
ConstForwardFilterIterator | operator++ (int) throw (Exception::InvalidIterator) |
Postfix increment operator. | |
static ConstForwardFilterIterator | begin (const Container &container) throw (Exception::Precondition) |
Return an iterator pointing to the beginning of the container. | |
static ConstForwardFilterIterator | end (const Container &container) throw (Exception::Precondition) |
Return an iterator pointing at the end of the container. |
Generic non-mutable forward iterator
Definition at line 18 of file forwardFilterIterator.h.
typedef BaseFilterIterator<Predicate, IteratorForward> BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::Base |
Reimplemented in BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::BidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::ForwardFilterIterator< Predicate, IteratorForward >, BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >, BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, and BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >.
Definition at line 47 of file forwardFilterIterator.h.
typedef IteratorForward::container_type BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::Container |
Reimplemented from BALL::BaseFilterIterator< Predicate, IteratorForward >.
Reimplemented in BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::BidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::ForwardFilterIterator< Predicate, IteratorForward >, BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >, BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, and BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >.
Definition at line 29 of file forwardFilterIterator.h.
typedef IteratorForward::value_type BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::DataType |
Reimplemented from BALL::BaseFilterIterator< Predicate, IteratorForward >.
Reimplemented in BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::BidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::ForwardFilterIterator< Predicate, IteratorForward >, BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, and BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >.
Definition at line 31 of file forwardFilterIterator.h.
typedef IteratorForward::difference_type BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::difference_type |
Reimplemented from BALL::BaseFilterIterator< Predicate, IteratorForward >.
Reimplemented in BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::BidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::ForwardFilterIterator< Predicate, IteratorForward >, BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >, BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, and BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >.
Definition at line 39 of file forwardFilterIterator.h.
typedef std::forward_iterator_tag BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::iterator_category |
Reimplemented from BALL::BaseFilterIterator< Predicate, IteratorForward >.
Reimplemented in BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, and BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >.
Definition at line 45 of file forwardFilterIterator.h.
typedef IteratorForward::pointer BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::pointer |
Reimplemented from BALL::BaseFilterIterator< Predicate, IteratorForward >.
Reimplemented in BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::BidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::ForwardFilterIterator< Predicate, IteratorForward >, BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >, BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, and BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >.
Definition at line 41 of file forwardFilterIterator.h.
typedef IteratorForward::difference_type BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::Position |
Reimplemented from BALL::BaseFilterIterator< Predicate, IteratorForward >.
Reimplemented in BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::BidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::ForwardFilterIterator< Predicate, IteratorForward >, BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, and BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >.
Definition at line 33 of file forwardFilterIterator.h.
typedef IteratorForward::reference BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::reference |
Reimplemented from BALL::BaseFilterIterator< Predicate, IteratorForward >.
Reimplemented in BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::BidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::ForwardFilterIterator< Predicate, IteratorForward >, BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >, BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, and BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >.
Definition at line 43 of file forwardFilterIterator.h.
typedef IteratorForward::traits_type BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::Traits |
Reimplemented from BALL::BaseFilterIterator< Predicate, IteratorForward >.
Reimplemented in BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::BidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::ForwardFilterIterator< Predicate, IteratorForward >, BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, and BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >.
Definition at line 35 of file forwardFilterIterator.h.
typedef IteratorForward::value_type BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::value_type |
Reimplemented from BALL::BaseFilterIterator< Predicate, IteratorForward >.
Reimplemented in BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::BidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::ForwardFilterIterator< Predicate, IteratorForward >, BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >, BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, and BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >.
Definition at line 37 of file forwardFilterIterator.h.
BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::ConstForwardFilterIterator | ( | ) | throw () [inline] |
Default constructor.
Definition at line 55 of file forwardFilterIterator.h.
BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::ConstForwardFilterIterator | ( | Predicate | p, | |
IteratorForward | it | |||
) | throw () [inline] |
Definition at line 58 of file forwardFilterIterator.h.
BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::ConstForwardFilterIterator | ( | const ConstForwardFilterIterator< Predicate, IteratorForward > & | iterator | ) | throw () [inline] |
Copy constructor.
Definition at line 66 of file forwardFilterIterator.h.
BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::~ConstForwardFilterIterator | ( | ) | throw () [inline] |
Definition at line 72 of file forwardFilterIterator.h.
BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::ConstForwardFilterIterator | ( | const Container & | container | ) | throw () [inline, protected] |
Definition at line 167 of file forwardFilterIterator.h.
ConstForwardFilterIterator< Predicate, IteratorForward > BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::begin | ( | const Container & | container | ) | throw (Exception::Precondition) [inline, static] |
Return an iterator pointing to the beginning of the container.
Reimplemented in BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::BidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::ForwardFilterIterator< Predicate, IteratorForward >, BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >, BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, and BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >.
Definition at line 189 of file forwardFilterIterator.h.
ConstForwardFilterIterator< Predicate, IteratorForward > BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::end | ( | const Container & | container | ) | throw (Exception::Precondition) [inline, static] |
Return an iterator pointing at the end of the container.
Reimplemented in BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::BidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::ForwardFilterIterator< Predicate, IteratorForward >, BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >, BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, and BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >.
Definition at line 222 of file forwardFilterIterator.h.
IteratorForward& BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::getIterator | ( | ) | throw () [inline] |
Get a constant reference to the internal iterator.
Definition at line 107 of file forwardFilterIterator.h.
const IteratorForward& BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::getIterator | ( | ) | const throw () [inline] |
Get a constant reference to the internal iterator.
Definition at line 104 of file forwardFilterIterator.h.
bool BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::isBegin | ( | ) | const throw () [inline] |
Check whether the iterator points to the first item of the container.
Reimplemented in BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >, and BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >.
Definition at line 198 of file forwardFilterIterator.h.
bool BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::isEnd | ( | ) | const throw () [inline] |
Check whether the iterator points behind the last item of the container.
Reimplemented in BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >, and BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >.
Definition at line 231 of file forwardFilterIterator.h.
ConstForwardFilterIterator BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::operator++ | ( | int | ) | throw (Exception::InvalidIterator) [inline] |
Postfix increment operator.
Reimplemented in BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::BidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::ForwardFilterIterator< Predicate, IteratorForward >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >, and BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >.
Definition at line 149 of file forwardFilterIterator.h.
ConstForwardFilterIterator& BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::operator++ | ( | ) | throw (Exception::InvalidIterator) [inline] |
Increment operator.
Reimplemented in BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::BidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::ForwardFilterIterator< Predicate, IteratorForward >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >, and BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >.
Definition at line 134 of file forwardFilterIterator.h.
ConstForwardFilterIterator& BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::operator= | ( | const ConstForwardFilterIterator< Predicate, IteratorForward > & | iterator | ) | throw () [inline] |
Definition at line 80 of file forwardFilterIterator.h.
void BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::setIterator | ( | const IteratorForward & | iterator | ) | throw () [inline] |
Set the internal iterator.
Reimplemented in BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >, and BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >.
Definition at line 95 of file forwardFilterIterator.h.
void BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::swap | ( | ConstForwardFilterIterator< Predicate, IteratorForward > & | iterator | ) | throw () [inline] |
Definition at line 87 of file forwardFilterIterator.h.
void BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::toBegin | ( | ) | throw (Exception::SingularIterator) [inline] |
Move the iterator to the item at the beginning of the container.
Reimplemented in BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >, and BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >.
Definition at line 176 of file forwardFilterIterator.h.
void BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::toEnd | ( | ) | throw (Exception::SingularIterator) [inline] |
Move the iterator behind the last item of the container.
Reimplemented in BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >, and BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >.
Definition at line 209 of file forwardFilterIterator.h.