]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/property_map/doc/static_property_map.html
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / property_map / doc / static_property_map.html
CommitLineData
7c673cae
FG
1<HTML>
2<!--
3 Copyright 2006, 2013 The Trustees of Indiana University
4
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)
8
9 -->
10<Head>
11<Title>Static Property Map</Title>
12<BODY BGCOLOR="#ffffff" LINK="#0000ee" TEXT="#000000" VLINK="#551a8b"
13 ALINK="#ff0000">
14<IMG SRC="../../../boost.png"
15 ALT="C++ Boost" width="277" height="86">
16
17<BR Clear>
18
19<H2><A NAME="sec:static-property-map"></A>
20</h2>
21<PRE>
22template &lt;typename ValueType, typename KeyType = void&gt;
23class static_property_map
24</PRE>
25
26This property map wraps a copy of some particular object, and
27returns a copy of that object whenever a key object is input.
28
29<H3>Where Defined</H3>
30
31<P>
32<a href="../../../boost/property_map/property_map.hpp"><TT>boost/property_map/property_map.hpp</TT></a>
33
34<h3>Model of</h3>
35
36<a href="./ReadablePropertyMap.html">Readable Property Map</a>
37
38<h3>Associated Types</h3>
39
40<table border>
41<tr>
42<th>Type</th><th>Description</th>
43</tr>
44
45<tr>
46<td><tt>
47boost::property_traits&lt;static_property_map&gt;::value_type
48</tt></td>
49<td>
50This type is the <tt>ValueType</tt> with which the template was instantiated.
51</td>
52</tr>
53
54<tr>
55<td><tt>
56boost::property_traits&lt;static_property_map&gt;::key_type
57</tt></td>
58<td>
59This type is the <tt>KeyType</tt> with which the template was instantiated.
60</td>
61</tr>
62
63<tr>
64<td><tt>
65boost::property_traits&lt;static_property_map&gt;::category
66</tt></td>
67<td>
68This type is <tt>boost::readable_property_map_tag</tt>.
69</td>
70</tr>
71
72</table>
73
74<h3>Member Functions</h3>
75
76<table border>
77<tr>
78<th>Member</th><th>Description</th>
79</tr>
80
81
82<tr>
83<td><tt>
84static_property_map(ValueType v)
85</tt></td>
86<td>
87The constructor for static_property_map is provided the value that
88the property map will return when queried.
89</td>
90</tr>
91
92<tr>
93<td><tt>
94static_property_map(const static_property_map&amp; x)
95</tt></td>
96<td>
97Copy constructor.
98</td>
99</tr>
100
101<tr>
102<td><pre>
103template &lt;typename T&gt;
104ValueType&amp; operator[](T) const
105</pre></td>
106<td>
107Returns the contained value by copy.
108</td>
109</tr>
110
111</table>
112
113<h3>Non-Member Functions</h3>
114
115<table border>
116<tr><td><pre>
117template &lt;typename KeyType, typename ValueType&gt;
118static_property_map&lt;KeyType, ValueType&gt;
119make_static_property_map(const ValueType&amp; value);
120</pre></td>
121<td>Returns a <tt>static_property_map</tt> with the given key type initialized to the given value.</td>
122</tr>
123</table>
124
125
126</BODY>
127</HTML>