Paradiseo-eo sources added

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@40 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
legrand 2006-12-12 14:49:08 +00:00
commit c3aec878e5
3609 changed files with 342772 additions and 0 deletions

View file

@ -0,0 +1,122 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>EO: eoOpContainer&lt; EOT &gt; Class Template Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.9.1 -->
<div class="qindex"> <form class="search" action="search.php" method="get">
<a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a> | <span class="search"><u>S</u>earch&nbsp;for&nbsp;<input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div>
<h1>eoOpContainer&lt; EOT &gt; Class Template Reference</h1>eoOpContainer is a base class for the sequential and proportional selectors It takes care of wrapping the other operators, and deleting stuff that it has allocated
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="eo_op_container_8h-source.html">eoOpContainer.h</a>&gt;</code>
<p>
<p>Inheritance diagram for eoOpContainer&lt; EOT &gt;:
<p><center><img src="classeo_op_container.png" usemap="#eoOpContainer< EOT >_map" border="0" alt=""></center>
<map name="eoOpContainer< EOT >_map">
<area href="classeo_gen_op.html" alt="eoGenOp< EOT >" shape="rect" coords="147,112,432,136">
<area href="classeo_op.html" alt="eoOp< EOT >" shape="rect" coords="0,56,285,80">
<area href="classeo_u_f.html" alt="eoUF< eoPopulator< EOT > &, void >" shape="rect" coords="295,56,580,80">
<area href="classeo_functor_base.html" alt="eoFunctorBase" shape="rect" coords="147,0,432,24">
<area href="classeo_proportional_op.html" alt="eoProportionalOp< EOT >" shape="rect" coords="0,224,285,248">
<area href="classeo_sequential_op.html" alt="eoSequentialOp< EOT >" shape="rect" coords="295,224,580,248">
</map>
<a href="classeo_op_container-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a0" doxytag="eoOpContainer::eoOpContainer"></a>
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_op_container.html#a0">eoOpContainer</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Ctor: nothing much to do. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a1" doxytag="eoOpContainer::~eoOpContainer"></a>
virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_op_container.html#a1">~eoOpContainer</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Dtor: delete all the GenOps created when wrapping simple ops. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a2" doxytag="eoOpContainer::max_production"></a>
virtual unsigned&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_op_container.html#a2">max_production</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">for memory management (doesn't have to be very precise <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_op_container.html#a3">add</a> (<a class="el" href="classeo_op.html">eoOp</a>&lt; <a class="el" href="struct_dummy.html">EOT</a> &gt; &amp;_op, double _rate)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add an operator to the container, also give it a rate. <a href="#a3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a4" doxytag="eoOpContainer::className"></a>
virtual std::string&nbsp;</td><td class="memItemRight" valign="bottom"><b>className</b> () const =0</td></tr>
<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="p0" doxytag="eoOpContainer::rates"></a>
std::vector&lt; double &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><b>rates</b></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="p1" doxytag="eoOpContainer::ops"></a>
std::vector&lt; <a class="el" href="classeo_gen_op.html">eoGenOp</a>&lt; <a class="el" href="struct_dummy.html">EOT</a> &gt; * &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><b>ops</b></td></tr>
<tr><td colspan="2"><br><h2>Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="r0" doxytag="eoOpContainer::store"></a>
<a class="el" href="classeo_functor_store.html">eoFunctorStore</a>&nbsp;</td><td class="memItemRight" valign="bottom"><b>store</b></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="r1" doxytag="eoOpContainer::max_to_produce"></a>
unsigned&nbsp;</td><td class="memItemRight" valign="bottom"><b>max_to_produce</b></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<h3>template&lt;class EOT&gt;<br>
class eoOpContainer&lt; EOT &gt;</h3>
eoOpContainer is a base class for the sequential and proportional selectors It takes care of wrapping the other operators, and deleting stuff that it has allocated
<p>
Warning: all operators are added together with a rate (double) However, the meaning of this rate will be different in the differnet instances of eoOpContainer: an ***absolute*** probability in the sequential version, and a ***relative*** weight in the proportional version
<p>
<p>
Definition at line <a class="el" href="eo_op_container_8h-source.html#l00042">42</a> of file <a class="el" href="eo_op_container_8h-source.html">eoOpContainer.h</a>.<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="a3" doxytag="eoOpContainer::add"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" colspan="4">
template&lt;class EOT&gt; </td>
</tr>
<tr>
<td class="md" nowrap valign="top">void <a class="el" href="classeo_op_container.html">eoOpContainer</a>&lt; <a class="el" href="struct_dummy.html">EOT</a> &gt;::add </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="classeo_op.html">eoOp</a>&lt; <a class="el" href="struct_dummy.html">EOT</a> &gt; &amp;&nbsp;</td>
<td class="mdname" nowrap> <em>_op</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>double&nbsp;</td>
<td class="mdname" nowrap> <em>_rate</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"><code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Add an operator to the container, also give it a rate.
<p>
(sidenote, it's much less hairy since I added the wrap_op is used)
<p>
Definition at line <a class="el" href="eo_op_container_8h-source.html#l00063">63</a> of file <a class="el" href="eo_op_container_8h-source.html">eoOpContainer.h</a>. </td>
</tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="eo_op_container_8h-source.html">eoOpContainer.h</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Thu Oct 19 05:06:52 2006 for EO by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
</body>
</html>