forked from boostorg/fusion
fusion: merge of associative iterators/views and the new fold interface
[SVN r58618]
This commit is contained in:
@@ -1,10 +1,18 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
||||
<title>Iterator Facade</title>
|
||||
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<<<<<<< .working
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
|
||||
=======
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.1">
|
||||
<<<<<<< .working
|
||||
>>>>>>> .merge-right.r57125
|
||||
<link rel="home" href="../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
=======
|
||||
<link rel="home" href="../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
>>>>>>> .merge-right.r58299
|
||||
<link rel="up" href="../extension.html" title="Extension">
|
||||
<link rel="previous" href="sequence_facade.html" title="Sequence Facade">
|
||||
<link rel="next" href="../functional.html" title="Functional">
|
||||
@@ -22,6 +30,7 @@
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="sequence_facade.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../extension.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="../functional.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a>
|
||||
</div>
|
||||
<<<<<<< .working
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage">
|
||||
<div><div><h3 class="title">
|
||||
@@ -33,22 +42,46 @@
|
||||
<a name="id607099"></a>
|
||||
<a href="iterator_facade.html#fusion.extension.iterator_facade.description">Description</a>
|
||||
</h4>
|
||||
=======
|
||||
<div class="section" title="Iterator Facade">
|
||||
<div class="titlepage"><div><div><h3 class="title">
|
||||
<a name="fusion.extension.iterator_facade"></a><a class="link" href="iterator_facade.html" title="Iterator Facade">Iterator Facade</a>
|
||||
</h3></div></div></div>
|
||||
<a name="fusion.extension.iterator_facade.description"></a><h5>
|
||||
<a name="id823411"></a>
|
||||
<a class="link" href="iterator_facade.html#fusion.extension.iterator_facade.description">Description</a>
|
||||
</h5>
|
||||
>>>>>>> .merge-right.r57125
|
||||
<p>
|
||||
The <a href="iterator_facade.html" title="Iterator Facade"><tt class="computeroutput"><span class="identifier">iterator_facade</span></tt></a>
|
||||
template provides an intrusive mechanism for producing a conforming Fusion
|
||||
iterator.
|
||||
</p>
|
||||
<<<<<<< .working
|
||||
<a name="fusion.extension.iterator_facade.synopsis"></a><h4>
|
||||
<a name="id607146"></a>
|
||||
<a href="iterator_facade.html#fusion.extension.iterator_facade.synopsis">Synopsis</a>
|
||||
</h4>
|
||||
=======
|
||||
<a name="fusion.extension.iterator_facade.synopsis"></a><h5>
|
||||
<a name="id823438"></a>
|
||||
<a class="link" href="iterator_facade.html#fusion.extension.iterator_facade.synopsis">Synopsis</a>
|
||||
</h5>
|
||||
>>>>>>> .merge-right.r57125
|
||||
<pre class="programlisting"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> <span class="identifier">Derived</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">TravesalTag</span><span class="special">></span>
|
||||
<span class="keyword">struct</span> <span class="identifier">iterator_facade</span><span class="special">;</span>
|
||||
</pre>
|
||||
<<<<<<< .working
|
||||
<a name="fusion.extension.iterator_facade.usage"></a><h4>
|
||||
<a name="id607239"></a>
|
||||
<a href="iterator_facade.html#fusion.extension.iterator_facade.usage">Usage</a>
|
||||
</h4>
|
||||
=======
|
||||
<a name="fusion.extension.iterator_facade.usage"></a><h5>
|
||||
<a name="id823501"></a>
|
||||
<a class="link" href="iterator_facade.html#fusion.extension.iterator_facade.usage">Usage</a>
|
||||
</h5>
|
||||
>>>>>>> .merge-right.r57125
|
||||
<p>
|
||||
The user of iterator_facade derives his iterator type from a specialization
|
||||
of iterator_facade and passes the derived iterator type as the first template
|
||||
@@ -60,8 +93,33 @@
|
||||
type.
|
||||
</p>
|
||||
<div class="table">
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<<<<<<< .working
|
||||
<a name="id607264"></a><p class="title"><b>Table 1.93. Parameters</b></p>
|
||||
<table class="table" summary="Parameters">
|
||||
=======
|
||||
<a name="id858314"></a><p class="title"><b>Table 1.93. Parameters</b></p>
|
||||
=======
|
||||
<a name="id821953"></a><p class="title"><b>Table 1.97. Parameters</b></p>
|
||||
=======
|
||||
<a name="id814329"></a><p class="title"><b>Table 1.97. Parameters</b></p>
|
||||
=======
|
||||
<a name="id838126"></a><p class="title"><b>Table 1.97. Parameters</b></p>
|
||||
=======
|
||||
<a name="id826795"></a><p class="title"><b>Table 1.97. Parameters</b></p>
|
||||
=======
|
||||
<a name="id823518"></a><p class="title"><b>Table 1.97. Parameters</b></p>
|
||||
>>>>>>> .merge-right.r58559
|
||||
>>>>>>> .merge-right.r58549
|
||||
>>>>>>> .merge-right.r58299
|
||||
>>>>>>> .merge-right.r57337
|
||||
>>>>>>> .merge-right.r57242
|
||||
<div class="table-contents"><table class="table" summary="Parameters">
|
||||
>>>>>>> .merge-right.r57125
|
||||
<colgroup>
|
||||
<col>
|
||||
<col>
|
||||
@@ -96,9 +154,15 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<<<<<<< .working
|
||||
<div class="table">
|
||||
<a name="id607422"></a><p class="title"><b>Table 1.94. Key Expressions</b></p>
|
||||
<table class="table" summary="Key Expressions">
|
||||
=======
|
||||
<br class="table-break"><div class="table">
|
||||
<a name="id823639"></a><p class="title"><b>Table 1.98. Key Expressions</b></p>
|
||||
<div class="table-contents"><table class="table" summary="Key Expressions">
|
||||
>>>>>>> .merge-right.r57125
|
||||
<colgroup>
|
||||
<col>
|
||||
<col>
|
||||
@@ -268,20 +332,104 @@
|
||||
<tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">same_type</span><span class="special"><</span><span class="identifier">It1</span><span class="special">,</span> <span class="identifier">It2</span><span class="special">>::</span><span class="identifier">type</span><span class="special">()</span></tt>
|
||||
</p></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">iterator</span><span class="special">::</span><span class="keyword">template</span> <span class="identifier">key_of</span><span class="special"><</span><span class="identifier">It</span><span class="special">>::</span><span class="identifier">type</span></code>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
The key type associated with the element from <code class="computeroutput"><span class="identifier">It</span></code>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
None
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">iterator</span><span class="special">::</span><span class="keyword">template</span> <span class="identifier">value_of_data</span><span class="special"><</span><span class="identifier">It</span><span class="special">>::</span><span class="identifier">type</span></code>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
The type of the data property associated with the element from <code class="computeroutput"><span class="identifier">It</span></code>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
None
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">iterator</span><span class="special">::</span><span class="keyword">template</span> <span class="identifier">deref_data</span><span class="special"><</span><span class="identifier">It</span><span class="special">>::</span><span class="identifier">type</span></code>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
The type that will be returned by dereferencing the data property of
|
||||
the element from <code class="computeroutput"><span class="identifier">It</span></code>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
None
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">iterator</span><span class="special">::</span><span class="keyword">template</span> <span class="identifier">deref_data</span><span class="special"><</span><span class="identifier">It</span><span class="special">>::</span><span class="identifier">call</span><span class="special">(</span><span class="identifier">it</span><span class="special">)</span></code>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Deferences the data property associated with the element referenced
|
||||
by <code class="computeroutput"><span class="identifier">it</span></code>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
None
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<<<<<<< .working
|
||||
<a name="fusion.extension.iterator_facade.header"></a><h4>
|
||||
<a name="id608981"></a>
|
||||
<a href="iterator_facade.html#fusion.extension.iterator_facade.header">Header</a>
|
||||
</h4>
|
||||
=======
|
||||
<br class="table-break"><a name="fusion.extension.iterator_facade.header"></a><h5>
|
||||
<a name="id825613"></a>
|
||||
<a class="link" href="iterator_facade.html#fusion.extension.iterator_facade.header">Header</a>
|
||||
</h5>
|
||||
>>>>>>> .merge-right.r57125
|
||||
<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">iterator</span><span class="special">/</span><span class="identifier">iterator_facade</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
<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">iterator_facade</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<<<<<<< .working
|
||||
<a name="fusion.extension.iterator_facade.example"></a><h4>
|
||||
<a name="id609138"></a>
|
||||
<a href="iterator_facade.html#fusion.extension.iterator_facade.example">Example</a>
|
||||
</h4>
|
||||
=======
|
||||
<a name="fusion.extension.iterator_facade.example"></a><h5>
|
||||
<a name="id825721"></a>
|
||||
<a class="link" href="iterator_facade.html#fusion.extension.iterator_facade.example">Example</a>
|
||||
</h5>
|
||||
>>>>>>> .merge-right.r57125
|
||||
<p>
|
||||
A full working example using <a href="iterator_facade.html" title="Iterator Facade"><tt class="computeroutput"><span class="identifier">iterator_facade</span></tt></a> is provided in triple.cpp
|
||||
in the extension examples.
|
||||
@@ -289,7 +437,7 @@
|
||||
</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 © 2001-2007 Joel de Guzman, Dan Marsden, Tobias
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2001-2007 Joel de Guzman, Dan Marsden, Tobias
|
||||
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>)
|
||||
|
||||
Reference in New Issue
Block a user