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 >.
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. |
GaSizableCode
interface should be implemented by chromosomes' classes which code supports adding of new values into it or removing from it.
virtual void GACALL Chromosome::Representation::GaSizableCode::Remove | ( | int | start, | |
int | size | |||
) | [pure virtual] |
This method removes values start
position to start + size
position.
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.
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 >.