Files
property_map/LvaluePropertyAccessor.html
Jeremy Siek 31dc5640eb changed to use put/get in graph coloring, and changed
LvaluePropertyAccessor to use operator[] instead of at()


[SVN r7749]
2000-09-20 18:56:45 +00:00

107 lines
2.7 KiB
HTML

<HTML>
<!--
-- Copyright (c) Jeremy Siek 2000
--
-- Permission to use, copy, modify, distribute and sell this software
-- and its documentation for any purpose is hereby granted without fee,
-- provided that the above copyright notice appears in all copies and
-- that both that copyright notice and this permission notice appear
-- in supporting documentation. Silicon Graphics makes no
-- representations about the suitability of this software for any
-- purpose. It is provided "as is" without express or implied warranty.
-->
<Head>
<Title>LvaluePropertyAccessor</Title>
<BODY BGCOLOR="#ffffff" LINK="#0000ee" TEXT="#000000" VLINK="#551a8b"
ALINK="#ff0000">
<IMG SRC="../../c++boost.gif"
ALT="C++ Boost">
<BR Clear>
<H2><A NAME="concept:LvaluePropertyAccessor"></A>
LvaluePropertyAccessor
</H2>
The LvaluePropertyAccessor provides an interface for accessing a
reference to a property object (instead of a copy of the object as in
the <TT>get()</TT> function required by <a
href="./ReadablePropertyAccessor.html">ReadablePropertyAccessor</a>). An
LvaluePropertyAccessor can be <I>mutable</I> or
<I>non-mutable</I>. The mutable LvaluePropertyAccessor returns a
reference whereas the non-mutable returns a const reference.
<H3>Refinement of</H3>
<a href="./ReadablePropertyAccessor.html">ReadablePropertyAccessor</a>
for non-mutable or <a href="./ReadWritePropertyAccessor.html">ReadWritePropertyAccessor</a> for mutable property accessor.
<h3>Notation</h3>
<Table>
<TR>
<TD><tt>PA</tt></TD>
<TD>A type that is a model of LvaluePropertyAccessor.</TD>
</TR>
<TR>
<TD><tt>pa</tt></TD>
<TD>An object of type <tt>PA</tt>.</td>
</TR>
<TR>
<TD><tt>key</tt></TD>
<TD>An object of type <tt>boost::property_traits&lt;PA&gt;::key_type</tt>.</td>
</TR>
</table>
<h3>Associated Types</h3>
<table border>
<tr>
<td>Property Accessor Category
<td><TT>boost::property_traits&lt;PA&gt;::category</TT></td>
<td>
The category of the property: a type convertible to
<TT>boost::lvalue_property_accessor_tag</TT>.
</td>
</tr>
</table>
<h3>Valid Expressions</h3>
<table border>
<tr>
<th>Name</th><th>Expression</th><th>Return Type</th><th>Description</th>
</tr>
<tr>
<td>Access Property Value </td>
<TD><TT>pa[key]</TT></TD>
<TD>
<TT>value_type&amp;</TT> for mutable, <TT>const value_type&amp;</TT>
otherwise.
</TD>
<TD>Obtain a reference to the property identified by <TT>key</TT>.</TD>
</TR>
</TABLE>
<h3>See Also</h3>
<a href="./property_accessor.html">Property accessor concepts</a>
<br>
<HR>
<TABLE>
<TR valign=top>
<TD nowrap>Copyright &copy 2000</TD><TD>
<A HREF=http://www.boost.org/people/jeremy_siek.htm>Jeremy Siek</A>, Univ.of Notre Dame (<A HREF="mailto:jsiek@lsc.nd.edu">jsiek@lsc.nd.edu</A>)
</TD></TR></TABLE>
</BODY>
</HTML>