File: ReadWritePropertyMap.html

package info (click to toggle)
boost1.42 1.42.0-4
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 277,864 kB
  • ctags: 401,076
  • sloc: cpp: 1,235,659; xml: 74,142; ansic: 41,313; python: 26,756; sh: 11,840; cs: 2,118; makefile: 655; perl: 494; yacc: 456; asm: 353; csh: 6
file content (92 lines) | stat: -rw-r--r-- 2,142 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<HTML>
<!--
     Copyright (c) Jeremy Siek 2000
    
     Distributed under the Boost Software License, Version 1.0.
     (See accompanying file LICENSE_1_0.txt or copy at
     http://www.boost.org/LICENSE_1_0.txt)
  -->
<Head>
<Title>Read Write Property Map</Title>
<BODY BGCOLOR="#ffffff" LINK="#0000ee" TEXT="#000000" VLINK="#551a8b" 
	ALINK="#ff0000"> 
<IMG SRC="../../../boost.png" 
     ALT="C++ Boost" width="277" height="86"> 

<BR Clear>

<H2>
<A NAME="concept:ReadWritePropertyMap"></A>
<BR>
Read/Write Property Map
</H2>    

A Read/Write Property Map can be used to read property values via
the <tt>get()</tt> function and can be used to write property values
via the <tt>put()</tt> function.  

<H3>Refinement of</H3>

<a href="./ReadablePropertyMap.html">Readable Property Map</a>
and
<a href="./WritablePropertyMap.html">Writable Property Map</a>



<h3>Notation</h3>

<Table>
<TR>
<TD><tt>PMap</tt></TD>
<TD>A type that is a model of Read/Write Property Map.</TD>
</TR>

</table>

<h2>Associated Types</h2>

<table border>

<tr>
<td>Property Map Category 
<td><TT>boost::property_traits&lt;PMap&gt;::category</TT></td> 
<td>
The category of the property map must be a type convertible to
<TT>read_write_property_map_tag</TT>.
</td>
</tr>

</table>


<h3>Concept Checking Class</h3>

<pre>
  template &lt;class PMap, class Key&gt;
  struct ReadWritePropertyMapConcept
  {
    typedef typename property_traits&lt;PMap&gt;::category Category;
    typedef boost::read_write_property_map_tag ReadWriteTag;
    void constraints() {
      function_requires&lt; ReadablePropertyMapConcept&lt;PMap, Key&gt; &gt;();
      function_requires&lt; WritablePropertyMapConcept&lt;PMap, Key&gt; &gt;();
      function_requires&lt; ConvertibleConcept&lt;Category, ReadWriteTag&gt; &gt;();
    }
  };
</pre>

<h3>See Also</h3>

<a href="./property_map.html">Property map 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>