Teuchos - Trilinos Tools Package
Version of the Day
|
C++ Standard Library compatable filtered iterator. More...
#include <Teuchos_FilteredIterator.hpp>
Public Types | |
public typedefs | |
typedef std::bidirectional_iterator_tag | iterator_category |
typedef std::iterator_traits < IteratorType >::value_type | value_type |
typedef std::iterator_traits < IteratorType >::reference | reference |
typedef std::iterator_traits < IteratorType >::pointer | pointer |
typedef std::iterator_traits < IteratorType > ::difference_type | difference_type |
Public Member Functions | |
Constructors. | |
FilteredIterator () | |
construct to a null iterator. More... | |
FilteredIterator (IteratorType current_in, IteratorType begin_in, IteratorType end_in, Predicate pred_in=Predicate()) | |
Construct with iterator and range. More... | |
template<class IteratorType2 , class Predicate2 > | |
FilteredIterator (const FilteredIterator< IteratorType2, Predicate2 > &rhs) | |
Convert type of iterators (mainly for non-const to const). More... | |
template<class IteratorType2 , class Predicate2 > | |
FilteredIterator & | operator= (const FilteredIterator< IteratorType2, Predicate2 > &rhs) |
Assign different types of iterators (mainly for non-const to const). More... | |
Access | |
reference | operator* () const |
itr* More... | |
pointer | operator-> () const |
itr->member More... | |
Incrementation | |
FilteredIterator & | operator++ () |
++itr More... | |
const FilteredIterator | operator++ (int) |
itr++ More... | |
FilteredIterator & | operator-- () |
–itr More... | |
const FilteredIterator | operator-- (int) |
itr– More... | |
Implementation access | |
IteratorType | current () const |
IteratorType | begin () const |
IteratorType | end () const |
Predicate | pred () const |
Related Functions | |
(Note that these are not member functions.) | |
template<class IteratorType , class Predicate > | |
bool | operator== (const FilteredIterator< IteratorType, Predicate > &itr1, const FilteredIterator< IteratorType, Predicate > &itr2) |
itr1 == itr2. More... | |
template<class IteratorType , class Predicate > | |
bool | operator!= (const FilteredIterator< IteratorType, Predicate > &itr1, const FilteredIterator< IteratorType, Predicate > &itr2) |
itr1 != itr2. More... | |
template<class IteratorType , class Predicate > | |
std::ostream & | operator<< (std::ostream &out, const FilteredIterator< IteratorType, Predicate > &itr) |
ostream operator. More... | |
C++ Standard Library compatable filtered iterator.
Provides a bidirectional iterator providing a filtered view of an underlying iterator (defined by a predicate policy object).
Definition at line 28 of file Teuchos_FilteredIterator.hpp.
typedef std::bidirectional_iterator_tag Teuchos::FilteredIterator< IteratorType, Predicate >::iterator_category |
Definition at line 35 of file Teuchos_FilteredIterator.hpp.
typedef std::iterator_traits<IteratorType>::value_type Teuchos::FilteredIterator< IteratorType, Predicate >::value_type |
Definition at line 37 of file Teuchos_FilteredIterator.hpp.
typedef std::iterator_traits<IteratorType>::reference Teuchos::FilteredIterator< IteratorType, Predicate >::reference |
Definition at line 39 of file Teuchos_FilteredIterator.hpp.
typedef std::iterator_traits<IteratorType>::pointer Teuchos::FilteredIterator< IteratorType, Predicate >::pointer |
Definition at line 41 of file Teuchos_FilteredIterator.hpp.
typedef std::iterator_traits<IteratorType>::difference_type Teuchos::FilteredIterator< IteratorType, Predicate >::difference_type |
Definition at line 43 of file Teuchos_FilteredIterator.hpp.
|
inline |
construct to a null iterator.
Definition at line 51 of file Teuchos_FilteredIterator.hpp.
|
inline |
Construct with iterator and range.
Definition at line 56 of file Teuchos_FilteredIterator.hpp.
|
inline |
Convert type of iterators (mainly for non-const to const).
Definition at line 63 of file Teuchos_FilteredIterator.hpp.
|
inline |
Assign different types of iterators (mainly for non-const to const).
Definition at line 68 of file Teuchos_FilteredIterator.hpp.
|
inline |
itr*
Definition at line 83 of file Teuchos_FilteredIterator.hpp.
|
inline |
itr->member
Definition at line 86 of file Teuchos_FilteredIterator.hpp.
|
inline |
++itr
Definition at line 95 of file Teuchos_FilteredIterator.hpp.
|
inline |
itr++
Definition at line 103 of file Teuchos_FilteredIterator.hpp.
|
inline |
–itr
Definition at line 110 of file Teuchos_FilteredIterator.hpp.
|
inline |
itr–
Definition at line 118 of file Teuchos_FilteredIterator.hpp.
|
inline |
Definition at line 131 of file Teuchos_FilteredIterator.hpp.
|
inline |
Definition at line 133 of file Teuchos_FilteredIterator.hpp.
|
inline |
Definition at line 135 of file Teuchos_FilteredIterator.hpp.
|
inline |
Definition at line 137 of file Teuchos_FilteredIterator.hpp.
|
related |
itr1 == itr2.
Definition at line 180 of file Teuchos_FilteredIterator.hpp.
|
related |
itr1 != itr2.
Definition at line 191 of file Teuchos_FilteredIterator.hpp.
|
related |
ostream operator.
WARNING: This requires that IteratorType also support operator<<().
Definition at line 205 of file Teuchos_FilteredIterator.hpp.