Updated eoBreeder to use the even newer general operator interface
This commit is contained in:
parent
697d38b372
commit
6d61aa2811
3 changed files with 5 additions and 5 deletions
|
|
@ -35,8 +35,8 @@
|
||||||
#include <eoPopOps.h> // eoTransform
|
#include <eoPopOps.h> // eoTransform
|
||||||
#include <eoOpSelector.h> // eoOpSelector
|
#include <eoOpSelector.h> // eoOpSelector
|
||||||
|
|
||||||
#include "eoRandomIndiSelector.h"
|
#include <eoRandomIndiSelector.h>
|
||||||
#include "eoBackInserter.h"
|
#include <eoBackInserter.h>
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
|
@ -93,7 +93,7 @@ template<class Chrom> class eoBreeder: public eoMonPopOp<Chrom>
|
||||||
eoRandomIndiSelector<Chrom> selector;
|
eoRandomIndiSelector<Chrom> selector;
|
||||||
eoBackInserter<Chrom> inserter;
|
eoBackInserter<Chrom> inserter;
|
||||||
|
|
||||||
(*Gop)(selector.init(pop, orgsize, i), inserter.bind(pop));
|
(*Gop)(selector.bind(pop, orgsize, i), inserter.bind(pop));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@ public:
|
||||||
modified or whatever
|
modified or whatever
|
||||||
@param _id a previously assigned ID
|
@param _id a previously assigned ID
|
||||||
@throw runtime_exception if the ID does not exist*/
|
@throw runtime_exception if the ID does not exist*/
|
||||||
virtual const eoOp<EOT>& getOp( ID _id ) = 0;
|
virtual eoOp<EOT>& getOp( ID _id ) = 0;
|
||||||
|
|
||||||
/** Remove an operator from the operator set
|
/** Remove an operator from the operator set
|
||||||
@param _id a previously assigned ID
|
@param _id a previously assigned ID
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@
|
||||||
#ifndef eoRandomIndiSelector_h
|
#ifndef eoRandomIndiSelector_h
|
||||||
#define eoRandomIndiSelector_h
|
#define eoRandomIndiSelector_h
|
||||||
|
|
||||||
#include "eoIndiSelector.h"
|
#include <eoIndiSelector.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\ingroup selectors
|
\ingroup selectors
|
||||||
|
|
|
||||||
Reference in a new issue