Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / libstdc++-v3 / docs / html / ext / pb_assoc / cc_hash_assoc_cntnr.html
blob8124e4bcb20af741553b2185e6b3c6705e7fab75
2 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
5 <html>
6 <head>
7 <title>cc_hash_assoc_cntnr Interface
8 </title>
10 </head>
12 <body>
13 <h1>
14 <tt>cc_hash_assoc_cntnr
15 </tt>
17 Interface
20 </h1>
22 <p>A collision-chaining hash-based associative container.
23 </p>
25 <ol>
26 <li>
27 <a href = "../../../../include/ext/pb_assoc/assoc_cntnr.hpp"><tt>assoc_cntnr.hpp</tt>
28 </a>
30 </li>
32 <li>
33 <a href = "#link1">Template parameters.
34 </a>
36 </li>
38 <li>
39 <a href = "#link2">Base classes.
40 </a>
42 </li>
44 <li>
45 Public Types and Constants:
48 <ol>
49 <li>
50 <a href = "#link3">Policy definitions.
51 </a>
53 </li>
55 </ol>
57 </li>
59 <li>
60 Public Methods:
63 <ol>
64 <li>
65 <a href = "#link4">Constructors, destructor, and related.
66 </a>
68 </li>
70 <li>
71 <a href = "#link5">Policy access methods.
72 </a>
74 </li>
76 </ol>
78 </li>
80 </ol>
83 <h2>
84 <a name = "link1">Template parameters.
85 </a>
87 </h2>
89 <table WIDTH = "100%" BORDER = "1">
90 <TR><TD Width = "20%" ALIGN = "left"><b>Parameter</b></TD><TD Width = "50%" ALIGN = "left"><b>Description</b></TD><TD Width = "30%" ALIGN = "left"><b>Default Value</b></TD></TR>
93 <tr>
94 <td>
95 <pre><a name = "Key3735928856">Key</a></pre>
98 </td>
100 <td>
101 <p>Key type.</p>
104 </td>
106 <td>
110 </td>
112 </tr>
114 <tr>
115 <td>
116 <pre><a name = "Data3735928937">Data</a></pre>
119 </td>
121 <td>
122 <p>Data type.</p>
125 </td>
127 <td>
131 </td>
133 </tr>
135 <tr>
136 <td>
137 <pre><a name = "Hash_Fn3735929222">Hash_Fn</a></pre>
140 </td>
142 <td>
143 <p>Hash functor.</p>
146 </td>
148 <td>
149 <pre>__gnu_cxx::hash&lt;<a href = "#Key3735928856">Key</a>&gt;</pre>if using gcc;<pre>stdext::hash_value&lt;<a href = "#Key3735928856">Key</a>&gt;</pre>if using Visual C++ .net
152 </td>
154 </tr>
156 <tr>
157 <td>
158 <pre><a name = "Eq_Fn3735929016">Eq_Fn</a></pre>
161 </td>
163 <td>
164 <p>Equivalence functor.</p>
167 </td>
169 <td>
170 <pre>std::equal_to&lt;<a href = "#Key3735928856">Key</a>&gt;</pre>
173 </td>
175 </tr>
177 <tr>
178 <td>
179 <pre><a name = "Comb_Hash_Fn3735929702">Comb_Hash_Fn</a></pre>
182 </td>
184 <td>
185 <p>Combining hash functor.</p>
188 <p>If <a href = "#Hash_Fn3735929222">Hash_Fn</a> is not <a href = "null_hash_fn.html"><tt>null_hash_fn</tt></a>, then this is the <a href = "concepts.html#concepts_hash_fns">range_hashing function</a> functor; otherwise, this is the <a href = "concepts.html#concepts_hash_fns">ranged_hash function</a> functor.</p>
191 </td>
193 <td>
194 <pre><a href = "direct_mask_range_hashing.html">direct_mask_range_hashing</a>&lt;
195 <a href = "#Allocator3735929488">Allocator</a>&gt;</pre>
198 </td>
200 </tr>
202 <tr>
203 <td>
204 <pre><a name = "Resize_Policy3735929904">Resize_Policy</a></pre>
207 </td>
209 <td>
210 <p>Resize policy.</p>
213 </td>
215 <td>
216 If <tt><a href = "#comb_hash_fn3735929798">comb_hash_fn</a></tt> is <tt><a href = "direct_mask_range_hashing.html">direct_mask_range_hashing&lt;&gt;</a></tt>, then <pre><a href = "hash_standard_resize_policy.html">hash_standard_resize_policy</a>&lt;
217 <a href = "hash_exponential_size_policy.html">hash_exponential_size_policy</a>&lt;
218 <b>typename</b> <a href = "#comb_hash_fn3735929798">comb_hash_fn</a>::size_type&gt;,
219 <a href = "hash_load_check_resize_trigger.html">hash_load_check_resize_trigger</a>&lt;
220 <b>typename</b> <a href = "#comb_hash_fn3735929798">comb_hash_fn</a>::size_type&gt;,
221 <b>false</b>,
222 <b>typename</b> <a href = "#comb_hash_fn3735929798">comb_hash_fn</a>::size_type&gt;</pre>otherwise, <pre><a href = "hash_standard_resize_policy.html">hash_standard_resize_policy</a>&lt;
223 <a href = "hash_exponential_size_policy.html"><tt>hash_prime_size_policy</tt></a>&lt;
224 <b>typename</b> <a href = "#comb_hash_fn3735929798">comb_hash_fn</a>::size_type&gt;,
225 <a href = "hash_load_check_resize_trigger.html"><tt>hash_load_check_resize_trigger</tt></a>&lt;
226 <b>typename</b> <a href = "#comb_hash_fn3735929798">comb_hash_fn</a>::size_type&gt;,
227 <b>false</b>,
228 <b>typename</b> <a href = "#comb_hash_fn3735929798">comb_hash_fn</a>::size_type&gt;</pre>
231 </td>
233 </tr>
235 <tr>
236 <td>
237 <pre><a name = "Store_Hash3735929567">Store_Hash</a></pre>
240 </td>
242 <td>
243 <p>Indicates whether the hash value will be stored along with each key.</p>
246 <p>If <tt><a href = "#hash_fn3735929286">hash_fn</a></tt> is <tt><a href = "null_hash_fn.html">null_hash_fn</a></tt>, then the container will not compile if this value is <tt><b>true</b></tt></p>
249 </td>
251 <td>
252 <pre><tt><b>false</b></tt></pre>
255 </td>
257 </tr>
259 <tr>
260 <td>
261 <pre><a name = "Allocator3735929488">Allocator</a></pre>
264 </td>
266 <td>
267 <p>Allocator type.</p>
270 </td>
272 <td>
273 <pre>std::allocator&lt;<b>char</b>&gt;</pre>
276 </td>
278 </tr>
280 </table>
282 <h2>
283 <a name = "link2">Base classes.
284 </a>
286 </h2>
288 <table WIDTH = "100%" BORDER = "1">
289 <TR><TD Width = "80%" ALIGN = "left"><b>Class</b></TD><TD Width = "20%" ALIGN = "left"><b>Derivation Type</b></TD></TR>
292 <tr>
293 <td>
294 <pre><a href = "#Comb_Hash_Fn3735929702">Comb_Hash_Fn</a></pre>
297 </td>
299 <td>
300 <p>public</p>
303 </td>
305 </tr>
307 <tr>
308 <td>
309 <pre><a href = "basic_hash_assoc_cntnr.html"<tt>basic_hash_assoc_cntnr</tt></a></pre>
312 </td>
314 <td>
315 <p>public</p>
318 </td>
320 </tr>
322 </table>
324 <h2>
325 <a name = "link3">Policy definitions.
326 </a>
328 </h2>
330 <table WIDTH = "100%" BORDER = "1">
331 <TR><TD Width = "30%" ALIGN = "left"><b>Type</b></TD><TD Width = "55%" ALIGN = "left"><b>Definition</b></TD><TD Width = "15%" ALIGN = "left"><b>Description</b></TD></TR>
334 <tr>
335 <td>
336 <pre><a name = "comb_hash_fn3735929798">comb_hash_fn</a></pre>
339 </td>
341 <td>
342 <pre><a href = "#Comb_Hash_Fn3735929702">Comb_Hash_Fn</a></pre>
345 </td>
347 <td>
348 <p>Combining hash functor type.</p>
351 </td>
353 </tr>
355 </table>
357 <h2>
358 <a name = "link4">Constructors, destructor, and related.
359 </a>
361 </h2>
363 <table WIDTH = "100%" BORDER = "1">
364 <TR><TD Width = "45%" ALIGN = "left"><b>Method</b></TD><TD Width = "55%" ALIGN = "left"><b>Description</b></TD></TR>
367 <tr>
368 <td>
369 <pre> cc_hash_assoc_cntnr
370 ()</pre>
373 </td>
375 <td>
376 <p>Default constructor.</p>
379 </td>
381 </tr>
383 <tr>
384 <td>
385 <pre> cc_hash_assoc_cntnr
386 (<b>const</b> <a href = "#Hash_Fn3735929222">Hash_Fn</a> &amp;r_hash_fn)</pre>
389 </td>
391 <td>
392 <p>Constructor taking some policy objects. <font color = "#666666"><tt>r_hash_fn</tt></font> will be copied by the <a href = "#Hash_Fn3735929222"><tt>Hash_Fn</tt></a> object of the container object.</p>
395 </td>
397 </tr>
399 <tr>
400 <td>
401 <pre> cc_hash_assoc_cntnr
402 (<b>const</b> <a href = "#Hash_Fn3735929222">Hash_Fn</a> &amp;r_hash_fn,
403 <b>const</b> <a href = "#Eq_Fn3735929016">Eq_Fn</a> &amp;r_eq_fn)</pre>
406 </td>
408 <td>
409 <p>Constructor taking some policy objects. <font color = "#666666"><tt>r_hash_fn</tt></font> will be copied by the <a href = "#Hash_Fn3735929222"><tt>Hash_Fn</tt></a> object of the container object, and <font color = "#666666"><tt>r_eq_fn</tt></font> will be copied by the <a href = "#Eq_Fn3735929016"><tt>Eq_Fn</tt></a> object of the container object.</p>
412 </td>
414 </tr>
416 <tr>
417 <td>
418 <pre> cc_hash_assoc_cntnr
419 (<b>const</b> <a href = "#Hash_Fn3735929222">Hash_Fn</a> &amp;r_hash_fn,
420 <b>const</b> <a href = "#Eq_Fn3735929016">Eq_Fn</a> &amp;r_eq_fn,
421 <b>const</b> <a href = "#Comb_Hash_Fn3735929702">Comb_Hash_Fn</a> &amp;r_comb_hash_fn)</pre>
424 </td>
426 <td>
427 <p>Constructor taking some policy objects. <font color = "#666666"><tt>r_hash_fn</tt></font> will be copied by the <a href = "#Hash_Fn3735929222"><tt>Hash_Fn</tt></a> object of the container object, <font color = "#666666"><tt>r_eq_fn</tt></font> will be copied by the <a href = "#Eq_Fn3735929016"><tt>Eq_Fn</tt></a> object of the container object, and <font color = "#666666"><tt>r_comb_hash_fn</tt></font> will be copied by the <a href = "#Comb_Hash_Fn3735929702"><tt>Comb_Hash_Fn</tt></a> object of the container object.</p>
430 </td>
432 </tr>
434 <tr>
435 <td>
436 <pre> cc_hash_assoc_cntnr
437 (<b>const</b> <a href = "#Hash_Fn3735929222">Hash_Fn</a> &amp;r_hash_fn,
438 <b>const</b> <a href = "#Eq_Fn3735929016">Eq_Fn</a> &amp;r_eq_fn,
439 <b>const</b> <a href = "#Comb_Hash_Fn3735929702">Comb_Hash_Fn</a> &amp;r_comb_hash_fn,
440 <b>const</b> <a href = "#Resize_Policy3735929904">Resize_Policy</a> &amp;r_resize_policy)</pre>
443 </td>
445 <td>
446 <p>Constructor taking some policy objects. <font color = "#666666"><tt>r_hash_fn</tt></font> will be copied by the <a href = "#Hash_Fn3735929222"><tt>Hash_Fn</tt></a> object of the container object, <font color = "#666666"><tt>r_eq_fn</tt></font> will be copied by the <a href = "#Eq_Fn3735929016"><tt>Eq_Fn</tt></a> object of the container object, <font color = "#666666"><tt>r_comb_hash_fn</tt></font> will be copied by the <a href = "#Comb_Hash_Fn3735929702"><tt>Comb_Hash_Fn</tt></a> object of the container object, and <font color = "#666666"><tt>r_resize_policy</tt></font> will be copied by the <a href = "#Resize_Policy3735929904"><tt>Resize_Policy</tt></a> object of the container object.</p>
449 </td>
451 </tr>
453 <tr>
454 <td>
455 <pre><b>template</b>&lt;
456 <b>class</b> It&gt;
457 cc_hash_assoc_cntnr
458 (It first_it,
459 It last_it)</pre>
462 </td>
464 <td>
465 <p>Constructor taking iterators to a range of value_types. The value_types between <font color = "#666666"><tt>first_it</tt></font> and <font color = "#666666"><tt>last_it</tt></font> will be inserted into the container object.</p>
468 </td>
470 </tr>
472 <tr>
473 <td>
474 <pre><b>template</b>&lt;
475 <b>class</b> It&gt;
476 cc_hash_assoc_cntnr
477 (It first_it,
478 It last_it,
479 <b>const</b> <a href = "#Hash_Fn3735929222">Hash_Fn</a> &amp;r_hash_fn)</pre>
482 </td>
484 <td>
485 <p>Constructor taking iterators to a range of value_types and some policy objects. The value_types between <font color = "#666666"><tt>first_it</tt></font> and <font color = "#666666"><tt>last_it</tt></font> will be inserted into the container object.</p>
488 </td>
490 </tr>
492 <tr>
493 <td>
494 <pre><b>template</b>&lt;
495 <b>class</b> It&gt;
496 cc_hash_assoc_cntnr
497 (It first_it,
498 It last_it,
499 <b>const</b> <a href = "#Hash_Fn3735929222">Hash_Fn</a> &amp;r_hash_fn,
500 <b>const</b> <a href = "#Eq_Fn3735929016">Eq_Fn</a> &amp;r_eq_fn)</pre>
503 </td>
505 <td>
506 <p>Constructor taking iterators to a range of value_types and some policy objects The value_types between <font color = "#666666"><tt>first_it</tt></font> and <font color = "#666666"><tt>last_it</tt></font> will be inserted into the container object. <font color = "#666666"><tt>r_hash_fn</tt></font> will be copied by the <a href = "#Hash_Fn3735929222"><tt>Hash_Fn</tt></a> object of the container object, and <font color = "#666666"><tt>r_eq_fn</tt></font> will be copied by the <a href = "#Eq_Fn3735929016"><tt>Eq_Fn</tt></a> object of the container object.</p>
509 </td>
511 </tr>
513 <tr>
514 <td>
515 <pre><b>template</b>&lt;
516 <b>class</b> It&gt;
517 cc_hash_assoc_cntnr
518 (It first_it,
519 It last_it,
520 <b>const</b> <a href = "#Hash_Fn3735929222">Hash_Fn</a> &amp;r_hash_fn,
521 <b>const</b> <a href = "#Eq_Fn3735929016">Eq_Fn</a> &amp;r_eq_fn,
522 <b>const</b> <a href = "#Comb_Hash_Fn3735929702">Comb_Hash_Fn</a> &amp;r_comb_hash_fn)</pre>
525 </td>
527 <td>
528 <p>Constructor taking iterators to a range of value_types and some policy objects The value_types between <font color = "#666666"><tt>first_it</tt></font> and <font color = "#666666"><tt>last_it</tt></font> will be inserted into the container object. <font color = "#666666"><tt>r_hash_fn</tt></font> will be copied by the <a href = "#Hash_Fn3735929222"><tt>Hash_Fn</tt></a> object of the container object, <font color = "#666666"><tt>r_eq_fn</tt></font> will be copied by the <a href = "#Eq_Fn3735929016"><tt>Eq_Fn</tt></a> object of the container object, and <font color = "#666666"><tt>r_comb_hash_fn</tt></font> will be copied by the <a href = "#Comb_Hash_Fn3735929702"><tt>Comb_Hash_Fn</tt></a> object of the container object.</p>
531 </td>
533 </tr>
535 <tr>
536 <td>
537 <pre><b>template</b>&lt;
538 <b>class</b> It&gt;
539 cc_hash_assoc_cntnr
540 (It first_it,
541 It last_it,
542 <b>const</b> <a href = "#Hash_Fn3735929222">Hash_Fn</a> &amp;r_hash_fn,
543 <b>const</b> <a href = "#Eq_Fn3735929016">Eq_Fn</a> &amp;r_eq_fn,
544 <b>const</b> <a href = "#Comb_Hash_Fn3735929702">Comb_Hash_Fn</a> &amp;r_comb_hash_fn,
545 <b>const</b> <a href = "#Resize_Policy3735929904">Resize_Policy</a> &amp;r_resize_policy)</pre>
548 </td>
550 <td>
551 <p>Constructor taking iterators to a range of value_types and some policy objects The value_types between <font color = "#666666"><tt>first_it</tt></font> and <font color = "#666666"><tt>last_it</tt></font> will be inserted into the container object. <font color = "#666666"><tt>r_hash_fn</tt></font> will be copied by the <a href = "#Hash_Fn3735929222"><tt>Hash_Fn</tt></a> object of the container object, <font color = "#666666"><tt>r_eq_fn</tt></font> will be copied by the <a href = "#Eq_Fn3735929016"><tt>Eq_Fn</tt></a> object of the container object, <font color = "#666666"><tt>r_comb_hash_fn</tt></font> will be copied by the <a href = "#Comb_Hash_Fn3735929702"><tt>Comb_Hash_Fn</tt></a> object of the container object, and <font color = "#666666"><tt>r_resize_policy</tt></font> will be copied by the <a href = "#Resize_Policy3735929904"><tt>Resize_Policy</tt></a> object of the container object.</p>
554 </td>
556 </tr>
558 <tr>
559 <td>
560 <pre> cc_hash_assoc_cntnr
561 (<b>const</b> <font color = "olive">cc_hash_assoc_cntnr</font> &amp;r_other)</pre>
564 </td>
566 <td>
567 <p>Copy constructor.</p>
570 </td>
572 </tr>
574 <tr>
575 <td>
576 <pre><b>virtual</b>
577 ~cc_hash_assoc_cntnr
578 ()</pre>
581 </td>
583 <td>
584 <p>Destructor.</p>
587 </td>
589 </tr>
591 <tr>
592 <td>
593 <pre><font color = "olive">cc_hash_assoc_cntnr</font> &amp;
594 <b>operator</b>=
595 (<b>const</b> <font color = "olive">cc_hash_assoc_cntnr</font> &amp;r_other)</pre>
598 </td>
600 <td>
601 <p>Assignment operator.</p>
604 </td>
606 </tr>
608 <tr>
609 <td>
610 <pre><b>void</b>
611 swap
612 (<font color = "olive">cc_hash_assoc_cntnr</font> &amp;r_other)</pre>
615 </td>
617 <td>
618 <p>Swaps content.</p>
621 </td>
623 </tr>
625 </table>
627 <h2>
628 <a name = "link5">Policy access methods.
629 </a>
631 </h2>
633 <table WIDTH = "100%" BORDER = "1">
634 <TR><TD Width = "45%" ALIGN = "left"><b>Method</b></TD><TD Width = "55%" ALIGN = "left"><b>Description</b></TD></TR>
637 <tr>
638 <td>
639 <pre><a href = "#comb_hash_fn3735929798">comb_hash_fn</a> &amp;
640 get_comb_hash_fn
641 ()</pre>
644 </td>
646 <td>
647 <p>Access to the <a href = "#comb_hash_fn3735929798"><tt>comb_hash_fn</tt></a> object.</p>
650 </td>
652 </tr>
654 <tr>
655 <td>
656 <pre><b>const</b> <a href = "#comb_hash_fn3735929798">comb_hash_fn</a> &amp;
657 get_comb_hash_fn
658 () <b>const</b></pre>
661 </td>
663 <td>
664 <p>Const access to the <a href = "#comb_hash_fn3735929798"><tt>comb_hash_fn</tt></a> object.</p>
667 </td>
669 </tr>
671 </table>
675 </body>
677 </html>