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.
boost/property_map/transform_value_property_map.hpp
Parameter | Description | Default |
---|---|---|
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 |
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_typeThe type Ref with any reference or cv-qualifiers removed.
transform_value_property_map(const UnaryFunction& f, const PM& pm);Constructor.
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 © 2012 | Trustees of Indiana University |