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,213 @@
<!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: eoPopulator&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>eoPopulator&lt; EOT &gt; Class Template Reference</h1>eoPopulator is a helper class for general operators <a class="el" href="classeo_gen_op.html">eoGenOp</a> It is an <a class="el" href="classeo_pop.html">eoPop</a> but also behaves like an eoPop::iterator as far as operator* and operator++ are concerned
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="eo_populator_8h-source.html">eoPopulator.h</a>&gt;</code>
<p>
<p>Inheritance diagram for eoPopulator&lt; EOT &gt;:
<p><center><img src="classeo_populator.png" usemap="#eoPopulator< EOT >_map" border="0" alt=""></center>
<map name="eoPopulator< EOT >_map">
<area href="classeo_selective_populator.html" alt="eoSelectivePopulator< EOT >" shape="rect" coords="0,56,181,80">
<area href="classeo_seq_populator.html" alt="eoSeqPopulator< EOT >" shape="rect" coords="191,56,372,80">
</map>
<a href="classeo_populator-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 Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="w0" doxytag="eoPopulator::position_type"></a>
typedef unsigned&nbsp;</td><td class="memItemRight" valign="bottom"><b>position_type</b></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="eoPopulator::eoPopulator"></a>
&nbsp;</td><td class="memItemRight" valign="bottom"><b>eoPopulator</b> (const <a class="el" href="classeo_pop.html">eoPop</a>&lt; <a class="el" href="struct_dummy.html">EOT</a> &gt; &amp;_src, <a class="el" href="classeo_pop.html">eoPop</a>&lt; <a class="el" href="struct_dummy.html">EOT</a> &gt; &amp;_dest)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a1" doxytag="eoPopulator::~eoPopulator"></a>
virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_populator.html#a1">~eoPopulator</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Virtual Constructor. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="struct_dummy.html">EOT</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_populator.html#a2">operator *</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">a populator behaves like an iterator. <a href="#a2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a3" doxytag="eoPopulator::operator++"></a>
<a class="el" href="classeo_populator.html">eoPopulator</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_populator.html#a3">operator++</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">only prefix increment defined Does not add a new element when at the end, use operator* for that If not on the end, increment the pointer to the next individual <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a4" doxytag="eoPopulator::insert"></a>
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_populator.html#a4">insert</a> (const <a class="el" href="struct_dummy.html">EOT</a> &amp;_eo)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">mandatory for operators that generate more offspring than parents if such a thing exists ? <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a5" doxytag="eoPopulator::reserve"></a>
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_populator.html#a5">reserve</a> (int how_many)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">just to make memory mangement more efficient <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classeo_pop.html">eoPop</a>&lt; <a class="el" href="struct_dummy.html">EOT</a> &gt; &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_populator.html#a6">source</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">can be useful for operators with embedded selectors e.g. <a href="#a6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classeo_pop.html">eoPop</a>&lt; <a class="el" href="struct_dummy.html">EOT</a> &gt; &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_populator.html#a7">offspring</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the offspring population. <a href="#a7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a8" doxytag="eoPopulator::tellp"></a>
position_type&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_populator.html#a8">tellp</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">this is a direct access container: tell position <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a9" doxytag="eoPopulator::seekp"></a>
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_populator.html#a9">seekp</a> (position_type pos)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">this is a direct access container: go to position <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a10" doxytag="eoPopulator::exhausted"></a>
bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_populator.html#a10">exhausted</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">no more individuals <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a11" doxytag="eoPopulator::select"></a>
virtual const <a class="el" href="struct_dummy.html">EOT</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_populator.html#a11">select</a> ()=0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">the pure virtual selection method - will be instanciated in <a class="el" href="classeo_seq_populator.html">eoSeqPopulator</a> and <a class="el" href="classeo_selective_populator.html">eoSelectivePopulator</a> <br></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="eoPopulator::dest"></a>
<a class="el" href="classeo_pop.html">eoPop</a>&lt; <a class="el" href="struct_dummy.html">EOT</a> &gt; &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><b>dest</b></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="p1" doxytag="eoPopulator::current"></a>
<a class="el" href="classeo_pop.html">eoPop</a>&lt; <a class="el" href="struct_dummy.html">EOT</a> &gt;::iterator&nbsp;</td><td class="memItemRight" valign="bottom"><b>current</b></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="p2" doxytag="eoPopulator::src"></a>
const <a class="el" href="classeo_pop.html">eoPop</a>&lt; <a class="el" href="struct_dummy.html">EOT</a> &gt; &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><b>src</b></td></tr>
<tr><td colspan="2"><br><h2>Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d0" doxytag="eoPopulator::get_next"></a>
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>get_next</b> ()</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<h3>template&lt;class EOT&gt;<br>
class eoPopulator&lt; EOT &gt;</h3>
eoPopulator is a helper class for general operators <a class="el" href="classeo_gen_op.html">eoGenOp</a> It is an <a class="el" href="classeo_pop.html">eoPop</a> but also behaves like an eoPop::iterator as far as operator* and operator++ are concerned
<p>
See <a class="el" href="classeo_gen_op.html">eoGenOp</a> and <a class="el" href="classeo_op_container.html">eoOpContainer</a>
<p>
<p>
Definition at line <a class="el" href="eo_populator_8h-source.html#l00039">39</a> of file <a class="el" href="eo_populator_8h-source.html">eoPopulator.h</a>.<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="a2" doxytag="eoPopulator::operator *"></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"><a class="el" href="struct_dummy.html">EOT</a>&amp; <a class="el" href="classeo_populator.html">eoPopulator</a>&lt; <a class="el" href="struct_dummy.html">EOT</a> &gt;::operator * </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">void&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap><code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
a populator behaves like an iterator.
<p>
Hence the operator* it returns the current individual -- eventually getting a new one through the operator++ if at the end
<p>
Definition at line <a class="el" href="eo_populator_8h-source.html#l00058">58</a> of file <a class="el" href="eo_populator_8h-source.html">eoPopulator.h</a>. </td>
</tr>
</table>
<a class="anchor" name="a6" doxytag="eoPopulator::source"></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">const <a class="el" href="classeo_pop.html">eoPop</a>&lt;<a class="el" href="struct_dummy.html">EOT</a>&gt;&amp; <a class="el" href="classeo_populator.html">eoPopulator</a>&lt; <a class="el" href="struct_dummy.html">EOT</a> &gt;::source </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">void&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap><code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
can be useful for operators with embedded selectors e.g.
<p>
your brain and my beauty -type
<p>
Definition at line <a class="el" href="eo_populator_8h-source.html#l00105">105</a> of file <a class="el" href="eo_populator_8h-source.html">eoPopulator.h</a>.
<p>
Referenced by <a class="el" href="eo_gen_op_8h-source.html#l00141">eoSelBinGenOp&lt; EOT &gt;::apply()</a>, and <a class="el" href="eo_es_global_xover_8h-source.html#l00067">eoEsGlobalXover&lt; EOT &gt;::apply()</a>. </td>
</tr>
</table>
<a class="anchor" name="a7" doxytag="eoPopulator::offspring"></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"><a class="el" href="classeo_pop.html">eoPop</a>&lt;<a class="el" href="struct_dummy.html">EOT</a>&gt;&amp; <a class="el" href="classeo_populator.html">eoPopulator</a>&lt; <a class="el" href="struct_dummy.html">EOT</a> &gt;::offspring </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">void&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap><code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Get the offspring population.
<p>
Can be useful when you want to do some online niching kind of thing
<p>
Definition at line <a class="el" href="eo_populator_8h-source.html#l00110">110</a> of file <a class="el" href="eo_populator_8h-source.html">eoPopulator.h</a>. </td>
</tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="eo_populator_8h-source.html">eoPopulator.h</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Thu Oct 19 05:06:53 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>