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:
parent
bc1f453978
commit
c3aec878e5
3609 changed files with 342772 additions and 0 deletions
434
trunk/paradiseo-eo/doc/html/class_e_o.html
Normal file
434
trunk/paradiseo-eo/doc/html/class_e_o.html
Normal file
|
|
@ -0,0 +1,434 @@
|
|||
<!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: EO< F > 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 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 Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="pages.html">Related Pages</a> | <span class="search"><u>S</u>earch for <input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div>
|
||||
<h1>EO< F > Class Template Reference</h1>EO is a base class for evolvable objects, that is, the subjects of evolution.
|
||||
<a href="#_details">More...</a>
|
||||
<p>
|
||||
<code>#include <<a class="el" href="_e_o_8h-source.html">EO.h</a>></code>
|
||||
<p>
|
||||
<p>Inheritance diagram for EO< F >:
|
||||
<p><center><img src="class_e_o.png" usemap="#EO< F >_map" border="0" alt=""></center>
|
||||
<map name="EO< F >_map">
|
||||
<area href="classeo_object.html" alt="eoObject" shape="rect" coords="0,56,81,80">
|
||||
<area href="classeo_persistent.html" alt="eoPersistent" shape="rect" coords="91,56,172,80">
|
||||
<area href="classeo_printable.html" alt="eoPrintable" shape="rect" coords="91,0,172,24">
|
||||
</map>
|
||||
<a href="class_e_o-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="EO::Fitness"></a>
|
||||
typedef F </td><td class="memItemRight" valign="bottom"><b>Fitness</b></td></tr>
|
||||
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="w1" doxytag="EO::fitness_traits"></a>
|
||||
typedef Traits </td><td class="memItemRight" valign="bottom"><b>fitness_traits</b></td></tr>
|
||||
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="w2" doxytag="EO::storage_type"></a>
|
||||
typedef Traits::storage_type </td><td class="memItemRight" valign="bottom"><b>storage_type</b></td></tr>
|
||||
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="w3" doxytag="EO::performance_type"></a>
|
||||
typedef Traits::performance_type </td><td class="memItemRight" valign="bottom"><b>performance_type</b></td></tr>
|
||||
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="w4" doxytag="EO::worth_type"></a>
|
||||
typedef Traits::worth_type </td><td class="memItemRight" valign="bottom"><b>worth_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"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_e_o.html#a0">EO</a> ()</td></tr>
|
||||
|
||||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <a href="#a0"></a><br></td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a1" doxytag="EO::~EO"></a>
|
||||
virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_e_o.html#a1">~EO</a> ()</td></tr>
|
||||
|
||||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Virtual dtor. <br></td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a2" doxytag="EO::fitness"></a>
|
||||
Fitness </td><td class="memItemRight" valign="bottom"><a class="el" href="class_e_o.html#a2">fitness</a> () const </td></tr>
|
||||
|
||||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return fitness value. <br></td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a3" doxytag="EO::invalidate"></a>
|
||||
void </td><td class="memItemRight" valign="bottom"><b>invalidate</b> ()</td></tr>
|
||||
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_e_o.html#a4">fitness</a> (const Fitness &_fitness)</td></tr>
|
||||
|
||||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set fitness. <a href="#a4"></a><br></td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_e_o.html#a5">invalid</a> () const </td></tr>
|
||||
|
||||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return true If fitness value is invalid, false otherwise. <a href="#a5"></a><br></td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_e_o.html#a6">operator<</a> (const <a class="el" href="class_e_o.html">EO</a> &_eo2) const </td></tr>
|
||||
|
||||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns true if. <a href="#a6"></a><br></td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a7" doxytag="EO::operator>"></a>
|
||||
bool </td><td class="memItemRight" valign="bottom"><b>operator></b> (const <a class="el" href="class_e_o.html">EO</a> &_eo2) const </td></tr>
|
||||
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a9" doxytag="EO::fitness"></a>
|
||||
void </td><td class="memItemRight" valign="bottom"><b>fitness</b> (performance_type perf)</td></tr>
|
||||
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a10" doxytag="EO::performance"></a>
|
||||
void </td><td class="memItemRight" valign="bottom"><b>performance</b> (performance_type perf)</td></tr>
|
||||
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a11" doxytag="EO::performance"></a>
|
||||
performance_type </td><td class="memItemRight" valign="bottom"><b>performance</b> (void) const </td></tr>
|
||||
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a12" doxytag="EO::worth"></a>
|
||||
void </td><td class="memItemRight" valign="bottom"><b>worth</b> (worth_type worth)</td></tr>
|
||||
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a13" doxytag="EO::worth"></a>
|
||||
worth_type </td><td class="memItemRight" valign="bottom"><b>worth</b> (void) const </td></tr>
|
||||
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a14" doxytag="EO::fitness"></a>
|
||||
worth_type </td><td class="memItemRight" valign="bottom"><b>fitness</b> (void) const </td></tr>
|
||||
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a15" doxytag="EO::invalidate"></a>
|
||||
void </td><td class="memItemRight" valign="bottom"><b>invalidate</b> (void)</td></tr>
|
||||
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a16" doxytag="EO::invalidate_worth"></a>
|
||||
void </td><td class="memItemRight" valign="bottom"><b>invalidate_worth</b> (void)</td></tr>
|
||||
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a17" doxytag="EO::operator<"></a>
|
||||
bool </td><td class="memItemRight" valign="bottom"><b>operator<</b> (const EO< Fitness, Traits > &other) const </td></tr>
|
||||
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a18" doxytag="EO::operator>"></a>
|
||||
bool </td><td class="memItemRight" valign="bottom"><b>operator></b> (const EO< Fitness, Traits > &other) const </td></tr>
|
||||
|
||||
<tr><td colspan="2"><div class="groupHeader"></div></td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="class_e_o.html#z10_0">className</a> () const </td></tr>
|
||||
|
||||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the class id. <a href="#z10_0"></a><br></td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_e_o.html#z10_1">readFrom</a> (std::istream &_is)</td></tr>
|
||||
|
||||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Read object.\ Calls base class, just in case that one had something to do. <a href="#z10_1"></a><br></td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_e_o.html#z10_2">printOn</a> (std::ostream &_os) const </td></tr>
|
||||
|
||||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Write object. <a href="#z10_2"></a><br></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="EO::repFitness"></a>
|
||||
Fitness </td><td class="memItemRight" valign="bottom"><b>repFitness</b></td></tr>
|
||||
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="r1" doxytag="EO::invalidFitness"></a>
|
||||
bool </td><td class="memItemRight" valign="bottom"><b>invalidFitness</b></td></tr>
|
||||
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="r2" doxytag="EO::valid_performance"></a>
|
||||
bool </td><td class="memItemRight" valign="bottom"><b>valid_performance</b></td></tr>
|
||||
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="r3" doxytag="EO::valid_worth"></a>
|
||||
bool </td><td class="memItemRight" valign="bottom"><b>valid_worth</b></td></tr>
|
||||
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="r4" doxytag="EO::rep_fitness"></a>
|
||||
storage_type </td><td class="memItemRight" valign="bottom"><b>rep_fitness</b></td></tr>
|
||||
|
||||
</table>
|
||||
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
||||
<h3>template<class F><br>
|
||||
class EO< F ></h3>
|
||||
|
||||
EO is a base class for evolvable objects, that is, the subjects of evolution.
|
||||
<p>
|
||||
EOs have only got a fitness, which at the same time needs to be only an object with the operation less than (<) defined. Fitness says how good is the object; evolution or change of these objects is left to the genetic operators. A fitness less than another means a worse fitness, in whatever the context; thus, fitness is always maximized; although it can be minimized with a proper definition of the < operator. The fitness object must have, besides an void ctor, a copy ctor.
|
||||
<p>
|
||||
|
||||
<p>
|
||||
Definition at line <a class="el" href="_e_o_8h-source.html#l00044">44</a> of file <a class="el" href="_e_o_8h-source.html">EO.h</a>.<hr><h2>Constructor & Destructor Documentation</h2>
|
||||
<a class="anchor" name="a0" doxytag="EO::EO"></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<class F> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="md" nowrap valign="top"><a class="el" href="class_e_o.html">EO</a>< F >::<a class="el" href="class_e_o.html">EO</a> </td>
|
||||
<td class="md" valign="top">( </td>
|
||||
<td class="mdname1" valign="top" nowrap> </td>
|
||||
<td class="md" valign="top"> ) </td>
|
||||
<td class="md" nowrap><code> [inline]</code></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellspacing="5" cellpadding="0" border="0">
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
<p>
|
||||
Default constructor.
|
||||
<p>
|
||||
Fitness must have a ctor which takes 0 as a value; we can not use void ctors here since default types like float have no void initializer. VC++ allows it, but gcc does not
|
||||
<p>
|
||||
Definition at line <a class="el" href="_e_o_8h-source.html#l00054">54</a> of file <a class="el" href="_e_o_8h-source.html">EO.h</a>. </td>
|
||||
</tr>
|
||||
</table>
|
||||
<hr><h2>Member Function Documentation</h2>
|
||||
<a class="anchor" name="a4" doxytag="EO::fitness"></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<class F> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="md" nowrap valign="top">void <a class="el" href="class_e_o.html">EO</a>< F >::fitness </td>
|
||||
<td class="md" valign="top">( </td>
|
||||
<td class="md" nowrap valign="top">const Fitness & </td>
|
||||
<td class="mdname1" valign="top" nowrap> <em>_fitness</em> </td>
|
||||
<td class="md" valign="top"> ) </td>
|
||||
<td class="md" nowrap><code> [inline]</code></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellspacing="5" cellpadding="0" border="0">
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
<p>
|
||||
Set fitness.
|
||||
<p>
|
||||
At the same time, validates it. <dl compact><dt><b>Parameters:</b></dt><dd>
|
||||
<table border="0" cellspacing="2" cellpadding="0">
|
||||
<tr><td valign="top"></td><td valign="top"><em>_fitness</em> </td><td>New fitness value. </td></tr>
|
||||
</table>
|
||||
</dl>
|
||||
|
||||
<p>
|
||||
Definition at line <a class="el" href="_e_o_8h-source.html#l00072">72</a> of file <a class="el" href="_e_o_8h-source.html">EO.h</a>. </td>
|
||||
</tr>
|
||||
</table>
|
||||
<a class="anchor" name="a5" doxytag="EO::invalid"></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<class F> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="md" nowrap valign="top">bool <a class="el" href="class_e_o.html">EO</a>< F >::invalid </td>
|
||||
<td class="md" valign="top">( </td>
|
||||
<td class="mdname1" valign="top" nowrap> </td>
|
||||
<td class="md" valign="top"> ) </td>
|
||||
<td class="md" nowrap> const<code> [inline]</code></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellspacing="5" cellpadding="0" border="0">
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
<p>
|
||||
Return true If fitness value is invalid, false otherwise.
|
||||
<p>
|
||||
<dl compact><dt><b>Returns:</b></dt><dd>true If fitness is invalid. </dd></dl>
|
||||
|
||||
<p>
|
||||
Definition at line <a class="el" href="_e_o_8h-source.html#l00081">81</a> of file <a class="el" href="_e_o_8h-source.html">EO.h</a>.
|
||||
<p>
|
||||
Referenced by <a class="el" href="_e_o_8h-source.html#l00060">EO< PyFitness >::fitness()</a>, <a class="el" href="eo_one_max_eval_func_8h-source.html#l00045">eoOneMaxEvalFunc< EOT >::operator()()</a>, <a class="el" href="eo_normal_mutation_8h-source.html#l00216">eoOneFifthMutation< EOT >::operator()()</a>, <a class="el" href="eo_eval_func_ptr_8h-source.html#l00055">eoEvalFuncPtr< EOT, FitT, FunctionArg >::operator()()</a>, <a class="el" href="eo_eval_func_counter_8h-source.html#l00043">eoEvalFuncCounter< EOT >::operator()()</a>, and <a class="el" href="_e_o_8h-source.html#l00129">EO< PyFitness >::printOn()</a>. </td>
|
||||
</tr>
|
||||
</table>
|
||||
<a class="anchor" name="a6" doxytag="EO::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<class F> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="md" nowrap valign="top">bool <a class="el" href="class_e_o.html">EO</a>< F >::operator< </td>
|
||||
<td class="md" valign="top">( </td>
|
||||
<td class="md" nowrap valign="top">const <a class="el" href="class_e_o.html">EO</a>< F > & </td>
|
||||
<td class="mdname1" valign="top" nowrap> <em>_eo2</em> </td>
|
||||
<td class="md" valign="top"> ) </td>
|
||||
<td class="md" nowrap> const<code> [inline]</code></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellspacing="5" cellpadding="0" border="0">
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
<p>
|
||||
Returns true if.
|
||||
<p>
|
||||
<dl compact><dt><b>Returns:</b></dt><dd>true if the fitness is higher </dd></dl>
|
||||
|
||||
<p>
|
||||
Definition at line <a class="el" href="_e_o_8h-source.html#l00086">86</a> of file <a class="el" href="_e_o_8h-source.html">EO.h</a>.
|
||||
<p>
|
||||
Referenced by <a class="el" href="eo_vector_8h-source.html#l00090">eoVector< FitT, bool >::operator<()</a>. </td>
|
||||
</tr>
|
||||
</table>
|
||||
<a class="anchor" name="z10_0" doxytag="EO::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<class F> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="md" nowrap valign="top">virtual std::string <a class="el" href="class_e_o.html">EO</a>< F >::className </td>
|
||||
<td class="md" valign="top">( </td>
|
||||
<td class="md" nowrap valign="top">void </td>
|
||||
<td class="mdname1" valign="top" nowrap> </td>
|
||||
<td class="md" valign="top"> ) </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>
|
||||
|
||||
</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>
|
||||
Implements <a class="el" href="classeo_object.html#a1">eoObject</a>.
|
||||
<p>
|
||||
Reimplemented in <a class="el" href="classeo_es_full.html#a1">eoEsFull< Fit ></a>, <a class="el" href="classeo_es_simple.html#a1">eoEsSimple< Fit ></a>, <a class="el" href="classeo_es_stdev.html#a1">eoEsStdev< Fit ></a>, <a class="el" href="classeo_real.html#a1">eoReal< FitT ></a>, <a class="el" href="classeo_bit.html#a1">eoBit< FitT ></a>, <a class="el" href="classeo_parse_tree.html#a4">eoParseTree< FType, Node ></a>, <a class="el" href="classeo_string.html#z26_0">eoString< fitnessT ></a>, and <a class="el" href="classeo_one_max.html#a2">eoOneMax< FitT ></a>.
|
||||
<p>
|
||||
Definition at line <a class="el" href="_e_o_8h-source.html#l00095">95</a> of file <a class="el" href="_e_o_8h-source.html">EO.h</a>. </td>
|
||||
</tr>
|
||||
</table>
|
||||
<a class="anchor" name="z10_1" doxytag="EO::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<class F> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="md" nowrap valign="top">virtual void <a class="el" href="class_e_o.html">EO</a>< F >::readFrom </td>
|
||||
<td class="md" valign="top">( </td>
|
||||
<td class="md" nowrap valign="top">std::istream & </td>
|
||||
<td class="mdname1" valign="top" nowrap> <em>_is</em> </td>
|
||||
<td class="md" valign="top"> ) </td>
|
||||
<td class="md" nowrap><code> [inline, virtual]</code></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellspacing="5" cellpadding="0" border="0">
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
<p>
|
||||
Read object.\ Calls base class, just in case that one had something to do.
|
||||
<p>
|
||||
The read and print methods should be compatible and have the same format. In principle, format is "plain": they just print a number <dl compact><dt><b>Parameters:</b></dt><dd>
|
||||
<table border="0" cellspacing="2" cellpadding="0">
|
||||
<tr><td valign="top"></td><td valign="top"><em>_is</em> </td><td>a std::istream. </td></tr>
|
||||
</table>
|
||||
</dl>
|
||||
<dl compact><dt><b>Exceptions:</b></dt><dd>
|
||||
<table border="0" cellspacing="2" cellpadding="0">
|
||||
<tr><td valign="top"></td><td valign="top"><em>runtime_std::exception</em> </td><td>If a valid object can't be read. </td></tr>
|
||||
</table>
|
||||
</dl>
|
||||
|
||||
<p>
|
||||
Implements <a class="el" href="classeo_persistent.html#a1">eoPersistent</a>.
|
||||
<p>
|
||||
Reimplemented in <a class="el" href="classeo_vector.html#a5">eoVector< FitT, GeneType ></a>, <a class="el" href="classeo_es_full.html#a3">eoEsFull< Fit ></a>, <a class="el" href="classeo_es_simple.html#a3">eoEsSimple< Fit ></a>, <a class="el" href="classeo_es_stdev.html#a3">eoEsStdev< Fit ></a>, <a class="el" href="classeo_bit.html#a3">eoBit< FitT ></a>, <a class="el" href="classeo_parse_tree.html#a6">eoParseTree< FType, Node ></a>, <a class="el" href="classeo_external_e_o.html#a3">eoExternalEO< Fit, External ></a>, <a class="el" href="classeo_vector.html#a5">eoVector< Fit, double ></a>, <a class="el" href="classeo_vector.html#a5">eoVector< FitT, double ></a>, and <a class="el" href="classeo_vector.html#a5">eoVector< FitT, bool ></a>.
|
||||
<p>
|
||||
Definition at line <a class="el" href="_e_o_8h-source.html#l00105">105</a> of file <a class="el" href="_e_o_8h-source.html">EO.h</a>.
|
||||
<p>
|
||||
Referenced by <a class="el" href="eo_vector_8h-source.html#l00107">eoVector< FitT, bool >::readFrom()</a>, <a class="el" href="eo_pop_8h-source.html#l00274">eoPop< Dummy >::readFrom()</a>, <a class="el" href="eo_parse_tree_8h-source.html#l00128">eoParseTree< FType, Node >::readFrom()</a>, <a class="el" href="eo_one_max_8h-source.html#l00072">eoOneMax< FitT >::readFrom()</a>, <a class="el" href="eo_external_e_o_8h-source.html#l00059">eoExternalEO< Fit, External >::readFrom()</a>, and <a class="el" href="eo_bit_8h-source.html#l00094">eoBit< FitT >::readFrom()</a>. </td>
|
||||
</tr>
|
||||
</table>
|
||||
<a class="anchor" name="z10_2" doxytag="EO::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<class F> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="md" nowrap valign="top">virtual void <a class="el" href="class_e_o.html">EO</a>< F >::printOn </td>
|
||||
<td class="md" valign="top">( </td>
|
||||
<td class="md" nowrap valign="top">std::ostream & </td>
|
||||
<td class="mdname1" valign="top" nowrap> <em>_os</em> </td>
|
||||
<td class="md" valign="top"> ) </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>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
<p>
|
||||
Write object.
|
||||
<p>
|
||||
Called printOn since it prints the object _on_ a stream. <dl compact><dt><b>Parameters:</b></dt><dd>
|
||||
<table border="0" cellspacing="2" cellpadding="0">
|
||||
<tr><td valign="top"></td><td valign="top"><em>_os</em> </td><td>A std::ostream. </td></tr>
|
||||
</table>
|
||||
</dl>
|
||||
|
||||
<p>
|
||||
Implements <a class="el" href="classeo_printable.html#a1">eoPrintable</a>.
|
||||
<p>
|
||||
Reimplemented in <a class="el" href="classeo_vector.html#a4">eoVector< FitT, GeneType ></a>, <a class="el" href="classeo_es_full.html#a2">eoEsFull< Fit ></a>, <a class="el" href="classeo_es_simple.html#a2">eoEsSimple< Fit ></a>, <a class="el" href="classeo_es_stdev.html#a2">eoEsStdev< Fit ></a>, <a class="el" href="classeo_bit.html#a2">eoBit< FitT ></a>, <a class="el" href="classeo_parse_tree.html#a5">eoParseTree< FType, Node ></a>, <a class="el" href="classeo_external_e_o.html#a4">eoExternalEO< Fit, External ></a>, <a class="el" href="classeo_string.html#z24_1">eoString< fitnessT ></a>, <a class="el" href="struct_dummy.html#a1">Dummy</a>, <a class="el" href="struct_dummy.html#a2">Dummy</a>, <a class="el" href="struct_dummy.html#a3">Dummy</a>, <a class="el" href="struct_dummy.html#a4">Dummy</a>, <a class="el" href="classeo_vector.html#a4">eoVector< Fit, double ></a>, <a class="el" href="classeo_vector.html#a4">eoVector< FitT, double ></a>, and <a class="el" href="classeo_vector.html#a4">eoVector< FitT, bool ></a>.
|
||||
<p>
|
||||
Definition at line <a class="el" href="_e_o_8h-source.html#l00129">129</a> of file <a class="el" href="_e_o_8h-source.html">EO.h</a>.
|
||||
<p>
|
||||
Referenced by <a class="el" href="t-eo_gen_op_8cpp-source.html#l00041">Dummy::printOn()</a>, <a class="el" href="eo_vector_8h-source.html#l00096">eoVector< FitT, bool >::printOn()</a>, <a class="el" href="eo_string_8h-source.html#l00058">eoString< fitnessT >::printOn()</a>, <a class="el" href="eo_parse_tree_8h-source.html#l00114">eoParseTree< FType, Node >::printOn()</a>, <a class="el" href="eo_one_max_8h-source.html#l00052">eoOneMax< FitT >::printOn()</a>, <a class="el" href="eo_external_e_o_8h-source.html#l00069">eoExternalEO< Fit, External >::printOn()</a>, and <a class="el" href="eo_bit_8h-source.html#l00082">eoBit< FitT >::printOn()</a>. </td>
|
||||
</tr>
|
||||
</table>
|
||||
<hr>The documentation for this class was generated from the following files:<ul>
|
||||
<li><a class="el" href="_e_o_8h-source.html">EO.h</a><li><a class="el" href="fitness__traits_8cpp-source.html">fitness_traits.cpp</a></ul>
|
||||
<hr size="1"><address style="align: right;"><small>Generated on Thu Oct 19 05:06:47 2006 for EO by
|
||||
<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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue