Imported Upstream version 1.57.0
[platform/upstream/boost.git] / doc / html / boost / proto / _child_c / impl.html
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>Struct template impl</title>
5 <link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css">
6 <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7 <link rel="home" href="../../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
8 <link rel="up" href="../_child_c.html#idp386592608" title="Description">
9 <link rel="prev" href="../_child_c.html" title="Struct template _child_c">
10 <link rel="next" href="../_value.html" title="Struct _value">
11 </head>
12 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13 <table cellpadding="2" width="100%"><tr>
14 <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../boost.png"></td>
15 <td align="center"><a href="../../../../../index.html">Home</a></td>
16 <td align="center"><a href="../../../../../libs/libraries.htm">Libraries</a></td>
17 <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
18 <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
19 <td align="center"><a href="../../../../../more/index.htm">More</a></td>
20 </tr></table>
21 <hr>
22 <div class="spirit-nav">
23 <a accesskey="p" href="../_child_c.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../_child_c.html#idp386592608"><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="../_value.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
24 </div>
25 <div class="refentry">
26 <a name="boost.proto._child_c.impl"></a><div class="titlepage"></div>
27 <div class="refnamediv">
28 <h2><span class="refentrytitle">Struct template impl</span></h2>
29 <p>boost::proto::_child_c::impl</p>
30 </div>
31 <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
32 <div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../../proto/reference.html#header.boost.proto.transform.arg_hpp" title="Header &lt;boost/proto/transform/arg.hpp&gt;">boost/proto/transform/arg.hpp</a>&gt;
33
34 </span>
35 <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> <a class="link" href="../../../Expr.html" title="Concept Expr">Expr</a><span class="special">,</span> <span class="keyword">typename</span> State<span class="special">,</span> <span class="keyword">typename</span> Data<span class="special">&gt;</span> 
36 <span class="keyword">struct</span> <a class="link" href="impl.html" title="Struct template impl">impl</a> <span class="special">:</span> <span class="keyword"></span> <a class="link" href="../transform_impl.html" title="Struct template transform_impl">proto::transform_impl</a><span class="special">&lt;</span> <span class="identifier">Expr</span><span class="special">,</span> <span class="identifier">State</span><span class="special">,</span> <span class="identifier">Data</span> <span class="special">&gt;</span> <span class="special">{</span>
37   <span class="comment">// types</span>
38   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="link" href="../result_of/child_c.html" title="Struct template child_c">proto::result_of::child_c</a><span class="special">&lt;</span> <span class="identifier">Expr</span><span class="special">,</span> <span class="identifier">N</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> <a name="boost.proto._child_c.impl.result_type"></a><span class="identifier">result_type</span><span class="special">;</span>
39
40   <span class="comment">// <a class="link" href="impl.html#idp227826928-bb">public member functions</a></span>
41   <span class="keyword">typename</span> <a class="link" href="../result_of/child_c.html" title="Struct template child_c">proto::result_of::child_c</a><span class="special">&lt;</span> <span class="identifier">Expr</span><span class="special">,</span> <span class="identifier">N</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> 
42   <a class="link" href="impl.html#idp227827488-bb"><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span></a><span class="special">(</span><span class="keyword">typename</span> <span class="identifier">impl</span><span class="special">::</span><span class="identifier">expr_param</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">impl</span><span class="special">::</span><span class="identifier">state_param</span><span class="special">,</span> 
43              <span class="keyword">typename</span> <span class="identifier">impl</span><span class="special">::</span><span class="identifier">data_param</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
44 <span class="special">}</span><span class="special">;</span></pre></div>
45 <div class="refsect1">
46 <a name="idp386671760"></a><h2>Description</h2>
47 <div class="refsect2">
48 <a name="idp386672176"></a><h3>
49 <a name="idp227826928-bb"></a><code class="computeroutput">impl</code> public member functions</h3>
50 <div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem">
51 <pre class="literallayout"><span class="keyword">typename</span> <a class="link" href="../result_of/child_c.html" title="Struct template child_c">proto::result_of::child_c</a><span class="special">&lt;</span> <span class="identifier">Expr</span><span class="special">,</span> <span class="identifier">N</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> 
52 <a name="idp227827488-bb"></a><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span><span class="special">(</span><span class="keyword">typename</span> <span class="identifier">impl</span><span class="special">::</span><span class="identifier">expr_param</span> expr<span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">impl</span><span class="special">::</span><span class="identifier">state_param</span><span class="special">,</span> 
53            <span class="keyword">typename</span> <span class="identifier">impl</span><span class="special">::</span><span class="identifier">data_param</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
54 <p>
55                   Returns the N-th child of <code class="computeroutput">expr</code>
56                 </p>
57 <div class="variablelist"><table border="0" class="variablelist compact">
58 <colgroup>
59 <col align="left" valign="top">
60 <col>
61 </colgroup>
62 <tbody>
63 <tr>
64 <td><p><span class="term">Parameters:</span></p></td>
65 <td><div class="variablelist"><table border="0" class="variablelist compact">
66 <colgroup>
67 <col align="left" valign="top">
68 <col>
69 </colgroup>
70 <tbody><tr>
71 <td><p><span class="term"><code class="computeroutput">expr</code></span></p></td>
72 <td><p>The current expression. </p></td>
73 </tr></tbody>
74 </table></div></td>
75 </tr>
76 <tr>
77 <td><p><span class="term">Requires:</span></p></td>
78 <td><p>
79                   <code class="computeroutput">Expr::proto_arity::value &gt; N</code>
80                 </p></td>
81 </tr>
82 <tr>
83 <td><p><span class="term">Returns:</span></p></td>
84 <td><p>
85                   <code class="computeroutput"><a class="link" href="../child_c_idp227698512.html" title="Function child_c">proto::child_c</a>&lt;N&gt;(expr)</code>
86                 </p></td>
87 </tr>
88 <tr>
89 <td><p><span class="term">Throws:</span></p></td>
90 <td>Will not throw.</td>
91 </tr>
92 </tbody>
93 </table></div>
94 </li></ol></div>
95 </div>
96 </div>
97 </div>
98 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
99 <td align="left"></td>
100 <td align="right"><div class="copyright-footer">Copyright &#169; 2008 Eric Niebler<p>
101         Distributed under the Boost Software License, Version 1.0. (See accompanying
102         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>)
103       </p>
104 </div></td>
105 </tr></table>
106 <hr>
107 <div class="spirit-nav">
108 <a accesskey="p" href="../_child_c.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../_child_c.html#idp386592608"><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="../_value.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
109 </div>
110 </body>
111 </html>