paradiseo/trunk/paradiseo-eo/doc/html/classeo_one_max.html
legrand c3aec878e5 Paradiseo-eo sources added
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@40 331e1502-861f-0410-8da2-ba01fb791d7f
2006-12-12 14:49:08 +00:00

219 lines
11 KiB
HTML

<!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: eoOneMax&lt; FitT &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>eoOneMax&lt; FitT &gt; Class Template Reference</h1>Always write a comment in this format before class definition if you want the class to be documented by Doxygen.
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="eo_one_max_8h-source.html">eoOneMax.h</a>&gt;</code>
<p>
<p>Inheritance diagram for eoOneMax&lt; FitT &gt;:
<p><center><img src="classeo_one_max.png" usemap="#eoOneMax< FitT >_map" border="0" alt=""></center>
<map name="eoOneMax< FitT >_map">
<area href="class_e_o.html" alt="EO< FitT >" shape="rect" coords="64,112,183,136">
<area href="classeo_object.html" alt="eoObject" shape="rect" coords="0,56,119,80">
<area href="classeo_persistent.html" alt="eoPersistent" shape="rect" coords="129,56,248,80">
<area href="classeo_printable.html" alt="eoPrintable" shape="rect" coords="129,0,248,24">
</map>
<a href="classeo_one_max-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">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_one_max.html#a0">eoOneMax</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Ctor: you MUST provide a default ctor. <a href="#a0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_one_max.html#a2">className</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the class id. <a href="#a2"></a><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_one_max.html#a3">printOn</a> (ostream &amp;_os) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">printing... <a href="#a3"></a><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_one_max.html#a4">readFrom</a> (istream &amp;_is)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">reading... <a href="#a4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a5" doxytag="eoOneMax::setB"></a>
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>setB</b> (vector&lt; bool &gt; &amp;_b)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a6" doxytag="eoOneMax::B"></a>
const vector&lt; bool &gt; &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><b>B</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="eoOneMax::b"></a>
std::vector&lt; bool &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><b>b</b></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<h3>template&lt;class FitT&gt;<br>
class eoOneMax&lt; FitT &gt;</h3>
Always write a comment in this format before class definition if you want the class to be documented by Doxygen.
<p>
Note that you MUST derive your structure from EO&lt;fitT&gt; but you MAY use some other already prepared class in the hierarchy like <a class="el" href="classeo_vector.html">eoVector</a> for instance, if you handle a vector of something....<p>
If you create a structure from scratch, the only thing you need to provide are a default constructor IO routines printOn and readFrom<p>
Note that operator&lt;&lt; and operator&gt;&gt; are defined at <a class="el" href="class_e_o.html">EO</a> level using these routines
<p>
<p>
Definition at line <a class="el" href="eo_one_max_8h-source.html#l00031">31</a> of file <a class="el" href="eo_one_max_8h-source.html">eoOneMax.h</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="a0" doxytag="eoOneMax::eoOneMax"></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 FitT&gt; </td>
</tr>
<tr>
<td class="md" nowrap valign="top"><a class="el" href="classeo_one_max.html">eoOneMax</a>&lt; <a class="el" href="classeo_scalar_fitness.html">FitT</a> &gt;::<a class="el" href="classeo_one_max.html">eoOneMax</a> </td>
<td class="md" valign="top">(&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>
Ctor: you MUST provide a default ctor.
<p>
though such individuals will generally be processed by some <a class="el" href="classeo_init.html">eoInit</a> object
<p>
Definition at line <a class="el" href="eo_one_max_8h-source.html#l00037">37</a> of file <a class="el" href="eo_one_max_8h-source.html">eoOneMax.h</a>. </td>
</tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="a2" doxytag="eoOneMax::className"></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 FitT&gt; </td>
</tr>
<tr>
<td class="md" nowrap valign="top">virtual string <a class="el" href="classeo_one_max.html">eoOneMax</a>&lt; <a class="el" href="classeo_scalar_fitness.html">FitT</a> &gt;::className </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> const<code> [inline, virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Return the class id.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>the class name as a std::string </dd></dl>
<p>
Reimplemented from <a class="el" href="class_e_o.html#z10_0">EO&lt; FitT &gt;</a>.
<p>
Definition at line <a class="el" href="eo_one_max_8h-source.html#l00049">49</a> of file <a class="el" href="eo_one_max_8h-source.html">eoOneMax.h</a>. </td>
</tr>
</table>
<a class="anchor" name="a3" doxytag="eoOneMax::printOn"></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 FitT&gt; </td>
</tr>
<tr>
<td class="md" nowrap valign="top">void <a class="el" href="classeo_one_max.html">eoOneMax</a>&lt; <a class="el" href="classeo_scalar_fitness.html">FitT</a> &gt;::printOn </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">ostream &amp;&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>_os</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
printing...
<p>
HINTS in <a class="el" href="class_e_o.html">EO</a> we systematically write the sizes of things before the things so readFrom is easier to code (see below)
<p>
Definition at line <a class="el" href="eo_one_max_8h-source.html#l00052">52</a> of file <a class="el" href="eo_one_max_8h-source.html">eoOneMax.h</a>.
<p>
References <a class="el" href="_e_o_8h-source.html#l00129">EO&lt; F &gt;::printOn()</a>. </td>
</tr>
</table>
<a class="anchor" name="a4" doxytag="eoOneMax::readFrom"></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 FitT&gt; </td>
</tr>
<tr>
<td class="md" nowrap valign="top">void <a class="el" href="classeo_one_max.html">eoOneMax</a>&lt; <a class="el" href="classeo_scalar_fitness.html">FitT</a> &gt;::readFrom </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">istream &amp;&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>_is</em> </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>
reading...
<p>
of course, your readFrom must be able to read what printOn writes!!!<p>
HINTS remember the eoOneMax object will come from the default ctor this is why having the sizes written out is useful
<p>
Definition at line <a class="el" href="eo_one_max_8h-source.html#l00072">72</a> of file <a class="el" href="eo_one_max_8h-source.html">eoOneMax.h</a>.
<p>
References <a class="el" href="_e_o_8h-source.html#l00105">EO&lt; F &gt;::readFrom()</a>. </td>
</tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="eo_one_max_8h-source.html">eoOneMax.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>