3 Copyright (c) 2012 Trustees of Indiana University
5 Distributed under the Boost Software License, Version 1.0.
6 (See accompanying file LICENSE_1_0.txt or copy at
7 http://www.boost.org/LICENSE_1_0.txt)
10 <Title>Value-Transforming Property Map Adaptor
</Title>
11 <BODY BGCOLOR=
"#ffffff" LINK=
"#0000ee" TEXT=
"#000000" VLINK=
"#551a8b"
13 <IMG SRC=
"../../../boost.png"
14 ALT=
"C++ Boost" width=
"277" height=
"86">
19 <H2><A NAME=
"sec:function-property-map"></A>
22 transform_value_property_map
<UnaryFunction, PM, Ref
>
26 This property map is an adaptor that composes a function object after an existing property map. The new property map will model either
<a href=
"ReadablePropertyMap.html">Readable Property Map
</a> or a
<a href=
"LvaluePropertyMap.html">Lvalue Property Map
</a>. The category of the property map is based on whether the function's return type (as given by
<tt>Ref
</tt>) is a non-const reference type.
35 <H3>Where Defined
</H3>
38 <a href=
"../../../boost/property_map/transform_value_property_map.hpp"><TT>boost/property_map/transform_value_property_map.hpp
</TT></a>
43 <a href=
"./ReadablePropertyMap.html">Readable Property Map
</a> or
<a href=
"./LvaluePropertyMap.html">Lvalue Property Map
</a>
47 <H3>Template Parameters
</H3>
53 <th>Parameter
</th><th>Description
</th><th>Default
</th>
58 <TD><TT>UnaryFunction
</TT></TD>
59 <TD>Must be a model of
<a href=
"http://www.sgi.com/tech/stl/UnaryFunction.html">Unary Function
</a> that accepts an object of type
<tt>property_traits
<PM
>::reference
</tt> as an argument and returns a result of type
<tt>Ref
</tt>.
</TD>
64 <TD><TT>PM
</TT></TD> <TD>The underlying property map.
70 <TD>The result type of the function.
</TD>
71 <TD><TT>boost::result_of
<const UnaryFunction(property_traits
<PM
>::reference)
>::type
</TT></TD>
81 In addition to the methods and functions required by
<a
82 href=
"./ReadablePropertyMap.html">Readable Property Map
</a> or
<a href=
"LvaluePropertyMap.html">Lvalue Property Map
</a>, this
83 class has the following members:
88 property_traits
<transform_value_property_map
>::value_type
90 The type
<tt>Ref
</tt> with any reference or cv-qualifiers removed.
95 transform_value_property_map(const UnaryFunction
& f, const PM
& pm);
101 <h3>Non-Member functions
</h3>
106 template
<class PM, class UnaryFunction
>
107 transform_value_property_map
<UnaryFunction, PM
>
108 make_transform_value_property_map(const UnaryFunction
& f, const PM
& pm);
110 Returns a
<tt>transform_value_property_map
</tt> using the given function and property map type.
115 template
<class Ref, class PM, class UnaryFunction
>
116 transform_value_property_map
<UnaryFunction, PM, Ref
>
117 make_transform_value_property_map(const UnaryFunction
& f, const PM
& pm);
119 Returns a
<tt>transform_value_property_map
</tt> using the given function and property map, explicitly giving the function's result type.
127 <TD nowrap
>Copyright
© 2012</TD><TD>Trustees of Indiana University