Added the calls to EO::printOn and EO::readFrom in the corresponding methods
so th euser does not forget to use these before writing/reading the actual eo
This commit is contained in:
parent
8b5b42a9f8
commit
9c6121604a
1 changed files with 11 additions and 0 deletions
|
|
@ -40,11 +40,20 @@ public:
|
|||
// END Code of default Ctor of an eoMyStruct object
|
||||
}
|
||||
|
||||
virtual ~eoMyStruct()
|
||||
{
|
||||
// START Code of Destructor of an eoEASEAGenome object
|
||||
// END Code of Destructor of an eoEASEAGenome object
|
||||
}
|
||||
|
||||
virtual string className() const { return "eoMyStruct"; }
|
||||
|
||||
/** printing... */
|
||||
void printOn(ostream& os) const
|
||||
{
|
||||
// First write the fitness
|
||||
EO<FitT>::printOn(os);
|
||||
os << ' ';
|
||||
// START Code of default output
|
||||
|
||||
/** HINTS
|
||||
|
|
@ -60,6 +69,8 @@ public:
|
|||
*/
|
||||
void readFrom(istream& is)
|
||||
{
|
||||
// of course you should read the fitness first!
|
||||
EO<FitT>::readFrom(is);
|
||||
// START Code of input
|
||||
|
||||
/** HINTS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue