forked from boostorg/fusion
adding fusion docs and tests
[SVN r34920]
This commit is contained in:
120
doc/html/fusion/sequences/operators/i_o/in.html
Normal file
120
doc/html/fusion/sequences/operators/i_o/in.html
Normal file
@ -0,0 +1,120 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>in</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
|
||||
<link rel="up" href="../i_o.html" title="I/O">
|
||||
<link rel="prev" href="../i_o.html" title="I/O">
|
||||
<link rel="next" href="out.html" title="out">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%">
|
||||
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td>
|
||||
<td align="center"><a href="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../i_o.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../i_o.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="out.html"><img src="../../../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.operators.i_o.in"></a><a href="in.html" title="in">in</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.operators.i_o.in.description"></a><h6>
|
||||
<a name="id538340"></a>
|
||||
<a href="in.html#fusion.sequences.operators.i_o.in.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Read a <a href="../../../sequences.html" title="Sequences">Sequence</a> from an input
|
||||
stream.
|
||||
</p>
|
||||
<a name="fusion.sequences.operators.i_o.in.synopsis"></a><h6>
|
||||
<a name="id538379"></a>
|
||||
<a href="in.html#fusion.sequences.operators.i_o.in.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">IStream</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">></span>
|
||||
<span class="identifier">IStream</span><span class="special">&</span>
|
||||
<span class="keyword">operator</span><span class="special">>>(</span><span class="identifier">IStream</span><span class="special">&</span> <span class="identifier">is</span><span class="special">,</span> <span class="identifier">Sequence</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.operators.i_o.in.parameters"></a><h6>
|
||||
<a name="id538525"></a>
|
||||
<a href="in.html#fusion.sequences.operators.i_o.in.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable">
|
||||
<h4>
|
||||
<a name="id538546"></a>
|
||||
</h4>
|
||||
<table class="table">
|
||||
<colgroup>
|
||||
<col>
|
||||
<col>
|
||||
<col>
|
||||
</colgroup>
|
||||
<thead><tr>
|
||||
<th>Parameter</th>
|
||||
<th>Requirement</th>
|
||||
<th>Description</th>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>is</td>
|
||||
<td>An input stream.</td>
|
||||
<td>Stream to
|
||||
extract information from.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>seq</td>
|
||||
<td>A <a href="../../../sequences.html" title="Sequences">Sequence</a>.</td>
|
||||
<td>The
|
||||
sequence to read.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<a name="fusion.sequences.operators.i_o.in.expression_semantics"></a><h6>
|
||||
<a name="id538623"></a>
|
||||
<a href="in.html#fusion.sequences.operators.i_o.in.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">is</span> <span class="special">>></span> <span class="identifier">seq</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: IStream&
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: For each element, <tt class="computeroutput"><span class="identifier">e</span></tt>, in sequence, <tt class="computeroutput"><span class="identifier">seq</span></tt>,
|
||||
call <tt class="computeroutput"><span class="identifier">is</span><EFBFBD><span class="special">>></span><EFBFBD><span class="identifier">e</span></tt>.
|
||||
</p>
|
||||
<a name="fusion.sequences.operators.i_o.in.header"></a><h6>
|
||||
<a name="id538740"></a>
|
||||
<a href="in.html#fusion.sequences.operators.i_o.in.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">io</span><span class="special">/</span><span class="identifier">in</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.operators.i_o.in.example"></a><h6>
|
||||
<a name="id538843"></a>
|
||||
<a href="in.html#fusion.sequences.operators.i_o.in.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">,</span> <span class="keyword">char</span><span class="special">></span> <span class="identifier">v</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cin</span> <span class="special">>></span> <span class="identifier">v</span><span class="special">;</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><small>Copyright <20> 2001-2005 Joel de Guzman, Dan Marsden</small></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../i_o.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../i_o.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="out.html"><img src="../../../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
119
doc/html/fusion/sequences/operators/i_o/out.html
Normal file
119
doc/html/fusion/sequences/operators/i_o/out.html
Normal file
@ -0,0 +1,119 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>out</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
|
||||
<link rel="up" href="../i_o.html" title="I/O">
|
||||
<link rel="prev" href="in.html" title="in">
|
||||
<link rel="next" href="../comparison.html" title="Comparison">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%">
|
||||
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td>
|
||||
<td align="center"><a href="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="in.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../i_o.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="../comparison.html"><img src="../../../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.operators.i_o.out"></a><a href="out.html" title="out">out</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.operators.i_o.out.description"></a><h6>
|
||||
<a name="id539002"></a>
|
||||
<a href="out.html#fusion.sequences.operators.i_o.out.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Write a <a href="../../../sequences.html" title="Sequences">Sequence</a> to an output
|
||||
stream.
|
||||
</p>
|
||||
<a name="fusion.sequences.operators.i_o.out.synopsis"></a><h6>
|
||||
<a name="id539041"></a>
|
||||
<a href="out.html#fusion.sequences.operators.i_o.out.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">OStream</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">></span>
|
||||
<span class="identifier">OStream</span><span class="special">&</span>
|
||||
<span class="keyword">operator</span><span class="special"><<(</span><span class="identifier">OStream</span><span class="special">&</span> <span class="identifier">os</span><span class="special">,</span> <span class="identifier">Sequence</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.operators.i_o.out.parameters"></a><h6>
|
||||
<a name="id539186"></a>
|
||||
<a href="out.html#fusion.sequences.operators.i_o.out.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable">
|
||||
<h4>
|
||||
<a name="id539207"></a>
|
||||
</h4>
|
||||
<table class="table">
|
||||
<colgroup>
|
||||
<col>
|
||||
<col>
|
||||
<col>
|
||||
</colgroup>
|
||||
<thead><tr>
|
||||
<th>Parameter</th>
|
||||
<th>Requirement</th>
|
||||
<th>Description</th>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>os</td>
|
||||
<td>An output stream.</td>
|
||||
<td>Stream
|
||||
to write information to.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>seq</td>
|
||||
<td>A <a href="../../../sequences.html" title="Sequences">Sequence</a>.</td>
|
||||
<td>The
|
||||
sequence to write.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<a name="fusion.sequences.operators.i_o.out.expression_semantics"></a><h6>
|
||||
<a name="id539283"></a>
|
||||
<a href="out.html#fusion.sequences.operators.i_o.out.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">os</span> <span class="special"><<</span> <span class="identifier">seq</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: OStream&
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: For each element, <tt class="computeroutput"><span class="identifier">e</span></tt>, in sequence, <tt class="computeroutput"><span class="identifier">seq</span></tt>,
|
||||
call <tt class="computeroutput"><span class="identifier">os</span><EFBFBD><span class="special"><<</span><EFBFBD><span class="identifier">e</span></tt>.
|
||||
</p>
|
||||
<a name="fusion.sequences.operators.i_o.out.header"></a><h6>
|
||||
<a name="id539399"></a>
|
||||
<a href="out.html#fusion.sequences.operators.i_o.out.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">io</span><span class="special">/</span><span class="identifier">out</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.operators.i_o.out.example"></a><h6>
|
||||
<a name="id539503"></a>
|
||||
<a href="out.html#fusion.sequences.operators.i_o.out.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <a href="../../generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">123</span><span class="special">,</span> <span class="string">"Hello"</span><span class="special">,</span> <span class="char">'x'</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><small>Copyright <20> 2001-2005 Joel de Guzman, Dan Marsden</small></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="in.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../i_o.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="../comparison.html"><img src="../../../../images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user