Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > by-pkgid > fa7fad8f194f80107561a85291acd153 > files > 1965

lib64boost-devel-doc-1.42.0-3mdv2010.1.x86_64.rpm

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Struct template impl</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
<link rel="up" href="../when_Grammar__R_A___id1272228.html#id1678061" title="Description">
<link rel="prev" href="../when_Grammar__Fun_id1272146.html" title="Struct template when&lt;Grammar, Fun *&gt;">
<link rel="next" href="../otherwise.html" title="Struct template otherwise">
</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>
<td align="center"><a href="../../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../../libs/libraries.htm">Libraries</a></td>
<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>
<td align="center"><a href="../../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="../when_Grammar__Fun_id1272146.html"><img src="../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../when_Grammar__R_A___id1272228.html#id1678061"><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="../otherwise.html"><img src="../../../../../doc/html/images/next.png" alt="Next"></a>
</div>
<div class="refentry" title="Struct template impl">
<a name="boost.proto.when_Grammar,_R(A_)_id1272228.impl"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Struct template impl</span></h2>
<p>boost::proto::when&lt;Grammar, R(A...)&gt;::impl</p>
</div>
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="emphasis"><em>// In header: &lt;<a class="link" href="../../../proto/reference.html#header.boost.proto.transform.when_hpp" title="Header &lt;boost/proto/transform/when.hpp&gt;">boost/proto/transform/when.hpp</a>&gt;

</em></span>
<span class="bold"><strong>template</strong></span>&lt;<span class="bold"><strong>typename</strong></span> Expr, <span class="bold"><strong>typename</strong></span> State, <span class="bold"><strong>typename</strong></span> Data&gt; 
<span class="bold"><strong>struct</strong></span> <a class="link" href="impl.html" title="Struct template impl">impl</a> : <span class="bold"><strong></strong></span> <a class="link" href="../transform_impl.html" title="Struct template transform_impl">proto::transform_impl</a>&lt; Expr, State, Data &gt; {
  <span class="emphasis"><em>// types</em></span>
  <span class="bold"><strong>typedef</strong></span> <a class="link" href="../call.html" title="Struct template call">proto::call</a>&lt;R(A...)&gt;                                       <a name="boost.proto.when_Grammar,_R(A_)_id1272228.impl.call_"></a>call_;        <span class="emphasis"><em>// For exposition only</em></span>
  <span class="bold"><strong>typedef</strong></span> <a class="link" href="../make.html" title="Struct template make">proto::make</a>&lt;R(A...)&gt;                                       <a name="boost.proto.when_Grammar,_R(A_)_id1272228.impl.make_"></a>make_;        <span class="emphasis"><em>// For exposition only</em></span>
  <span class="bold"><strong>typedef</strong></span> <span class="bold"><strong>typename</strong></span> mpl::if_&lt;<a class="link" href="../is_callable.html" title="Struct template is_callable">proto::is_callable</a>&lt;R&gt;,call_,make_&gt;::type <a name="boost.proto.when_Grammar,_R(A_)_id1272228.impl.which"></a>which;        <span class="emphasis"><em>// For exposition only</em></span>
  <span class="bold"><strong>typedef</strong></span> <span class="bold"><strong>typename</strong></span> boost::result_of&lt;which(Expr, State, Data)&gt;::type  <a name="boost.proto.when_Grammar,_R(A_)_id1272228.impl.result_type"></a>result_type;

  <span class="emphasis"><em>// <a class="link" href="impl.html#id1272429-bb">public member functions</a></em></span>
  <span class="type">result_type</span> <a class="link" href="impl.html#id1272434-bb"><span class="bold"><strong>operator</strong></span>()</a>(<span class="bold"><strong>typename</strong></span> impl::expr_param, 
                         <span class="bold"><strong>typename</strong></span> impl::state_param, 
                         <span class="bold"><strong>typename</strong></span> impl::data_param) <span class="bold"><strong>const</strong></span>;
};</pre></div>
<div class="refsect1" title="Description">
<a name="id1678400"></a><h2>Description</h2>
<div class="refsect2" title="impl public member functions">
<a name="id1678404"></a><h3>
<a name="id1272429-bb"></a><code class="computeroutput">impl</code> public member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem">
<pre class="literallayout"><span class="type">result_type</span> <a name="id1272434-bb"></a><span class="bold"><strong>operator</strong></span>()(<span class="bold"><strong>typename</strong></span> impl::expr_param expr, 
                       <span class="bold"><strong>typename</strong></span> impl::state_param state, 
                       <span class="bold"><strong>typename</strong></span> impl::data_param data) <span class="bold"><strong>const</strong></span>;</pre>
<p>
                  Evaluate <code class="computeroutput">R(A...)</code> as a transform either with
                  <code class="computeroutput"><code class="computeroutput"><a class="link" href="../call.html" title="Struct template call">proto::call&lt;&gt;</a></code></code> or with
                  <code class="computeroutput"><code class="computeroutput"><a class="link" href="../make.html" title="Struct template make">proto::make&lt;&gt;</a></code></code> depending
                  on whether <code class="computeroutput"><code class="computeroutput"><a class="link" href="../is_callable.html" title="Struct template is_callable">proto::is_callable</a></code>&lt;R&gt;::value</code>
                  is <code class="computeroutput">true</code> or <code class="computeroutput">false</code>.
                </p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term">Parameters:</span></p></td>
<td><div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><code class="computeroutput">data</code></span></p></td>
<td><p>An arbitrary data </p></td>
</tr>
<tr>
<td><p><span class="term"><code class="computeroutput">expr</code></span></p></td>
<td><p>The current expression </p></td>
</tr>
<tr>
<td><p><span class="term"><code class="computeroutput">state</code></span></p></td>
<td><p>The current state </p></td>
</tr>
</tbody>
</table></div></td>
</tr>
<tr>
<td><p><span class="term">Requires:</span></p></td>
<td><p>
                  <code class="computeroutput"><a class="link" href="../matches.html" title="Struct template matches">proto::matches</a>&lt;Expr, Grammar&gt;::value</code>
                  is <code class="computeroutput">true</code>.
                </p></td>
</tr>
<tr>
<td><p><span class="term">Returns:</span></p></td>
<td><p>
                  <code class="computeroutput">which()(expr, state, data)</code>
                </p></td>
</tr>
</tbody>
</table></div>
</li></ol></div>
</div>
</div>
</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 &#169; 2008 Eric Niebler<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>)
      </p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="../when_Grammar__Fun_id1272146.html"><img src="../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../when_Grammar__R_A___id1272228.html#id1678061"><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="../otherwise.html"><img src="../../../../../doc/html/images/next.png" alt="Next"></a>
</div>
</body>
</html>