2007-11-06 12:13:52 +00:00
|
|
|
<html>
|
|
|
|
<head>
|
2009-12-11 21:01:22 +00:00
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
2007-11-06 12:13:52 +00:00
|
|
|
<title>joint_view</title>
|
2010-07-04 19:20:50 +00:00
|
|
|
<link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css">
|
|
|
|
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
2009-12-11 21:01:22 +00:00
|
|
|
<link rel="home" href="../../index.html" title="Chapter 1. Fusion 2.0">
|
2007-11-06 12:13:52 +00:00
|
|
|
<link rel="up" href="../view.html" title="View">
|
2009-09-25 00:21:53 +00:00
|
|
|
<link rel="prev" href="iterator_range.html" title="iterator_range">
|
2007-11-06 12:13:52 +00:00
|
|
|
<link rel="next" href="zip_view.html" title="zip_view">
|
|
|
|
</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>
|
2008-07-17 23:59:22 +00:00
|
|
|
<td align="center"><a href="../../../../../../index.html">Home</a></td>
|
2010-07-04 19:20:50 +00:00
|
|
|
<td align="center"><a href="../../../../../../libs/libraries.htm">Libraries</a></td>
|
2008-07-17 23:59:22 +00:00
|
|
|
<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>
|
2007-11-06 12:13:52 +00:00
|
|
|
<td align="center"><a href="../../../../../../more/index.htm">More</a></td>
|
|
|
|
</tr></table>
|
|
|
|
<hr>
|
|
|
|
<div class="spirit-nav">
|
2010-07-04 19:20:50 +00:00
|
|
|
<a accesskey="p" href="iterator_range.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../view.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="zip_view.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
|
2007-11-06 12:13:52 +00:00
|
|
|
</div>
|
2010-06-03 08:29:23 +00:00
|
|
|
<div class="section">
|
2009-09-25 00:21:53 +00:00
|
|
|
<div class="titlepage"><div><div><h3 class="title">
|
|
|
|
<a name="fusion.view.joint_view"></a><a class="link" href="joint_view.html" title="joint_view">joint_view</a>
|
|
|
|
</h3></div></div></div>
|
|
|
|
<a name="fusion.view.joint_view.description"></a><h5>
|
2010-10-10 20:23:28 +00:00
|
|
|
<a name="id951920"></a>
|
2009-09-25 00:21:53 +00:00
|
|
|
<a class="link" href="joint_view.html#fusion.view.joint_view.description">Description</a>
|
|
|
|
</h5>
|
2007-11-06 12:13:52 +00:00
|
|
|
<p>
|
2009-09-25 00:21:53 +00:00
|
|
|
<code class="computeroutput"><span class="identifier">joint_view</span></code> presents a view
|
2007-11-06 12:13:52 +00:00
|
|
|
which is a concatenation of two sequences.
|
|
|
|
</p>
|
2009-09-25 00:21:53 +00:00
|
|
|
<a name="fusion.view.joint_view.header"></a><h5>
|
2010-10-10 20:23:28 +00:00
|
|
|
<a name="id951944"></a>
|
2009-09-25 00:21:53 +00:00
|
|
|
<a class="link" href="joint_view.html#fusion.view.joint_view.header">Header</a>
|
|
|
|
</h5>
|
2009-02-22 06:27:12 +00:00
|
|
|
<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">view</span><span class="special">/</span><span class="identifier">joint_view</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
2007-11-06 12:13:52 +00:00
|
|
|
<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">include</span><span class="special">/</span><span class="identifier">joint_view</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
|
|
|
</pre>
|
2009-09-25 00:21:53 +00:00
|
|
|
<a name="fusion.view.joint_view.synopsis"></a><h5>
|
2010-10-10 20:23:28 +00:00
|
|
|
<a name="id952052"></a>
|
2009-09-25 00:21:53 +00:00
|
|
|
<a class="link" href="joint_view.html#fusion.view.joint_view.synopsis">Synopsis</a>
|
|
|
|
</h5>
|
2009-02-22 06:27:12 +00:00
|
|
|
<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">Sequence1</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence2</span><span class="special">></span>
|
2007-11-06 12:13:52 +00:00
|
|
|
<span class="keyword">struct</span> <span class="identifier">joint_view</span><span class="special">;</span>
|
|
|
|
</pre>
|
2009-09-25 00:21:53 +00:00
|
|
|
<a name="fusion.view.joint_view.template_parameters"></a><h5>
|
2010-10-10 20:23:28 +00:00
|
|
|
<a name="id952117"></a>
|
2009-09-25 00:21:53 +00:00
|
|
|
<a class="link" href="joint_view.html#fusion.view.joint_view.template_parameters">Template parameters</a>
|
|
|
|
</h5>
|
2007-11-06 12:13:52 +00:00
|
|
|
<div class="informaltable"><table class="table">
|
|
|
|
<colgroup>
|
|
|
|
<col>
|
|
|
|
<col>
|
|
|
|
<col>
|
|
|
|
</colgroup>
|
|
|
|
<thead><tr>
|
2009-09-25 00:21:53 +00:00
|
|
|
<th>
|
2010-04-10 18:55:44 +00:00
|
|
|
<p>
|
|
|
|
Parameter
|
|
|
|
</p>
|
2009-09-25 00:21:53 +00:00
|
|
|
</th>
|
|
|
|
<th>
|
2010-04-10 18:55:44 +00:00
|
|
|
<p>
|
|
|
|
Description
|
|
|
|
</p>
|
2009-09-25 00:21:53 +00:00
|
|
|
</th>
|
|
|
|
<th>
|
2010-04-10 18:55:44 +00:00
|
|
|
<p>
|
|
|
|
Default
|
|
|
|
</p>
|
2009-09-25 00:21:53 +00:00
|
|
|
</th>
|
2007-11-06 12:13:52 +00:00
|
|
|
</tr></thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
2009-09-25 00:21:53 +00:00
|
|
|
<td>
|
2010-04-10 18:55:44 +00:00
|
|
|
<p>
|
|
|
|
<code class="computeroutput"><span class="identifier">Sequence1</span></code>
|
|
|
|
</p>
|
2009-09-25 00:21:53 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
2010-04-10 18:55:44 +00:00
|
|
|
<p>
|
|
|
|
A <a class="link" href="../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward
|
|
|
|
Sequence</a>
|
|
|
|
</p>
|
2009-09-25 00:21:53 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
</td>
|
2007-11-06 12:13:52 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2009-09-25 00:21:53 +00:00
|
|
|
<td>
|
2010-04-10 18:55:44 +00:00
|
|
|
<p>
|
|
|
|
<code class="computeroutput"><span class="identifier">Sequence2</span></code>
|
|
|
|
</p>
|
2009-09-25 00:21:53 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
2010-04-10 18:55:44 +00:00
|
|
|
<p>
|
|
|
|
A <a class="link" href="../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward
|
|
|
|
Sequence</a>
|
|
|
|
</p>
|
2009-09-25 00:21:53 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
</td>
|
2007-11-06 12:13:52 +00:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table></div>
|
2009-09-25 00:21:53 +00:00
|
|
|
<a name="fusion.view.joint_view.model_of"></a><h5>
|
2010-10-10 20:23:28 +00:00
|
|
|
<a name="id952239"></a>
|
2009-09-25 00:21:53 +00:00
|
|
|
<a class="link" href="joint_view.html#fusion.view.joint_view.model_of">Model of</a>
|
|
|
|
</h5>
|
2009-10-30 00:19:19 +00:00
|
|
|
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
|
|
|
|
<li class="listitem">
|
2010-06-13 01:45:12 +00:00
|
|
|
<a class="link" href="../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward Sequence</a>
|
|
|
|
</li>
|
|
|
|
<li class="listitem">
|
|
|
|
<a class="link" href="../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative
|
|
|
|
Sequence</a> if <code class="computeroutput"><span class="identifier">Sequence1</span></code>
|
|
|
|
and <code class="computeroutput"><span class="identifier">Sequence2</span></code> implement
|
|
|
|
the <a class="link" href="../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative
|
|
|
|
Sequence</a> model.
|
|
|
|
</li>
|
2009-10-30 00:19:19 +00:00
|
|
|
</ul></div>
|
2010-06-03 08:29:23 +00:00
|
|
|
<div class="variablelist">
|
2007-11-06 12:13:52 +00:00
|
|
|
<p class="title"><b>Notation</b></p>
|
|
|
|
<dl>
|
2009-09-25 00:21:53 +00:00
|
|
|
<dt><span class="term"><code class="computeroutput"><span class="identifier">JV</span></code></span></dt>
|
2007-11-06 12:13:52 +00:00
|
|
|
<dd><p>
|
2010-04-10 18:55:44 +00:00
|
|
|
A <code class="computeroutput"><span class="identifier">joint_view</span></code> type
|
|
|
|
</p></dd>
|
2009-09-25 00:21:53 +00:00
|
|
|
<dt><span class="term"><code class="computeroutput"><span class="identifier">s1</span></code></span></dt>
|
2007-11-06 12:13:52 +00:00
|
|
|
<dd><p>
|
2010-04-10 18:55:44 +00:00
|
|
|
An instance of <code class="computeroutput"><span class="identifier">Sequence1</span></code>
|
|
|
|
</p></dd>
|
2009-09-25 00:21:53 +00:00
|
|
|
<dt><span class="term"><code class="computeroutput"><span class="identifier">s2</span></code></span></dt>
|
2007-11-06 12:13:52 +00:00
|
|
|
<dd><p>
|
2010-04-10 18:55:44 +00:00
|
|
|
An instance of <code class="computeroutput"><span class="identifier">Sequence2</span></code>
|
|
|
|
</p></dd>
|
|
|
|
<dt><span class="term"><code class="computeroutput"><span class="identifier">jv</span></code>, <code class="computeroutput"><span class="identifier">jv2</span></code></span></dt>
|
2007-11-06 12:13:52 +00:00
|
|
|
<dd><p>
|
2010-04-10 18:55:44 +00:00
|
|
|
Instances of <code class="computeroutput"><span class="identifier">joint_view</span></code>
|
|
|
|
</p></dd>
|
2007-11-06 12:13:52 +00:00
|
|
|
</dl>
|
|
|
|
</div>
|
2009-09-25 00:21:53 +00:00
|
|
|
<a name="fusion.view.joint_view.expression_semantics"></a><h5>
|
2010-10-10 20:23:28 +00:00
|
|
|
<a name="id952419"></a>
|
2009-09-25 00:21:53 +00:00
|
|
|
<a class="link" href="joint_view.html#fusion.view.joint_view.expression_semantics">Expression Semantics</a>
|
|
|
|
</h5>
|
2007-11-06 12:13:52 +00:00
|
|
|
<p>
|
|
|
|
Semantics of an expression is defined only where it differs from, or is not
|
2009-10-30 00:19:19 +00:00
|
|
|
defined in the implemented models.
|
2007-11-06 12:13:52 +00:00
|
|
|
</p>
|
|
|
|
<div class="informaltable"><table class="table">
|
|
|
|
<colgroup>
|
|
|
|
<col>
|
|
|
|
<col>
|
|
|
|
</colgroup>
|
|
|
|
<thead><tr>
|
2009-09-25 00:21:53 +00:00
|
|
|
<th>
|
2010-04-10 18:55:44 +00:00
|
|
|
<p>
|
|
|
|
Expression
|
|
|
|
</p>
|
2009-09-25 00:21:53 +00:00
|
|
|
</th>
|
|
|
|
<th>
|
2010-04-10 18:55:44 +00:00
|
|
|
<p>
|
|
|
|
Semantics
|
|
|
|
</p>
|
2009-09-25 00:21:53 +00:00
|
|
|
</th>
|
2007-11-06 12:13:52 +00:00
|
|
|
</tr></thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
2009-09-25 00:21:53 +00:00
|
|
|
<td>
|
2010-04-10 18:55:44 +00:00
|
|
|
<p>
|
|
|
|
<code class="computeroutput"><span class="identifier">JV</span><span class="special">(</span><span class="identifier">s1</span><span class="special">,</span>
|
|
|
|
<span class="identifier">s2</span><span class="special">)</span></code>
|
|
|
|
</p>
|
2009-09-25 00:21:53 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
2010-04-10 18:55:44 +00:00
|
|
|
<p>
|
|
|
|
Creates a <code class="computeroutput"><span class="identifier">joint_view</span></code>
|
|
|
|
given sequences, <code class="computeroutput"><span class="identifier">s1</span></code>
|
|
|
|
and <code class="computeroutput"><span class="identifier">s2</span></code>.
|
|
|
|
</p>
|
2009-09-25 00:21:53 +00:00
|
|
|
</td>
|
2007-11-06 12:13:52 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2009-09-25 00:21:53 +00:00
|
|
|
<td>
|
2010-04-10 18:55:44 +00:00
|
|
|
<p>
|
|
|
|
<code class="computeroutput"><span class="identifier">JV</span><span class="special">(</span><span class="identifier">jv</span><span class="special">)</span></code>
|
|
|
|
</p>
|
2009-09-25 00:21:53 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
2010-04-10 18:55:44 +00:00
|
|
|
<p>
|
|
|
|
Copy constructs a <code class="computeroutput"><span class="identifier">joint_view</span></code>
|
|
|
|
from another <code class="computeroutput"><span class="identifier">joint_view</span></code>,
|
|
|
|
<code class="computeroutput"><span class="identifier">jv</span></code>.
|
|
|
|
</p>
|
2009-09-25 00:21:53 +00:00
|
|
|
</td>
|
2007-11-06 12:13:52 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2009-09-25 00:21:53 +00:00
|
|
|
<td>
|
2010-04-10 18:55:44 +00:00
|
|
|
<p>
|
|
|
|
<code class="computeroutput"><span class="identifier">jv</span> <span class="special">=</span>
|
|
|
|
<span class="identifier">jv2</span></code>
|
|
|
|
</p>
|
2009-09-25 00:21:53 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
2010-04-10 18:55:44 +00:00
|
|
|
<p>
|
|
|
|
Assigns to a <code class="computeroutput"><span class="identifier">joint_view</span></code>,
|
|
|
|
<code class="computeroutput"><span class="identifier">jv</span></code>, from another
|
|
|
|
<code class="computeroutput"><span class="identifier">joint_view</span></code>, <code class="computeroutput"><span class="identifier">jv2</span></code>.
|
|
|
|
</p>
|
2009-09-25 00:21:53 +00:00
|
|
|
</td>
|
2007-11-06 12:13:52 +00:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table></div>
|
2009-09-25 00:21:53 +00:00
|
|
|
<a name="fusion.view.joint_view.example"></a><h5>
|
2010-10-10 20:23:28 +00:00
|
|
|
<a name="id952658"></a>
|
2009-09-25 00:21:53 +00:00
|
|
|
<a class="link" href="joint_view.html#fusion.view.joint_view.example">Example</a>
|
|
|
|
</h5>
|
|
|
|
<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"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">></span> <span class="identifier">v1</span><span class="special">(</span><span class="number">3</span><span class="special">,</span> <span class="char">'x'</span><span class="special">);</span>
|
|
|
|
<a class="link" href="../container/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><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">int</span><span class="special">></span> <span class="identifier">v2</span><span class="special">(</span><span class="string">"hello"</span><span class="special">,</span> <span class="number">123</span><span class="special">);</span>
|
2007-11-06 12:13:52 +00:00
|
|
|
<span class="identifier">joint_view</span><span class="special"><</span>
|
2009-09-25 00:21:53 +00:00
|
|
|
<a class="link" href="../container/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">></span>
|
|
|
|
<span class="special">,</span> <a class="link" href="../container/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><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">int</span><span class="special">></span>
|
2007-11-06 12:13:52 +00:00
|
|
|
<span class="special">></span> <span class="identifier">view</span><span class="special">(</span><span class="identifier">v1</span><span class="special">,</span> <span class="identifier">v2</span><span class="special">);</span>
|
|
|
|
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">view</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>
|
2009-12-11 21:01:22 +00:00
|
|
|
<td align="right"><div class="copyright-footer">Copyright © 2001-2007 Joel de Guzman, Dan Marsden, Tobias
|
2007-11-07 02:12:28 +00:00
|
|
|
Schwinger<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>)
|
2007-11-14 10:17:09 +00:00
|
|
|
</p>
|
|
|
|
</div></td>
|
2007-11-06 12:13:52 +00:00
|
|
|
</tr></table>
|
|
|
|
<hr>
|
|
|
|
<div class="spirit-nav">
|
2010-07-04 19:20:50 +00:00
|
|
|
<a accesskey="p" href="iterator_range.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../view.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="zip_view.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
|
2007-11-06 12:13:52 +00:00
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|