/** -*- mode: c++; c-indent-level:
4; c++-member-init-indent: 8; comment-column: 35; -*-
The above line is usefulin Emacs-like editors */ /* Template for creating a new representation in EO ================================================ */ #ifndef _eoOneMax_h #define _eoOneMax_h /** * Always write a comment in this format before class definition * if you want the class to be documented by Doxygen * Note that you MUST derive your structure from EO<fitT> * but you MAY use some other already prepared class in the hierarchy * like eoVector for instance, if you handle a vector of something.... * If you create a structure from scratch, * the only thing you need to provide are * a default constructor * IO routines printOn and readFrom * * Note that operator<< and operator>> are defined at EO level * using these routines */ |
template< class FitT>
class eoOneMax: public EO<FitT> { public: /** Ctor: you MUST provide a default ctor. * though such individuals will generally be processed * by some eoInit object */ eoOneMax() { |
// START Code of default Ctor of an eoOneMax object
// END Code of default Ctor of an eoOneMax object |
}
virtual ~eoOneMax()
|
// START Code of Destructor of an eoEASEAGenome object
// END Code of Destructor of an eoEASEAGenome object |
}
virtual string className() const
{ return "eoOneMax"; }
|
/** printing... */
void printOn(ostream& os) const { // First write the fitness EO<FitT>::printOn(os); os << ' '; |
// START Code of default output
/** HINTS
// END Code of default output |
}
/** reading...
|
// START Code of input
/** HINTS
// END Code of input |
}
|
private: // put all data here |
//
START Private data of an eoOneMax object
// END Private data of an eoOneMax object |
};
#endif |