Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the develop branch, built from commit 0f79ae966a.
C++ Boost

transform_value_property_map<UnaryFunction, PM, Ref>

This property map is an adaptor that composes a function object after an existing property map. The new property map will model either Readable Property Map or a Lvalue Property Map. The category of the property map is based on whether the function's return type (as given by Ref) is a non-const reference type.

Where Defined

boost/property_map/transform_value_property_map.hpp

Model Of

Readable Property Map or Lvalue Property Map

Template Parameters

ParameterDescriptionDefault
UnaryFunction Must be a model of Unary Function that accepts an object of type property_traits<PM>::reference as an argument and returns a result of type Ref.  
PM The underlying property map.  
Ref The result type of the function. boost::result_of<const UnaryFunction(property_traits<PM>::reference)>::type

Members

In addition to the methods and functions required by Readable Property Map or Lvalue Property Map, this class has the following members:


property_traits<transform_value_property_map>::value_type
The type Ref with any reference or cv-qualifiers removed.
transform_value_property_map(const UnaryFunction& f, const PM& pm);
Constructor.

Non-Member functions


  template <class PM, class UnaryFunction>
  transform_value_property_map<UnaryFunction, PM>
  make_transform_value_property_map(const UnaryFunction& f, const PM& pm);
Returns a transform_value_property_map using the given function and property map type.
  template <class Ref, class PM, class UnaryFunction>
  transform_value_property_map<UnaryFunction, PM, Ref>
  make_transform_value_property_map(const UnaryFunction& f, const PM& pm);
Returns a transform_value_property_map using the given function and property map, explicitly giving the function's result type.


Copyright © 2012Trustees of Indiana University