3 Copyright 2006, 2013 The Trustees of Indiana University
5 Use, modification and distribution is subject to the Boost Software
6 License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
7 http://www.boost.org/LICENSE_1_0.txt)
11 <Title>Static Property Map
</Title>
12 <BODY BGCOLOR=
"#ffffff" LINK=
"#0000ee" TEXT=
"#000000" VLINK=
"#551a8b"
14 <IMG SRC=
"../../../boost.png"
15 ALT=
"C++ Boost" width=
"277" height=
"86">
19 <H2><A NAME=
"sec:static-property-map"></A>
22 template
<typename ValueType, typename KeyType = void
>
23 class static_property_map
26 This property map wraps a copy of some particular object, and
27 returns a copy of that object whenever a key object is input.
29 <H3>Where Defined
</H3>
32 <a href=
"../../../boost/property_map/property_map.hpp"><TT>boost/property_map/property_map.hpp
</TT></a>
36 <a href=
"./ReadablePropertyMap.html">Readable Property Map
</a>
38 <h3>Associated Types
</h3>
42 <th>Type
</th><th>Description
</th>
47 boost::property_traits
<static_property_map
>::value_type
50 This type is the
<tt>ValueType
</tt> with which the template was instantiated.
56 boost::property_traits
<static_property_map
>::key_type
59 This type is the
<tt>KeyType
</tt> with which the template was instantiated.
65 boost::property_traits
<static_property_map
>::category
68 This type is
<tt>boost::readable_property_map_tag
</tt>.
74 <h3>Member Functions
</h3>
78 <th>Member
</th><th>Description
</th>
84 static_property_map(ValueType v)
87 The constructor for static_property_map is provided the value that
88 the property map will return when queried.
94 static_property_map(const static_property_map
& x)
103 template
<typename T
>
104 ValueType
& operator[](T) const
107 Returns the contained value by copy.
113 <h3>Non-Member Functions
</h3>
117 template
<typename KeyType, typename ValueType
>
118 static_property_map
<KeyType, ValueType
>
119 make_static_property_map(const ValueType
& value);
121 <td>Returns a
<tt>static_property_map
</tt> with the given key type initialized to the given value.
</td>