paradiseo/eo/tutorial/Templates/mutation.tmpl
evomarc f0813c55ca Added the continue.tmpl template - and modified the html pages accordingly
(though eoCheckPoint.html is still a long way to complete).
Added some comments in all template files - and replaced
the protected by private (don't remember why these were protected!!!).
2001-04-05 16:47:54 +00:00

51 lines
1,007 B
C++

/** -*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*-
The above line is usefulin Emacs-like editors
*/
/*
Template for simple mutation operators
======================================
*/
#ifndef eoMyDerivedMonOp_H
#define eoMyDerivedMonOp_H
#include <eoOp.h>
/**
Always write a comment in this format before class definition
if you want the class to be documented by Doxygen
*/
template<class Indi>
class eoMyDerivedMonOp: public eoMonOp<Indi>
{
public:
/**
* (Default) Constructor.
*/
eoMyDerivedMonOp(paramType _anyParameter) :
anyParameter(_anyParameter) {}
/// The class name. Used to display statistics
string className() const { return "eoMyDerivedMonOp"; }
/**
* modifies the parent
* @param Indi The parent
*/
bool operator()(Indi& Indi)
{
// do whatever needs to be done
// if Indi has been modified
return true;
// otherwise
// return false;
}
private:
paramType anyParameter
};
#endif