GaMutationOperation class is base for mutation operations.
More...
#include <source/ChromosomeOperations.h>
Inherits Common::GaOperation.
Inherited by Chromosome::MutationOperations::GaFlipMutation, Chromosome::MutationOperations::GaInvertMutation, and Chromosome::MutationOperations::GaSwapMutation.
Public Member Functions | |
| void GACALL | operator() (GaChromosomePtr chromosome) const |
This operator extract raw pointer to parent chromosomes, and delegate responsibility to operator ()(const GaChromosome*). | |
| virtual void GACALL | operator() (GaChromosome *chromosome) const =0 |
| This operator performs mutation operation. | |
GaMutationOperation class is base for mutation operations.
| void GACALL Chromosome::GaMutationOperation::operator() | ( | GaChromosomePtr | chromosome | ) | const [inline] |
This operator extract raw pointer to parent chromosomes, and delegate responsibility to operator ()(const GaChromosome*).
| chromosome | smart pointer mutating chromosome. |
| virtual void GACALL Chromosome::GaMutationOperation::operator() | ( | GaChromosome * | chromosome | ) | const [pure virtual] |
This operator performs mutation operation.
| chromosome | raw pointer to mutating chromosome. |
Implemented in Chromosome::MutationOperations::GaFlipMutation, Chromosome::MutationOperations::GaInvertMutation, and Chromosome::MutationOperations::GaSwapMutation.