|
BALL
1.4.1
|
#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) |
| Set the internal iterator. | |
| const IteratorForward & | getIterator () const |
| Get a constant reference to the internal iterator. | |
| IteratorForward & | getIterator () |
| Get a constant reference to the internal iterator. | |
Constructors and Destructors | |
| ConstForwardFilterIterator () | |
| Default constructor. | |
| ConstForwardFilterIterator (Predicate p, IteratorForward it) | |
| ConstForwardFilterIterator (const ConstForwardFilterIterator &iterator) | |
| Copy constructor. | |
| ~ConstForwardFilterIterator () | |
Assignment | |
| ConstForwardFilterIterator & | operator= (const ConstForwardFilterIterator &iterator) |
| void | swap (ConstForwardFilterIterator &iterator) |
Protected Member Functions | |
| template<typename Container > | |
| ConstForwardFilterIterator (const Container &container) | |
Iterator methods | |
| void | toBegin () |
| bool | isBegin () const |
| Check whether the iterator points to the first item of the container. | |
| void | toEnd () |
| bool | isEnd () const |
| Check whether the iterator points behind the last item of the container. | |
| ConstForwardFilterIterator & | operator++ () |
| ConstForwardFilterIterator | operator++ (int) |
| static ConstForwardFilterIterator | begin (const Container &container) |
| static ConstForwardFilterIterator | end (const Container &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::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >, BALL::BidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::ForwardFilterIterator< Predicate, IteratorForward >, BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, and BALL::ConstBidirectionalFilterIterator< 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::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >, BALL::BidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::ForwardFilterIterator< Predicate, IteratorForward >, BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, and BALL::ConstBidirectionalFilterIterator< 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::BidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::ForwardFilterIterator< Predicate, IteratorForward >, BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, and BALL::ConstBidirectionalFilterIterator< 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::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >, BALL::BidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::ForwardFilterIterator< Predicate, IteratorForward >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >, 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::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, and BALL::ConstBidirectionalFilterIterator< 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::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >, BALL::BidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::ForwardFilterIterator< Predicate, IteratorForward >, BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, and BALL::ConstBidirectionalFilterIterator< 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::BidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::ForwardFilterIterator< Predicate, IteratorForward >, BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, and BALL::ConstBidirectionalFilterIterator< 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::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >, BALL::BidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::ForwardFilterIterator< Predicate, IteratorForward >, BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, and BALL::ConstBidirectionalFilterIterator< 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::BidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::ForwardFilterIterator< Predicate, IteratorForward >, BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, and BALL::ConstBidirectionalFilterIterator< 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::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >, BALL::BidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::ForwardFilterIterator< Predicate, IteratorForward >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >, and BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >.
Definition at line 37 of file forwardFilterIterator.h.
| BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::ConstForwardFilterIterator | ( | ) | [inline] |
Default constructor.
Definition at line 55 of file forwardFilterIterator.h.
| BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::ConstForwardFilterIterator | ( | Predicate | p, |
| IteratorForward | it | ||
| ) | [inline] |
Definition at line 58 of file forwardFilterIterator.h.
| BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::ConstForwardFilterIterator | ( | const ConstForwardFilterIterator< Predicate, IteratorForward > & | iterator | ) | [inline] |
Copy constructor.
Definition at line 66 of file forwardFilterIterator.h.
| BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::~ConstForwardFilterIterator | ( | ) | [inline] |
Definition at line 72 of file forwardFilterIterator.h.
| BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::ConstForwardFilterIterator | ( | const Container & | container | ) | [inline, protected] |
Definition at line 177 of file forwardFilterIterator.h.
| ConstForwardFilterIterator< Predicate, IteratorForward > BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::begin | ( | const Container & | container | ) | [static] |
Return an iterator pointing to the beginning of the container
| Exception::Precondition |
Reimplemented in BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >, BALL::BidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::ForwardFilterIterator< Predicate, IteratorForward >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >, and BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >.
Definition at line 198 of file forwardFilterIterator.h.
| ConstForwardFilterIterator< Predicate, IteratorForward > BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::end | ( | const Container & | container | ) | [static] |
Return an iterator pointing at the end of the container
| Exception::Precondition |
Reimplemented in BALL::RandomAccessFilterIterator< Predicate, IteratorRandomAccess >, BALL::BidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::ForwardFilterIterator< Predicate, IteratorForward >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >, and BALL::ConstRandomAccessFilterIterator< Predicate, IteratorRandomAccess >.
Definition at line 228 of file forwardFilterIterator.h.
| const IteratorForward& BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::getIterator | ( | ) | const [inline] |
Get a constant reference to the internal iterator.
Definition at line 104 of file forwardFilterIterator.h.
| IteratorForward& BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::getIterator | ( | ) | [inline] |
Get a constant reference to the internal iterator.
Definition at line 107 of file forwardFilterIterator.h.
| bool BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::isBegin | ( | ) | const |
Check whether the iterator points to the first item of the container.
Reimplemented in BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, and BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >.
Definition at line 206 of file forwardFilterIterator.h.
| bool BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::isEnd | ( | ) | const |
Check whether the iterator points behind the last item of the container.
Reimplemented in BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, and BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >.
Definition at line 236 of file forwardFilterIterator.h.
| ConstForwardFilterIterator& BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::operator++ | ( | ) | [inline] |
Increment operator
| Exception::InvalidIterator | if the iterator is invalid |
Reimplemented in BALL::BidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::ForwardFilterIterator< Predicate, IteratorForward >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, and BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >.
Definition at line 142 of file forwardFilterIterator.h.
| ConstForwardFilterIterator BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::operator++ | ( | int | ) | [inline] |
Postfix increment operator
| Exception::InvalidIterator | if the iterator is invalid |
Reimplemented in BALL::BidirectionalFilterIterator< Predicate, IteratorBidirectional >, BALL::ForwardFilterIterator< Predicate, IteratorForward >, BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, and BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >.
Definition at line 159 of file forwardFilterIterator.h.
| ConstForwardFilterIterator& BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::operator= | ( | const ConstForwardFilterIterator< Predicate, IteratorForward > & | iterator | ) | [inline] |
Definition at line 80 of file forwardFilterIterator.h.
| void BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::setIterator | ( | const IteratorForward & | iterator | ) | [inline] |
Set the internal iterator.
Reimplemented in BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, and BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >.
Definition at line 95 of file forwardFilterIterator.h.
| void BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::swap | ( | ConstForwardFilterIterator< Predicate, IteratorForward > & | iterator | ) | [inline] |
Definition at line 87 of file forwardFilterIterator.h.
| void BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::toBegin | ( | ) |
Move the iterator to the item at the beginning of the container
| Exception::SingularIterator | if the iterator is singular |
Reimplemented in BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, and BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >.
Definition at line 186 of file forwardFilterIterator.h.
| void BALL::ConstForwardFilterIterator< Predicate, IteratorForward >::toEnd | ( | ) |
Move the iterator behind the last item of the container
| Exception::SingularIterator | if the iterator is singular |
Reimplemented in BALL::ConstBidirectionalFilterIterator< Predicate, IteratorBidirectional >, and BALL::ConstBidirectionalFilterIterator< Predicate, IteratorRandomAccess >.
Definition at line 216 of file forwardFilterIterator.h.
1.7.6.1