indirect_range_adaptor Class Template Reference

#include <rangelib/basic_indirect_range_adaptor.hpp>

Inheritance diagram for indirect_range_adaptor:

indirect_range_tag basic_indirect_range_tag

List of all members.


Detailed Description

template<typename R>
class rangelib::indirect_range_adaptor< R >

Runtime adaptor that adapts a Basic Indirect range to an Indirect range.

Public Types

typedef R range_type
typedef R::value_type value_type

Public Member Functions

 indirect_range_adaptor (range_type r)
 Constructor.
template<typename T>
accumulate (T val) const
 Returns the sum of val and the value of each element in the range.
template<typename T, typename P>
accumulate (T val, P pr) const
 Returns the sum of val and the value of pr applied to each element in the range.
template<typename O>
copy (O o) const
 Copies each element in the range to the output iterator o.
template<typename O, typename P>
copy_if (O o, P pr) const
 Copies each element in the range that satisfies predicate pr to the output iterator o.
template<typename T>
size_t count (T const &val) const
 Returns the number of elements in the range that evaluate equal to val.
template<typename P>
size_t count_if (P pr) const
 Returns the number of elements in the range matching the predicate pr.
ptrdiff_t distance () const
 Returns the number of elements in the range.
template<typename F>
for_each (F f)
 Applied the functor f to each element in the array.
template<typename T>
bool exists (T const &val) const
 Returns true if the element val exists in the range.
template<typename P>
bool exists_if (P pr) const
 Returns true if any element in given predicate pr evaluates true any element in the range.
template<typename P, typename T>
bool exists_if (P pr, T &result) const
 Returns true if any element in given predicate pr evaluates true any element in the range, and places the matching element in result.
value_type max_element () const
 Returns the value of the maximum elements in the range.
template<typename P>
value_type max_element (P pr) const
 Returns the value of the maximum elements in the range, as determined by the comparand predicate pr.
value_type min_element () const
 Returns the value of the minimum elements in the range.
template<typename P>
value_type min_element (P pr) const
 Returns the value of the minimum elements in the range, as determined by the comparand predicate pr.

Constructor & Destructor Documentation

indirect_range_adaptor ( range_type  r  )  [inline]

Constructor.

Parameters:
r The Basic Indirect range instance to be adapted


Member Function Documentation

T accumulate ( val  )  const [inline]

Returns the sum of val and the value of each element in the range.

T accumulate ( val,
pr 
) const [inline]

Returns the sum of val and the value of pr applied to each element in the range.

O copy ( o  )  const [inline]

Copies each element in the range to the output iterator o.

O copy_if ( o,
pr 
) const [inline]

Copies each element in the range that satisfies predicate pr to the output iterator o.

size_t count ( T const &  val  )  const [inline]

Returns the number of elements in the range that evaluate equal to val.

size_t count_if ( pr  )  const [inline]

Returns the number of elements in the range matching the predicate pr.

ptrdiff_t distance (  )  const [inline]

Returns the number of elements in the range.

F for_each ( f  )  [inline]

Applied the functor f to each element in the array.

bool exists ( T const &  val  )  const [inline]

Returns true if the element val exists in the range.

bool exists_if ( pr  )  const [inline]

Returns true if any element in given predicate pr evaluates true any element in the range.

bool exists_if ( pr,
T &  result 
) const [inline]

Returns true if any element in given predicate pr evaluates true any element in the range, and places the matching element in result.

value_type max_element (  )  const [inline]

Returns the value of the maximum elements in the range.

value_type max_element ( pr  )  const [inline]

Returns the value of the maximum elements in the range, as determined by the comparand predicate pr.

value_type min_element (  )  const [inline]

Returns the value of the minimum elements in the range.

value_type min_element ( pr  )  const [inline]

Returns the value of the minimum elements in the range, as determined by the comparand predicate pr.


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

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