Ticket #6539: return_value_get.patch
File return_value_get.patch, 2.5 KB (added by , 11 years ago) |
---|
-
LvaluePropertyMap.html
19 19 LvaluePropertyMap 20 20 </H2> 21 21 22 The LvaluePropertyMap provides an interface for accessing a 23 reference to a property object (instead of a copy of the object as in 24 the <TT>get()</TT> function required by <a 25 href="./ReadablePropertyMap.html">ReadablePropertyMap</a>). An 26 LvaluePropertyMap can be <I>mutable</I> or 27 <I>non-mutable</I>. The mutable LvaluePropertyMap returns a 28 reference whereas the non-mutable returns a const reference. 22 The LvaluePropertyMap provides <code>operator[]</code> and function <code>get()</code> for accessing a 23 reference to a value object. The return type refines that of function <code>get()</code>in <a 24 href="./ReadablePropertyMap.html">ReadablePropertyMap</a>; it can only be a reference (for a <I>mutable</I> LvaluePropertyMap) or a const reference (for a <I>non-mutable</I> LvaluePropertyMap). 29 25 30 26 <H3>Refinement of</H3> 31 27 … … 60 56 <td><TT>boost::property_traits<PMap>::reference</TT></td> 61 57 <td> 62 58 The reference type, which must be a reference or const reference to 63 the value type of the property map.59 the value type of the property map. 64 60 </td> 65 61 </tr> 66 62 … … 90 86 <TT>value_type&</TT> for mutable, <TT>const value_type&</TT> 91 87 otherwise. 92 88 </TD> 93 <TD>Obtain a reference to the property identified by<TT>key</TT>.</TD>89 <TD>Obtain a reference to the value associated with <TT>key</TT>.</TD> 94 90 </TR> 95 91 </TABLE> 96 92 -
ReadablePropertyMap.html
20 20 Readable Property Map 21 21 </H2> 22 22 23 A Readable Property Map provides read-access to the value objectassociated with a given key via a call to the <tt>get()</tt> function.24 The <tt>get()</tt> function returns a copy of thevalue object.23 A Readable Property Map provides read-access to the value associated with a given key via a call to the <tt>get()</tt> function. 24 The return type of the <tt>get()</tt>function is convertible to a value object. 25 25 26 26 <h3>Refinement of</h3> 27 27 … … 95 95 <td>Get Property Value </td> 96 96 <TD><TT>get(pmap, key)</TT></TD> 97 97 <TD><TT>reference</TT></TD> 98 <TD>Lookup the property of the object identified by<TT>key</TT>.</TD>98 <TD>Lookup the value associated with <TT>key</TT>.</TD> 99 99 </TR> 100 100 101 101 </TABLE>