filtering_iterator Class Template Reference

#include <ql/Utilities/filteringiterator.hpp>

List of all members.


Detailed Description

template<class Iterator, class UnaryPredicate>
class QuantLib::filtering_iterator< Iterator, UnaryPredicate >

Iterator filtering undesired data.

This iterator advances an underlying iterator returning only those data satisfying a given condition.


Public Member Functions

 filtering_iterator (const Iterator &, const UnaryPredicate &, const Iterator &beforeBegin, const Iterator &end)
Dereferencing
reference operator * () const
pointer operator-> () const
Increment and decrement
filtering_iteratoroperator++ ()
filtering_iterator operator++ (int)
filtering_iteratoroperator-- ()
filtering_iterator operator-- (int)
Comparisons
bool operator== (const filtering_iterator< Iterator, UnaryPredicate > &)
bool operator!= (const filtering_iterator< Iterator, UnaryPredicate > &)

Public Attributes

typedef< Iterator >::pointer pointer
typedef< Iterator >::reference reference

Related Functions

(Note that these are not member functions.)

filtering_iterator< Iterator,
UnaryPredicate > 
make_filtering_iterator (Iterator it, UnaryPredicate p, Iterator beforeBegin, Iterator end)
 helper function to create filtering iterators


QuantLib.org
QuantLib
Hosted by
SourceForge.net Logo
Documentation generated by
doxygen