2021-10-05 21:37:46 +02:00

447 lines
14 KiB
HTML
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Examples</title>
<link rel="stylesheet" href="../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../index.html" title="Chapter 1. Boost.Bimap">
<link rel="up" href="../index.html" title="Chapter 1. Boost.Bimap">
<link rel="prev" href="performance.html" title="Performance">
<link rel="next" href="examples/simple_bimap.html" title="Simple Bimap">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../boost.png"></td>
<td align="center"><a href="../../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<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>
</div>
<div class="section">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="boost_bimap.examples"></a><a class="link" href="examples.html" title="Examples">Examples</a>
</h2></div></div></div>
<div class="toc"><dl class="toc">
<dt><span class="section"><a href="examples.html#boost_bimap.examples.examples_list">Examples list</a></span></dt>
<dt><span class="section"><a href="examples/simple_bimap.html">Simple Bimap</a></span></dt>
<dt><span class="section"><a href="examples/mighty_bimap.html">Mighty Bimap</a></span></dt>
<dt><span class="section"><a href="examples/multiindex_to_bimap_path___bidirectional_map.html">MultiIndex
to Bimap Path - Bidirectional Map</a></span></dt>
<dt><span class="section"><a href="examples/multiindex_to_bimap_path___hashed_indices.html">MultiIndex
to Bimap Path - Hashed indices</a></span></dt>
</dl></div>
<div class="section">
<div class="titlepage"><div><div><h3 class="title">
<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>
</h3></div></div></div>
<p>
In the folder <a href="../../../example" target="_top">libs/bimap/example</a> you can
find all the examples used in bimap documentation. Here is a list of them:
</p>
<div class="table">
<a name="boost_bimap.examples.examples_list.t0"></a><p class="title"><b>Table 1.7. Tutorial examples</b></p>
<div class="table-contents"><table class="table" summary="Tutorial examples">
<colgroup>
<col>
<col>
</colgroup>
<thead><tr>
<th>
<p>
Program
</p>
</th>
<th>
<p>
Description
</p>
</th>
</tr></thead>
<tbody>
<tr>
<td>
<p>
<a href="../../../example/simple_bimap.cpp" target="_top">simple_bimap.cpp </a>
</p>
</td>
<td>
<p>
Soccer world cup example
</p>
</td>
</tr>
<tr>
<td>
<p>
<a href="../../../example/tagged_simple_bimap.cpp" target="_top">tagged_simple_bimap.cpp
</a>
</p>
</td>
<td>
<p>
Soccer world cup example using user defined names
</p>
</td>
</tr>
<tr>
<td>
<p>
<a href="../../../example/step_by_step.cpp" target="_top">step_by_step.cpp </a>
</p>
</td>
<td>
<p>
Basic example of the three views of bimap
</p>
</td>
</tr>
<tr>
<td>
<p>
<a href="../../../example/population_bimap.cpp" target="_top">population_bimap.cpp
</a>
</p>
</td>
<td>
<p>
Countries populations, using <code class="computeroutput"><span class="identifier">unordered_set_of</span></code>
and <code class="computeroutput"><span class="identifier">multiset_of</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
<a href="../../../example/repetitions_counter.cpp" target="_top">repetitions_counter.cpp
</a>
</p>
</td>
<td>
<p>
Word repetitions counter, using <code class="computeroutput"><span class="identifier">unordered_set_of</span></code>
and <code class="computeroutput"><span class="identifier">list_of</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
<a href="../../../example/mighty_bimap.cpp" target="_top">mighty_bimap.cpp </a>
</p>
</td>
<td>
<p>
Dictionary using <code class="computeroutput"><span class="identifier">list_of_relation</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
<a href="../../../example/user_defined_names.cpp" target="_top">user_defined_names.cpp
</a>
</p>
</td>
<td>
<p>
Equivalence between code with tagged and untagged code
</p>
</td>
</tr>
<tr>
<td>
<p>
<a href="../../../example/standard_map_comparison.cpp" target="_top">standard_map_comparison.cpp
</a>
</p>
</td>
<td>
<p>
Comparison between standard maps and bimap map views
</p>
</td>
</tr>
<tr>
<td>
<p>
<a href="../../../example/at_function_examples.cpp" target="_top">at_function_examples.cpp
</a>
</p>
</td>
<td>
<p>
Functions <code class="computeroutput"><span class="identifier">at</span><span class="special">(</span><span class="identifier">key</span><span class="special">)</span></code>
and <code class="computeroutput"><span class="keyword">operator</span><span class="special">[](</span><span class="identifier">key</span><span class="special">)</span></code>
examples
</p>
</td>
</tr>
<tr>
<td>
<p>
<a href="../../../example/tutorial_modify_and_replace.cpp" target="_top">tutorial_modify_and_replace.cpp
</a>
</p>
</td>
<td>
<p>
<code class="computeroutput"><span class="identifier">modify</span></code> and <code class="computeroutput"><span class="identifier">replace</span></code> examples
</p>
</td>
</tr>
<tr>
<td>
<p>
<a href="../../../example/tutorial_range.cpp" target="_top">tutorial_range.cpp
</a>
</p>
</td>
<td>
<p>
<code class="computeroutput"><span class="identifier">range</span><span class="special">()</span></code>
tutorial
</p>
</td>
</tr>
<tr>
<td>
<p>
<a href="../../../example/tutorial_info_hook.cpp" target="_top">tutorial_info_hook.cpp
</a>
</p>
</td>
<td>
<p>
Additional information hooking
</p>
</td>
</tr>
<tr>
<td>
<p>
<a href="../../../example/unconstrained_collection.cpp" target="_top">unconstrained_collection.cpp
</a>
</p>
</td>
<td>
<p>
Using <code class="computeroutput"><span class="identifier">unconstrained_set_of</span></code>
collection type
</p>
</td>
</tr>
</tbody>
</table></div>
</div>
<br class="table-break"><div class="table">
<a name="boost_bimap.examples.examples_list.t1"></a><p class="title"><b>Table 1.8. Bimap and Boost examples</b></p>
<div class="table-contents"><table class="table" summary="Bimap and Boost examples">
<colgroup>
<col>
<col>
</colgroup>
<thead><tr>
<th>
<p>
Program
</p>
</th>
<th>
<p>
Description
</p>
</th>
</tr></thead>
<tbody>
<tr>
<td>
<p>
<a href="../../../example/bimap_and_boost/assign.cpp" target="_top">assign.cpp
</a>
</p>
</td>
<td>
<p>
Bimap and Boost.Assign: Methods to insert elements
</p>
</td>
</tr>
<tr>
<td>
<p>
<a href="../../../example/bimap_and_boost/lambda.cpp" target="_top">lambda.cpp
</a>
</p>
</td>
<td>
<p>
Bimap and Boost.Lambda: new lambda placeholders
</p>
</td>
</tr>
<tr>
<td>
<p>
<a href="../../../example/bimap_and_boost/property_map.cpp" target="_top">property_map.cpp
</a>
</p>
</td>
<td>
<p>
Bimap and Boost.PropertyMap: PropertyMap support
</p>
</td>
</tr>
<tr>
<td>
<p>
<a href="../../../example/bimap_and_boost/range.cpp" target="_top">range.cpp
</a>
</p>
</td>
<td>
<p>
Bimap and Boost.Range: Using bimaps in the new range framework
</p>
</td>
</tr>
<tr>
<td>
<p>
<a href="../../../example/bimap_and_boost/foreach.cpp" target="_top">foreach.cpp
</a>
</p>
</td>
<td>
<p>
Bimap and Boost.Foreach: Iterating over bimaps
</p>
</td>
</tr>
<tr>
<td>
<p>
<a href="../../../example/bimap_and_boost/typeof.cpp" target="_top">typeof.cpp
</a>
</p>
</td>
<td>
<p>
Bimap and Boost.Typeof: using BOOST_AUTO while we wait for C++0x
</p>
</td>
</tr>
<tr>
<td>
<p>
<a href="../../../example/bimap_and_boost/xpressive.cpp" target="_top">xpressive.cpp
</a>
</p>
</td>
<td>
<p>
Bimap and Boost.Xpressive: Inserting elements in a bimap
</p>
</td>
</tr>
<tr>
<td>
<p>
<a href="../../../example/bimap_and_boost/serialization.cpp" target="_top">serialization.cpp:
</a>
</p>
</td>
<td>
<p>
Bimap and Boost.Serialization: Load and save bimaps and iterators
</p>
</td>
</tr>
</tbody>
</table></div>
</div>
<br class="table-break"><div class="table">
<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>
<div class="table-contents"><table class="table" summary="Boost.MultiIndex to Boost.Bimap path examples">
<colgroup>
<col>
<col>
</colgroup>
<thead><tr>
<th>
<p>
Program
</p>
</th>
<th>
<p>
Description
</p>
</th>
</tr></thead>
<tbody>
<tr>
<td>
<p>
<a href="../../../example/mi_to_b_path/bidirectional_map.cpp" target="_top">bidirectional_map.cpp
</a>
</p>
</td>
<td>
<p>
Boost.MultiIndex to Boost.Bimap path example
</p>
</td>
</tr>
<tr>
<td>
<p>
<a href="../../../example/mi_to_b_path/hashed_indices.cpp" target="_top">hashed_indices.cpp
</a>
</p>
</td>
<td>
<p>
Boost.MultiIndex to Boost.Bimap path example
</p>
</td>
</tr>
<tr>
<td>
<p>
<a href="../../../example/mi_to_b_path/tagged_bidirectional_map.cpp" target="_top">tagged_bidirectional_map.cpp
</a>
</p>
</td>
<td>
<p>
Boost.MultiIndex to Boost.Bimap path example
</p>
</td>
</tr>
</tbody>
</table></div>
</div>
<br class="table-break">
</div>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2006-2012 Matias Capeletto<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<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>
</div>
</body>
</html>