merged fusion from the trunk

[SVN r63560]
This commit is contained in:
Christopher Schmidt
2010-07-03 20:10:58 +00:00
parent 649770fdcd
commit 1572e0e9c3
402 changed files with 4874 additions and 5055 deletions

View File

@ -22,7 +22,7 @@
<div class="spirit-nav">
<a accesskey="p" href="introduction.html"><img src="../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="organization.html"><img src="../../../../../doc/html/images/next.png" alt="Next"></a>
</div>
<div class="section" title="Quick Start">
<div class="section">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="fusion.quick_start"></a><a class="link" href="quick_start.html" title="Quick Start">Quick Start</a>
</h2></div></div></div>
@ -34,16 +34,13 @@
</p>
<p>
For starters, we shall include all of Fusion's <a class="link" href="sequence.html" title="Sequence">Sequence</a>(s)
<sup>[<a name="id625096" href="#ftn.id625096" class="footnote">2</a>]</sup>
:
<sup>[<a name="id854024" href="#ftn.id854024" class="footnote">2</a>]</sup>:
</p>
<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">sequence</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">include</span><span class="special">/</span><span class="identifier">sequence</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre>
<p>
Let's begin with a <code class="computeroutput"><a class="link" href="container/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a></code>
<sup>[<a name="id625211" href="#ftn.id625211" class="footnote">3</a>]</sup>
:
Let's begin with a <code class="computeroutput"><a class="link" href="container/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a></code> <sup>[<a name="id854140" href="#ftn.id854140" class="footnote">3</a>]</sup>:
</p>
<pre class="programlisting"><a class="link" href="container/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&gt;</span> <span class="identifier">stuff</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="char">'x'</span><span class="special">,</span> <span class="string">"howdy"</span><span class="special">);</span>
<span class="keyword">int</span> <span class="identifier">i</span> <span class="special">=</span> <a class="link" href="sequence/intrinsic/functions/at_c.html" title="at_c"><code class="computeroutput"><span class="identifier">at_c</span></code></a><span class="special">&lt;</span><span class="number">0</span><span class="special">&gt;(</span><span class="identifier">stuff</span><span class="special">);</span>
@ -59,7 +56,7 @@
Let's see some examples.
</p>
<a name="fusion.quick_start.print_the_vector_as_xml"></a><h4>
<a name="id625527"></a>
<a name="id854455"></a>
<a class="link" href="quick_start.html#fusion.quick_start.print_the_vector_as_xml">Print the vector
as XML</a>
</h4>
@ -98,7 +95,7 @@
it calls <code class="computeroutput"><span class="identifier">print_xml</span></code>'s <code class="computeroutput"><span class="keyword">operator</span><span class="special">()</span></code> for
each element in <code class="computeroutput"><span class="identifier">stuff</span></code>.
</p>
<div class="caution" title="Caution"><table border="0" summary="Caution">
<div class="caution"><table border="0" summary="Caution">
<tr>
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Caution]" src="../../../../../doc/html/images/caution.png"></td>
<th align="left">Caution</th>
@ -114,7 +111,7 @@
print just about any Fusion <a class="link" href="sequence.html" title="Sequence">Sequence</a>.
</p>
<a name="fusion.quick_start.print_only_pointers"></a><h4>
<a name="id629304"></a>
<a name="id858851"></a>
<a class="link" href="quick_start.html#fusion.quick_start.print_only_pointers">Print only pointers</a>
</h4>
<p>
@ -146,7 +143,7 @@
Easy, right?
</p>
<a name="fusion.quick_start.associative_tuples"></a><h4>
<a name="id629577"></a>
<a name="id859125"></a>
<a class="link" href="quick_start.html#fusion.quick_start.associative_tuples">Associative tuples</a>
</h4>
<p>
@ -218,7 +215,7 @@
a <code class="computeroutput"><span class="identifier">dog</span></code> or a whole <code class="computeroutput"><span class="identifier">alternate_universe</span></code>.
</p>
<a name="fusion.quick_start.tip_of_the_iceberg"></a><h4>
<a name="id630288"></a>
<a name="id859835"></a>
<a class="link" href="quick_start.html#fusion.quick_start.tip_of_the_iceberg">Tip of the Iceberg</a>
</h4>
<p>
@ -229,16 +226,16 @@
</p>
<div class="footnotes">
<br><hr width="100" align="left">
<div class="footnote"><p><sup>[<a name="ftn.id625096" href="#id625096" class="para">2</a>] </sup>
There are finer grained header files available if you wish to have more
control over which components to include (see section <a class="link" href="organization.html" title="Organization">Orgainization</a>
for details).
</p></div>
<div class="footnote"><p><sup>[<a name="ftn.id625211" href="#id625211" class="para">3</a>] </sup>
Unless otherwise noted, components are in namespace <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">fusion</span></code>.
For the sake of simplicity, code in this quick start implies <code class="computeroutput"><span class="keyword">using</span></code> directives for the fusion components
we will be using.
</p></div>
<div class="footnote"><p><sup>[<a name="ftn.id854024" href="#id854024" class="para">2</a>] </sup>
There are finer grained header files available if you wish to have more control
over which components to include (see section <a class="link" href="organization.html" title="Organization">Orgainization</a>
for details).
</p></div>
<div class="footnote"><p><sup>[<a name="ftn.id854140" href="#id854140" class="para">3</a>] </sup>
Unless otherwise noted, components are in namespace <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">fusion</span></code>.
For the sake of simplicity, code in this quick start implies <code class="computeroutput"><span class="keyword">using</span></code> directives for the fusion components
we will be using.
</p></div>
</div>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>