ECF 1.5
MutFunctionSwap.h
1#ifndef ECF_CARTESIAN_MUTFUNCTIONSWAP_H
2#define ECF_CARTESIAN_MUTFUNCTIONSWAP_H
3#include <ECF_base.h>
4namespace cartesian{
6 {
7 public:
8 void registerParameters(StateP state);
9 bool initialize(StateP state);
10 bool mutate(GenotypeP gene);
11 };
12 typedef boost::shared_ptr<MutateFunctionSwap> MutateFunctionSwapP;
13}
14#endif //ECF_CARTESIAN_MUTFUNCTIONSWAP_H
MutationOp base class.
Definition: Mutation.h:17
bool mutate(GenotypeP gene)
Performs mutation of a genotype object. The genotype object must be initialized!
bool initialize(StateP state)
Initialize mutation operator. Called before first mutation operation.
void registerParameters(StateP state)
Register parameters with the system. Called before MutationOp::initialize.