#include <eoEvalFuncPtr.h>
Inheritance diagram for eoEvalFuncPtr< EOT, FitT, FunctionArg >:

Public Member Functions | |
| eoEvalFuncPtr (FitT(*_eval)(FunctionArg)) | |
| Applies the function to the chromosome and sets the fitness of the Chrom. | |
| virtual void | operator() (EOT &_eo) |
| Effectively applies the evaluation function to an EO. | |
Private Attributes | |
| FitT(* | evalFunc )(FunctionArg) |
That way, old style C or C++ functions can be adapted to EO function classes.
Definition at line 43 of file eoEvalFuncPtr.h.
| eoEvalFuncPtr< EOT, FitT, FunctionArg >::eoEvalFuncPtr | ( | FitT(*)(FunctionArg) | _eval | ) | [inline] |
Applies the function to the chromosome and sets the fitness of the Chrom.
Thus, the evaluation function need not be worried about that.
| _eval | pointer to the evaluation function, takes a EOT as an argument and returns the fitness |
Definition at line 51 of file eoEvalFuncPtr.h.
1.4.7