STLSoft - ... Robust, Lightweight, Cross-platform, Template Software ... ATLSTL - Template Software for the Active Template Library COMSTL - The Standard Template Library meets the Component Object Model .netSTL - Standard Template Library meets the Microsoft.NET Common Language Runtime InetSTL - The Standard Template Library meets WinInet MFCSTL - Template Software for the Microsoft Foundation Classes UNIXSTL - Template Software for the UNIX Operating System WinSTL - where the Standard Template Library meets the Win32 API

Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

filtered_range Class Template Reference
[Range Adaptors]

This class adapts an STL sequence instance into a Range. More...

#include <filtered_range.hpp>

List of all members.

Notional Range methods

ss_bool_t is_open () const
 Indicates whether the range is open.

reference current ()
 Returns the current value in the range.

const_reference current () const
 Returns the current value in the range.

class_type & advance ()
 Advances the current position in the range.

 operator boolean_type () const
 Indicates whether the range is open.

reference operator * ()
 Returns the current value in the range.

const_reference operator * () const
 Returns the current value in the range.

class_type & operator++ ()
 Advances the current position in the range.

class_type operator++ (int)
 Advances the current position in the range, returning a copy of the range prior to its being advanced.


Public Methods

 filtered_range (filtered_range_type r, filter_predicate_type pr)
 Constructs from a range and a predicate.

Iterable Range methods
iterator begin ()
 Returns an iterator to the current position of the range.

iterator end ()
 Returns an iterator to the end of the range.

const_iterator begin () const
 Returns an iterator to the current position of the range.

const_iterator end () const
 Returns an iterator to the end of the range.


Detailed Description

template<typename R, typename P, typename RT = typename R::range_tag_type>
class stlsoft::filtered_range< R, P, RT >

This class adapts an STL sequence instance into a Range.

Parameters:
R  The range class
P  The filter predicate
RT  The range category tag type


Constructor & Destructor Documentation

filtered_range filtered_range_type    r,
filter_predicate_type    pr
[inline]
 

Constructs from a range and a predicate.

Parameters:
r  The range whose values will be filtered
pr  The predicate which will be used to filter the values of the range r


Member Function Documentation

class_type& advance   [inline]
 

Advances the current position in the range.

const_iterator begin   const [inline]
 

Returns an iterator to the current position of the range.

iterator begin   [inline]
 

Returns an iterator to the current position of the range.

const_reference current   const [inline]
 

Returns the current value in the range.

reference current   [inline]
 

Returns the current value in the range.

const_iterator end   const [inline]
 

Returns an iterator to the end of the range.

iterator end   [inline]
 

Returns an iterator to the end of the range.

ss_bool_t is_open   const [inline]
 

Indicates whether the range is open.

const_reference operator *   const [inline]
 

Returns the current value in the range.

reference operator *   [inline]
 

Returns the current value in the range.

operator boolean_type   const [inline]
 

Indicates whether the range is open.

class_type operator++ int    [inline]
 

Advances the current position in the range, returning a copy of the range prior to its being advanced.

class_type& operator++   [inline]
 

Advances the current position in the range.


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

STLSoft Libraries documentation © Synesis Software Pty Ltd, 2001-2004