OSDN Git Service

d65b6b77f00e28b6c96e180b9026e6cd2573adc6
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / docs / html / ext / pb_assoc / sample_range_hashing.html
1
2 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
3
4
5 <html>
6 <head>
7 <title>sample_range_hashing Interface
8 </title>
9
10 </head>
11
12 <body>
13 <h1>
14 <tt>sample_range_hashing
15 </tt>
16
17  Interface
18
19
20 </h1>
21
22 <p>A sample range-hashing functor.
23 </p>
24
25 <p>This class serves to show the interface a range-hashing functor needs to support.
26 </p>
27
28 <ol>
29 <li>
30 <a href = "../doc/sample_range_hashing.hpp"><tt>sample_range_hashing.hpp</tt>
31 </a>
32
33 </li>
34
35 <li>
36 Public Methods:
37
38
39 <ol>
40 <li>
41 <a href = "#link1">Constructors, destructor, and related.
42 </a>
43
44 </li>
45
46 </ol>
47
48 </li>
49
50 <li>
51 Protected Methods:
52
53
54 <ol>
55 <li>
56 <a href = "#link2">Notification methods.
57 </a>
58
59 </li>
60
61 <li>
62 <a href = "#link3">Operators.
63 </a>
64
65 </li>
66
67 </ol>
68
69 </li>
70
71 </ol>
72
73
74 <h2>
75 <a name = "link1">Constructors, destructor, and related.
76 </a>
77
78 </h2>
79
80 <table WIDTH = "100%" BORDER = "1">
81 <TR><TD Width = "45%" ALIGN = "left"><b>Method</b></TD><TD Width = "55%" ALIGN = "left"><b>Description</b></TD></TR>
82
83
84 <tr>
85 <td>
86 <pre>  sample_range_hashing
87   ()</pre>
88
89
90 </td>
91
92 <td>
93 <p>Default constructor.</p>
94
95
96 <p>Must be default constructible.</p>
97
98
99 </td>
100
101 </tr>
102
103 <tr>
104 <td>
105 <pre>  sample_range_hashing
106   (<b>const</b> sample_range_hashing &amp;r_other)</pre>
107
108
109 </td>
110
111 <td>
112 <p>Copy constructor.</p>
113
114
115 <p>Must be copy constructible.</p>
116
117
118 </td>
119
120 </tr>
121
122 <tr>
123 <td>
124 <pre><b>inline</b> <b>void</b>
125   swap
126   (sample_range_hashing &amp;r_other)</pre>
127
128
129 </td>
130
131 <td>
132 <p>Swaps content.</p>
133
134
135 <p>Must be swappable (if there is such a word).</p>
136
137
138 </td>
139
140 </tr>
141
142 </table>
143
144 <h2>
145 <a name = "link2">Notification methods.
146 </a>
147
148 </h2>
149
150 <table WIDTH = "100%" BORDER = "1">
151 <TR><TD Width = "45%" ALIGN = "left"><b>Method</b></TD><TD Width = "55%" ALIGN = "left"><b>Description</b></TD></TR>
152
153
154 <tr>
155 <td>
156 <pre><b>void</b>
157   notify_resized
158   (size_type size)</pre>
159
160
161 </td>
162
163 <td>
164 <p>Notifies the policy object that the container's size has changed to <font color = "#666666"><tt>size</tt></font>.</p>
165
166
167 <p><p><tt>size_type</tt> is the size type on which the functor operates.</p></p>
168
169
170 </td>
171
172 </tr>
173
174 </table>
175
176 <h2>
177 <a name = "link3">Operators.
178 </a>
179
180 </h2>
181
182 <table WIDTH = "100%" BORDER = "1">
183 <TR><TD Width = "45%" ALIGN = "left"><b>Method</b></TD><TD Width = "55%" ALIGN = "left"><b>Description</b></TD></TR>
184
185
186 <tr>
187 <td>
188 <pre>*  comment = "@@sample_range_hashing_size_type_comment"&gt;
189 **/
190 <b>inline</b> size_type
191   <b>operator</b>()
192   (size_type hash) <b>const</b></pre>
193
194
195 </td>
196
197 <td>
198 <p>Transforms the hash value <font color = "#666666"><tt>hash</tt></font> into a ranged-hash value.</p>
199
200
201 </td>
202
203 </tr>
204
205 </table>
206
207
208
209 </body>
210
211 </html>
212
213