filter_iterator Class Template Reference
[Iterators Library]

#include <stlsoft/iterators/filter_iterator.hpp>

List of all members.


Detailed Description

template<typename I, typename P, typename T = adapted_iterator_traits<I>>
class stlsoft::filter_iterator< I, P, T >

An iterator adaptor that uses a predicate to filter desired values from the iterator's underlying sequence.

The design of this component is described in detail in chapter 42 of Extended STL, volume 1, which is also available for free download.

Public Types

Member Types
typedef I base_iterator_type
typedef P filter_predicate_type
typedef T traits_type
typedef filter_iterator< I, P, T > class_type
typedef min_iterator_category
< typename
traits_type::iterator_category,
std::bidirectional_iterator_tag >
::iterator_category 
iterator_category
typedef traits_type::value_type value_type
typedef
traits_type::difference_type 
difference_type
typedef traits_type::pointer pointer
typedef traits_type::const_pointer const_pointer
typedef traits_type::reference reference
typedef
traits_type::const_reference 
const_reference
typedef
traits_type::effective_reference 
effective_reference
typedef
traits_type::effective_const_reference 
effective_const_reference
typedef
traits_type::effective_pointer 
effective_pointer
typedef
traits_type::effective_const_pointer 
effective_const_pointer

Public Member Functions

Construction
 filter_iterator (base_iterator_type begin, base_iterator_type end, filter_predicate_type pr)
base_iterator_type base () const
 A copy of the base iterator.
Forward Iterator methods
class_typeoperator++ ()
class_type operator++ (int)
effective_reference operator* ()
effective_const_reference operator* () const
effective_pointer operator-> ()
effective_const_pointer operator-> () const
Bidirectional Iterator methods
class_typeoperator-- ()
class_type operator-- (int)
Comparison
bool equal (class_type const &rhs) const
bool equals (class_type const &rhs) const
Attributes
difference_type distance () const


Member Function Documentation

base_iterator_type base (  )  const [inline]

A copy of the base iterator.

bool equals ( class_type const &  rhs  )  const [inline]


The documentation for this class was generated from the following file:

Generated on Thu Jun 10 08:58:47 2010 for STLSoft by  doxygen 1.5.6