Chromosome::Representation::GaSizableCode Class Reference

GaSizableCode interface should be implemented by chromosomes' classes which code supports adding of new values into it or removing from it. More...

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

Inherited by Chromosome::Representation::GaBinaryChromosome, and Chromosome::Representation::GaMultiValueChromosome< TYPE >.

List of all members.

Public Member Functions

virtual void GACALL Remove (int start, int size)=0
 This method removes values start position to start + size position.
virtual void GACALL Insert (int start, GaCodeValue *data, int size)=0
 This method inserts new values into chromosome's code.


Detailed Description

GaSizableCode interface should be implemented by chromosomes' classes which code supports adding of new values into it or removing from it.


Member Function Documentation

virtual void GACALL Chromosome::Representation::GaSizableCode::Remove ( int  start,
int  size 
) [pure virtual]

This method removes values start position to start + size position.

Parameters:
start position of first value which is going to be removed.
size number of values which is going to be removed.

Implemented in Chromosome::Representation::GaBinaryChromosome, and Chromosome::Representation::GaMultiValueChromosome< TYPE >.

virtual void GACALL Chromosome::Representation::GaSizableCode::Insert ( int  start,
GaCodeValue data,
int  size 
) [pure virtual]

This method inserts new values into chromosome's code.

Parameters:
start position at which new values are going to be inserted into code.
data array of new values which is going to be inserted.
size number of values which are going to be inserted.

Implemented in Chromosome::Representation::GaBinaryChromosome, and Chromosome::Representation::GaMultiValueChromosome< TYPE >.


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

Genetic Algorithm Library
Coolsoft Software Development