Chromosome::GaFitnessOperation Class Reference

GaFitnessOperation class is base for fitness operations. More...

#include <D:/Temp/vs/gal/source/ChromosomeOperations.h>

Inherits Common::GaOperation.

List of all members.

Public Member Functions

float GACALL operator() (GaChromosomePtr chromosome) const
 This operator extract raw pointer to parent chromosomes, and delegate responsibility to operator ()(const GaChromosome*).
virtual float GACALL operator() (const GaChromosome *chromosome) const =0
 This operator calculates fitness value of the chromosome.


Detailed Description

GaFitnessOperation class is base for fitness operations.


Member Function Documentation

float GACALL Chromosome::GaFitnessOperation::operator() ( GaChromosomePtr  chromosome  )  const [inline]

This operator extract raw pointer to parent chromosomes, and delegate responsibility to operator ()(const GaChromosome*).

Parameters:
chromosome smart pointer chromosome.
Returns:
Method returns calculated fitness value of the chromosome.

virtual float GACALL Chromosome::GaFitnessOperation::operator() ( const GaChromosome chromosome  )  const [pure virtual]

This operator calculates fitness value of the chromosome.

Parameters:
chromosome raw pointer to mutating chromosome.
Returns:
Method returns calculated fitness value of the chromosome.


The documentation for this class was generated from the following file:

Genetic Algorithm Library
Coolsoft Software Development