Modified the tempaltes to take into account
- the last modifications of the eopopulator class - the include files (were totally missing in the old templates) - JJ's demand for one class - one file :-)
This commit is contained in:
parent
d634d95838
commit
7ec7a856e5
6 changed files with 301 additions and 7 deletions
|
|
@ -1,11 +1,16 @@
|
|||
Template for simple operators
|
||||
=============================
|
||||
/*
|
||||
Template for simple mutation operators
|
||||
======================================
|
||||
*/
|
||||
|
||||
===========================================================================
|
||||
eoMon : mutation operators
|
||||
======
|
||||
#ifndef eoMyDerivedMonOp_H
|
||||
#define eoMyDerivedMonOp_H
|
||||
|
||||
template<class Indi> class eoMyDerivedMonOp: public eoMonOp<Indi>
|
||||
|
||||
#include <eoOp.h>
|
||||
|
||||
template<class Indi>
|
||||
class eoMyDerivedMonOp: public eoMonOp<Indi>
|
||||
{
|
||||
public:
|
||||
/**
|
||||
|
|
@ -18,7 +23,7 @@ public:
|
|||
string className() const { return "eoMyDerivedMonOp"; }
|
||||
|
||||
/**
|
||||
* eoMon crossover - modifies the parent
|
||||
* modifies the parent
|
||||
* @param Indi The parent
|
||||
*/
|
||||
bool operator()(Indi& Indi)
|
||||
|
|
@ -34,3 +39,4 @@ protected:
|
|||
paramType anyParameter
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue