Chromosome::GaCrossoverOperation Class Reference

GaCrossoverOperation class is base for crossover operations. More...

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

Inherits Common::GaOperation.

Inherited by Chromosome::CrossoverOperations::GaAddCrossover, Chromosome::CrossoverOperations::GaMidpointCrossover, Chromosome::CrossoverOperations::GaMultiValueCrossover, and Chromosome::CrossoverOperations::GaSubCrossover.

List of all members.

Public Member Functions

GaChromosomePtr GACALL operator() (GaChromosomePtr parent1, GaChromosomePtr parent2) const
 This operator extract raw pointer to parent chromosomes, and delegate responsibility to operator ()(const GaChromosome*, const GaChromosome*).
virtual GaChromosomePtr GACALL operator() (const GaChromosome *parent1, const GaChromosome *parent2) const =0
 This operator performs crossover operation over two parents and create on child.


Detailed Description

GaCrossoverOperation class is base for crossover operations.


Member Function Documentation

GaChromosomePtr GACALL Chromosome::GaCrossoverOperation::operator() ( GaChromosomePtr  parent1,
GaChromosomePtr  parent2 
) const [inline]

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

Parameters:
parent1 smart pointer to the first parent.
parent2 smart pointer to the seconf parent.
Returns:
Method returns smart pointer to newly created offspring.

virtual GaChromosomePtr GACALL Chromosome::GaCrossoverOperation::operator() ( const GaChromosome parent1,
const GaChromosome parent2 
) const [pure virtual]

This operator performs crossover operation over two parents and create on child.

Parameters:
parent1 raw pointer to the first parent.
parent2 raw pointer to the seconf parent.
Returns:
Method returns smart pointer to newly created offspring.

Implemented in Chromosome::CrossoverOperations::GaMultiValueCrossover, Chromosome::CrossoverOperations::GaAddCrossover, Chromosome::CrossoverOperations::GaSubCrossover, and Chromosome::CrossoverOperations::GaMidpointCrossover.


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

Genetic Algorithm Library
Coolsoft Software Development