1 | <HTML> |
---|
2 | <!-- |
---|
3 | -- Copyright (c) Jeremy Siek, Lie-Quan Lee, and Andrew Lumsdaine 2000 |
---|
4 | -- |
---|
5 | -- Permission to use, copy, modify, distribute and sell this software |
---|
6 | -- and its documentation for any purpose is hereby granted without fee, |
---|
7 | -- provided that the above copyright notice appears in all copies and |
---|
8 | -- that both that copyright notice and this permission notice appear |
---|
9 | -- in supporting documentation. We make no |
---|
10 | -- representations about the suitability of this software for any |
---|
11 | -- purpose. It is provided "as is" without express or implied warranty. |
---|
12 | --> |
---|
13 | <Head> |
---|
14 | <Title>Identity Property Map</Title> |
---|
15 | <BODY BGCOLOR="#ffffff" LINK="#0000ee" TEXT="#000000" VLINK="#551a8b" |
---|
16 | ALINK="#ff0000"> |
---|
17 | <IMG SRC="../../boost.png" |
---|
18 | ALT="C++ Boost" width="277" height="86"> |
---|
19 | |
---|
20 | <BR Clear> |
---|
21 | |
---|
22 | <H2><A NAME="sec:identity-property-map"></A> |
---|
23 | </h2> |
---|
24 | <PRE> |
---|
25 | identity_property_map |
---|
26 | </PRE> |
---|
27 | |
---|
28 | This property map applies the identity function, that is, it just |
---|
29 | returns a copy of the key object that was input. |
---|
30 | |
---|
31 | <H3>Where Defined</H3> |
---|
32 | |
---|
33 | <P> |
---|
34 | <a href="../../boost/property_map.hpp"><TT>boost/property_map.hpp</TT></a> |
---|
35 | |
---|
36 | <h3>Model of</h3> |
---|
37 | |
---|
38 | <a href="./ReadablePropertyMap.html">Readable Property Map</a> |
---|
39 | |
---|
40 | <h3>Associated Types</h3> |
---|
41 | |
---|
42 | <table border> |
---|
43 | <tr> |
---|
44 | <th>Type</th><th>Description</th> |
---|
45 | </tr> |
---|
46 | |
---|
47 | <tr> |
---|
48 | <td><tt> |
---|
49 | boost::property_traits<identity_property_map>::value_type |
---|
50 | </tt></td> |
---|
51 | <td> |
---|
52 | This type is <tt>std::size_t</tt>; the map functions are templated. |
---|
53 | </td> |
---|
54 | </tr> |
---|
55 | |
---|
56 | <tr> |
---|
57 | <td><tt> |
---|
58 | boost::property_traits<identity_property_map>::key_type |
---|
59 | </tt></td> |
---|
60 | <td> |
---|
61 | This type is <tt>std::size_t</tt>; the map functions are templated. |
---|
62 | </td> |
---|
63 | </tr> |
---|
64 | |
---|
65 | <tr> |
---|
66 | <td><tt> |
---|
67 | boost::property_traits<identity_property_map>::category |
---|
68 | </tt></td> |
---|
69 | <td> |
---|
70 | This type is <tt>boost::readable_op_bracket_tag</tt>. |
---|
71 | </td> |
---|
72 | </tr> |
---|
73 | |
---|
74 | </table> |
---|
75 | |
---|
76 | <h3>Member Functions</h3> |
---|
77 | |
---|
78 | <table border> |
---|
79 | <tr> |
---|
80 | <th>Member</th><th>Description</th> |
---|
81 | </tr> |
---|
82 | |
---|
83 | |
---|
84 | <tr> |
---|
85 | <td><tt> |
---|
86 | identity_property_map() |
---|
87 | </tt></td> |
---|
88 | <td> |
---|
89 | Default constructor. |
---|
90 | </td> |
---|
91 | </tr> |
---|
92 | |
---|
93 | <tr> |
---|
94 | <td><tt> |
---|
95 | identity_property_map(const identity_property_map& x) |
---|
96 | </tt></td> |
---|
97 | <td> |
---|
98 | Copy constructor. |
---|
99 | </td> |
---|
100 | </tr> |
---|
101 | |
---|
102 | <tr> |
---|
103 | <td><tt> |
---|
104 | template <class T><br> |
---|
105 | T operator[](T x) const |
---|
106 | </tt></td> |
---|
107 | <td> |
---|
108 | Returns a copy of object <tt>x</tt>. |
---|
109 | </td> |
---|
110 | </tr> |
---|
111 | |
---|
112 | </table> |
---|
113 | |
---|
114 | <h3>Non-Member Functions</h3> |
---|
115 | |
---|
116 | <table border> |
---|
117 | <tr> |
---|
118 | <th>Member</th><th>Description</th> |
---|
119 | </tr> |
---|
120 | |
---|
121 | <tr> |
---|
122 | <td><tt> |
---|
123 | template <class T><br> |
---|
124 | T get(const identity_property_map& pmap, T x) |
---|
125 | </tt></td> |
---|
126 | <td> |
---|
127 | Returns a copy of object <tt>x</tt>. |
---|
128 | </td> |
---|
129 | </tr> |
---|
130 | |
---|
131 | </table> |
---|
132 | |
---|
133 | |
---|
134 | <br> |
---|
135 | <HR> |
---|
136 | <TABLE> |
---|
137 | <TR valign=top> |
---|
138 | <TD nowrap>Copyright © 2000</TD><TD> |
---|
139 | <a HREF="../../people/jeremy_siek.htm">Jeremy Siek</a>, |
---|
140 | Univ.of Notre Dame (<A |
---|
141 | HREF="mailto:jsiek@lsc.nd.edu">jsiek@lsc.nd.edu</A>)<br> |
---|
142 | <A HREF=http://www.boost.org/people/liequan_lee.htm>Lie-Quan Lee</A>, Univ.of Notre Dame (<A HREF="mailto:llee1@lsc.nd.edu">llee1@lsc.nd.edu</A>)<br> |
---|
143 | <A HREF=http://www.lsc.nd.edu/~lums>Andrew Lumsdaine</A>, |
---|
144 | Univ.of Notre Dame (<A |
---|
145 | HREF="mailto:lums@lsc.nd.edu">lums@lsc.nd.edu</A>) |
---|
146 | </TD></TR></TABLE> |
---|
147 | |
---|
148 | </BODY> |
---|
149 | </HTML> |
---|