]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | <html> |
2 | <head> | |
3 | <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> | |
4 | <title>Examples</title> | |
5 | <link rel="stylesheet" href="../boostbook.css" type="text/css"> | |
6 | <meta name="generator" content="DocBook XSL Stylesheets V1.77.1"> | |
7 | <link rel="home" href="../index.html" title="Chapter 1. Boost.Bimap"> | |
8 | <link rel="up" href="../index.html" title="Chapter 1. Boost.Bimap"> | |
9 | <link rel="prev" href="performance.html" title="Performance"> | |
10 | <link rel="next" href="examples/simple_bimap.html" title="Simple Bimap"> | |
11 | </head> | |
12 | <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> | |
13 | <table cellpadding="2" width="100%"><tr> | |
14 | <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../boost.png"></td> | |
15 | <td align="center"><a href="../../../../../index.html">Home</a></td> | |
16 | <td align="center"><a href="../../../../../libs/libraries.htm">Libraries</a></td> | |
17 | <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> | |
18 | <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> | |
19 | <td align="center"><a href="../../../../../more/index.htm">More</a></td> | |
20 | </tr></table> | |
21 | <hr> | |
22 | <div class="spirit-nav"> | |
23 | <a accesskey="p" href="performance.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="examples/simple_bimap.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a> | |
24 | </div> | |
25 | <div class="section boost_bimap_examples"> | |
26 | <div class="titlepage"><div><div><h2 class="title" style="clear: both"> | |
27 | <a name="boost_bimap.examples"></a><a class="link" href="examples.html" title="Examples">Examples</a> | |
28 | </h2></div></div></div> | |
29 | <div class="toc"><dl> | |
30 | <dt><span class="section"><a href="examples.html#boost_bimap.examples.examples_list">Examples list</a></span></dt> | |
31 | <dt><span class="section"><a href="examples/simple_bimap.html">Simple Bimap</a></span></dt> | |
32 | <dt><span class="section"><a href="examples/mighty_bimap.html">Mighty Bimap</a></span></dt> | |
33 | <dt><span class="section"><a href="examples/multiindex_to_bimap_path___bidirectional_map.html">MultiIndex | |
34 | to Bimap Path - Bidirectional Map</a></span></dt> | |
35 | <dt><span class="section"><a href="examples/multiindex_to_bimap_path___hashed_indices.html">MultiIndex | |
36 | to Bimap Path - Hashed indices</a></span></dt> | |
37 | </dl></div> | |
38 | <div class="section boost_bimap_examples_examples_list"> | |
39 | <div class="titlepage"><div><div><h3 class="title"> | |
40 | <a name="boost_bimap.examples.examples_list"></a><a class="link" href="examples.html#boost_bimap.examples.examples_list" title="Examples list">Examples list</a> | |
41 | </h3></div></div></div> | |
42 | <p> | |
43 | In the folder <a href="../../../example" target="_top">libs/bimap/example</a> you can | |
44 | find all the examples used in bimap documentation. Here is a list of them: | |
45 | </p> | |
46 | <div class="table"> | |
47 | <a name="boost_bimap.examples.examples_list.t0"></a><p class="title"><b>Table 1.7. Tutorial examples</b></p> | |
48 | <div class="table-contents"><table class="table" summary="Tutorial examples"> | |
49 | <colgroup> | |
50 | <col> | |
51 | <col> | |
52 | </colgroup> | |
53 | <thead><tr> | |
54 | <th> | |
55 | <p> | |
56 | Program | |
57 | </p> | |
58 | </th> | |
59 | <th> | |
60 | <p> | |
61 | Description | |
62 | </p> | |
63 | </th> | |
64 | </tr></thead> | |
65 | <tbody> | |
66 | <tr> | |
67 | <td> | |
68 | <p> | |
69 | <a href="../../../example/simple_bimap.cpp" target="_top">simple_bimap.cpp </a> | |
70 | </p> | |
71 | </td> | |
72 | <td> | |
73 | <p> | |
74 | Soccer world cup example | |
75 | </p> | |
76 | </td> | |
77 | </tr> | |
78 | <tr> | |
79 | <td> | |
80 | <p> | |
81 | <a href="../../../example/tagged_simple_bimap.cpp" target="_top">tagged_simple_bimap.cpp | |
82 | </a> | |
83 | </p> | |
84 | </td> | |
85 | <td> | |
86 | <p> | |
87 | Soccer world cup example using user defined names | |
88 | </p> | |
89 | </td> | |
90 | </tr> | |
91 | <tr> | |
92 | <td> | |
93 | <p> | |
94 | <a href="../../../example/step_by_step.cpp" target="_top">step_by_step.cpp </a> | |
95 | </p> | |
96 | </td> | |
97 | <td> | |
98 | <p> | |
99 | Basic example of the three views of bimap | |
100 | </p> | |
101 | </td> | |
102 | </tr> | |
103 | <tr> | |
104 | <td> | |
105 | <p> | |
106 | <a href="../../../example/population_bimap.cpp" target="_top">population_bimap.cpp | |
107 | </a> | |
108 | </p> | |
109 | </td> | |
110 | <td> | |
111 | <p> | |
112 | Countries populations, using <code class="computeroutput"><span class="identifier">unordered_set_of</span></code> | |
113 | and <code class="computeroutput"><span class="identifier">multiset_of</span></code> | |
114 | </p> | |
115 | </td> | |
116 | </tr> | |
117 | <tr> | |
118 | <td> | |
119 | <p> | |
120 | <a href="../../../example/repetitions_counter.cpp" target="_top">repetitions_counter.cpp | |
121 | </a> | |
122 | </p> | |
123 | </td> | |
124 | <td> | |
125 | <p> | |
126 | Word repetitions counter, using <code class="computeroutput"><span class="identifier">unordered_set_of</span></code> | |
127 | and <code class="computeroutput"><span class="identifier">list_of</span></code> | |
128 | </p> | |
129 | </td> | |
130 | </tr> | |
131 | <tr> | |
132 | <td> | |
133 | <p> | |
134 | <a href="../../../example/mighty_bimap.cpp" target="_top">mighty_bimap.cpp </a> | |
135 | </p> | |
136 | </td> | |
137 | <td> | |
138 | <p> | |
139 | Dictionary using <code class="computeroutput"><span class="identifier">list_of_relation</span></code> | |
140 | </p> | |
141 | </td> | |
142 | </tr> | |
143 | <tr> | |
144 | <td> | |
145 | <p> | |
146 | <a href="../../../example/user_defined_names.cpp" target="_top">user_defined_names.cpp | |
147 | </a> | |
148 | </p> | |
149 | </td> | |
150 | <td> | |
151 | <p> | |
152 | Equivalence between code with tagged and untagged code | |
153 | </p> | |
154 | </td> | |
155 | </tr> | |
156 | <tr> | |
157 | <td> | |
158 | <p> | |
159 | <a href="../../../example/standard_map_comparison.cpp" target="_top">standard_map_comparison.cpp | |
160 | </a> | |
161 | </p> | |
162 | </td> | |
163 | <td> | |
164 | <p> | |
165 | Comparison between standard maps and bimap map views | |
166 | </p> | |
167 | </td> | |
168 | </tr> | |
169 | <tr> | |
170 | <td> | |
171 | <p> | |
172 | <a href="../../../example/at_function_examples.cpp" target="_top">at_function_examples.cpp | |
173 | </a> | |
174 | </p> | |
175 | </td> | |
176 | <td> | |
177 | <p> | |
178 | Functions <code class="computeroutput"><span class="identifier">at</span><span class="special">(</span><span class="identifier">key</span><span class="special">)</span></code> | |
179 | and <code class="computeroutput"><span class="keyword">operator</span><span class="special">[](</span><span class="identifier">key</span><span class="special">)</span></code> | |
180 | examples | |
181 | </p> | |
182 | </td> | |
183 | </tr> | |
184 | <tr> | |
185 | <td> | |
186 | <p> | |
187 | <a href="../../../example/tutorial_modify_and_replace.cpp" target="_top">tutorial_modify_and_replace.cpp | |
188 | </a> | |
189 | </p> | |
190 | </td> | |
191 | <td> | |
192 | <p> | |
193 | <code class="computeroutput"><span class="identifier">modify</span></code> and <code class="computeroutput"><span class="identifier">replace</span></code> examples | |
194 | </p> | |
195 | </td> | |
196 | </tr> | |
197 | <tr> | |
198 | <td> | |
199 | <p> | |
200 | <a href="../../../example/tutorial_range.cpp" target="_top">tutorial_range.cpp | |
201 | </a> | |
202 | </p> | |
203 | </td> | |
204 | <td> | |
205 | <p> | |
206 | <code class="computeroutput"><span class="identifier">range</span><span class="special">()</span></code> | |
207 | tutorial | |
208 | </p> | |
209 | </td> | |
210 | </tr> | |
211 | <tr> | |
212 | <td> | |
213 | <p> | |
214 | <a href="../../../example/tutorial_info_hook.cpp" target="_top">tutorial_info_hook.cpp | |
215 | </a> | |
216 | </p> | |
217 | </td> | |
218 | <td> | |
219 | <p> | |
220 | Additional information hooking | |
221 | </p> | |
222 | </td> | |
223 | </tr> | |
224 | <tr> | |
225 | <td> | |
226 | <p> | |
227 | <a href="../../../example/unconstrained_collection.cpp" target="_top">unconstrained_collection.cpp | |
228 | </a> | |
229 | </p> | |
230 | </td> | |
231 | <td> | |
232 | <p> | |
233 | Using <code class="computeroutput"><span class="identifier">unconstrained_set_of</span></code> | |
234 | collection type | |
235 | </p> | |
236 | </td> | |
237 | </tr> | |
238 | </tbody> | |
239 | </table></div> | |
240 | </div> | |
241 | <br class="table-break"><div class="table"> | |
242 | <a name="boost_bimap.examples.examples_list.t1"></a><p class="title"><b>Table 1.8. Bimap and Boost examples</b></p> | |
243 | <div class="table-contents"><table class="table" summary="Bimap and Boost examples"> | |
244 | <colgroup> | |
245 | <col> | |
246 | <col> | |
247 | </colgroup> | |
248 | <thead><tr> | |
249 | <th> | |
250 | <p> | |
251 | Program | |
252 | </p> | |
253 | </th> | |
254 | <th> | |
255 | <p> | |
256 | Description | |
257 | </p> | |
258 | </th> | |
259 | </tr></thead> | |
260 | <tbody> | |
261 | <tr> | |
262 | <td> | |
263 | <p> | |
264 | <a href="../../../example/bimap_and_boost/assign.cpp" target="_top">assign.cpp | |
265 | </a> | |
266 | </p> | |
267 | </td> | |
268 | <td> | |
269 | <p> | |
270 | Bimap and Boost.Assign: Methods to insert elements | |
271 | </p> | |
272 | </td> | |
273 | </tr> | |
274 | <tr> | |
275 | <td> | |
276 | <p> | |
277 | <a href="../../../example/bimap_and_boost/lambda.cpp" target="_top">lambda.cpp | |
278 | </a> | |
279 | </p> | |
280 | </td> | |
281 | <td> | |
282 | <p> | |
283 | Bimap and Boost.Lambda: new lambda placeholders | |
284 | </p> | |
285 | </td> | |
286 | </tr> | |
287 | <tr> | |
288 | <td> | |
289 | <p> | |
290 | <a href="../../../example/bimap_and_boost/property_map.cpp" target="_top">property_map.cpp | |
291 | </a> | |
292 | </p> | |
293 | </td> | |
294 | <td> | |
295 | <p> | |
296 | Bimap and Boost.PropertyMap: PropertyMap support | |
297 | </p> | |
298 | </td> | |
299 | </tr> | |
300 | <tr> | |
301 | <td> | |
302 | <p> | |
303 | <a href="../../../example/bimap_and_boost/range.cpp" target="_top">range.cpp | |
304 | </a> | |
305 | </p> | |
306 | </td> | |
307 | <td> | |
308 | <p> | |
309 | Bimap and Boost.Range: Using bimaps in the new range framework | |
310 | </p> | |
311 | </td> | |
312 | </tr> | |
313 | <tr> | |
314 | <td> | |
315 | <p> | |
316 | <a href="../../../example/bimap_and_boost/foreach.cpp" target="_top">foreach.cpp | |
317 | </a> | |
318 | </p> | |
319 | </td> | |
320 | <td> | |
321 | <p> | |
322 | Bimap and Boost.Foreach: Iterating over bimaps | |
323 | </p> | |
324 | </td> | |
325 | </tr> | |
326 | <tr> | |
327 | <td> | |
328 | <p> | |
329 | <a href="../../../example/bimap_and_boost/typeof.cpp" target="_top">typeof.cpp | |
330 | </a> | |
331 | </p> | |
332 | </td> | |
333 | <td> | |
334 | <p> | |
335 | Bimap and Boost.Typeof: using BOOST_AUTO while we wait for C++0x | |
336 | </p> | |
337 | </td> | |
338 | </tr> | |
339 | <tr> | |
340 | <td> | |
341 | <p> | |
342 | <a href="../../../example/bimap_and_boost/xpressive.cpp" target="_top">xpressive.cpp | |
343 | </a> | |
344 | </p> | |
345 | </td> | |
346 | <td> | |
347 | <p> | |
348 | Bimap and Boost.Xpressive: Inserting elements in a bimap | |
349 | </p> | |
350 | </td> | |
351 | </tr> | |
352 | <tr> | |
353 | <td> | |
354 | <p> | |
355 | <a href="../../../example/bimap_and_boost/serialization.cpp" target="_top">serialization.cpp: | |
356 | </a> | |
357 | </p> | |
358 | </td> | |
359 | <td> | |
360 | <p> | |
361 | Bimap and Boost.Serialization: Load and save bimaps and iterators | |
362 | </p> | |
363 | </td> | |
364 | </tr> | |
365 | </tbody> | |
366 | </table></div> | |
367 | </div> | |
368 | <br class="table-break"><div class="table"> | |
369 | <a name="boost_bimap.examples.examples_list.t2"></a><p class="title"><b>Table 1.9. Boost.MultiIndex to Boost.Bimap path examples</b></p> | |
370 | <div class="table-contents"><table class="table" summary="Boost.MultiIndex to Boost.Bimap path examples"> | |
371 | <colgroup> | |
372 | <col> | |
373 | <col> | |
374 | </colgroup> | |
375 | <thead><tr> | |
376 | <th> | |
377 | <p> | |
378 | Program | |
379 | </p> | |
380 | </th> | |
381 | <th> | |
382 | <p> | |
383 | Description | |
384 | </p> | |
385 | </th> | |
386 | </tr></thead> | |
387 | <tbody> | |
388 | <tr> | |
389 | <td> | |
390 | <p> | |
391 | <a href="../../../example/mi_to_b_path/bidirectional_map.cpp" target="_top">bidirectional_map.cpp | |
392 | </a> | |
393 | </p> | |
394 | </td> | |
395 | <td> | |
396 | <p> | |
397 | Boost.MultiIndex to Boost.Bimap path example | |
398 | </p> | |
399 | </td> | |
400 | </tr> | |
401 | <tr> | |
402 | <td> | |
403 | <p> | |
404 | <a href="../../../example/mi_to_b_path/hashed_indices.cpp" target="_top">hashed_indices.cpp | |
405 | </a> | |
406 | </p> | |
407 | </td> | |
408 | <td> | |
409 | <p> | |
410 | Boost.MultiIndex to Boost.Bimap path example | |
411 | </p> | |
412 | </td> | |
413 | </tr> | |
414 | <tr> | |
415 | <td> | |
416 | <p> | |
417 | <a href="../../../example/mi_to_b_path/tagged_bidirectional_map.cpp" target="_top">tagged_bidirectional_map.cpp | |
418 | </a> | |
419 | </p> | |
420 | </td> | |
421 | <td> | |
422 | <p> | |
423 | Boost.MultiIndex to Boost.Bimap path example | |
424 | </p> | |
425 | </td> | |
426 | </tr> | |
427 | </tbody> | |
428 | </table></div> | |
429 | </div> | |
430 | <br class="table-break"> | |
431 | </div> | |
432 | </div> | |
433 | <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> | |
434 | <td align="left"></td> | |
435 | <td align="right"><div class="copyright-footer">Copyright © 2006-2012 Matias Capeletto<p> | |
436 | Distributed under the Boost Software License, Version 1.0. (See accompanying | |
437 | file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) | |
438 | </p> | |
439 | </div></td> | |
440 | </tr></table> | |
441 | <hr> | |
442 | <div class="spirit-nav"> | |
443 | <a accesskey="p" href="performance.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="examples/simple_bimap.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a> | |
444 | </div> | |
445 | </body> | |
446 | </html> |