GaChromosomeParamsBlock
class stores only pointer to chromosomes' parameters.
More...
#include <D:/Temp/vs/gal/source/Chromosome.h>
Inherited by Chromosome::GaChromosomeOperationsBlock.
Public Member Functions | |
GaChromosomeParamsBlock (GaChromosomeParams *parameters) | |
This constructor initializes CCB with pointer to chromosomes' parameters. | |
GaChromosomeParamsBlock (const GaChromosomeParamsBlock &rhs) | |
This is copy constructor. The constructor doesn't create copy of parameters' object, it only copies pointer to chromosomes' parameters. | |
GaChromosomeParamsBlock () | |
This constructor initializes empty CCB. | |
const GaChromosomeParams &GACALL | GetParameters () const |
This method is not thread-safe. | |
void GACALL | SetParameters (GaChromosomeParams *params) |
SetParameters method sets pointer to chromosomes' parameters. | |
Protected Attributes | |
GaChromosomeParams * | _parameters |
Pointer to chromosomes' parameters. | |
Friends | |
class | GaDefaultChromosome |
GaChromosomeParamsBlock
class stores only pointer to chromosomes' parameters.
This class has no built-in synchronizator, so LOCK_OBJECT
and LOCK_THIS_OBJECT
macros cannot be used with instances of this class. No public or private methods are thread-safe.
Chromosome::GaChromosomeParamsBlock::GaChromosomeParamsBlock | ( | GaChromosomeParams * | parameters | ) | [inline] |
This constructor initializes CCB with pointer to chromosomes' parameters.
parameters | pointer to chromosomes' parameters. |
Chromosome::GaChromosomeParamsBlock::GaChromosomeParamsBlock | ( | const GaChromosomeParamsBlock & | rhs | ) | [inline] |
This is copy constructor. The constructor doesn't create copy of parameters' object, it only copies pointer to chromosomes' parameters.
rhs | reference to CCB which is copied. |
Chromosome::GaChromosomeParamsBlock::GaChromosomeParamsBlock | ( | ) | [inline] |
This constructor initializes empty CCB.
const GaChromosomeParams& GACALL Chromosome::GaChromosomeParamsBlock::GetParameters | ( | ) | const [inline] |
This method is not thread-safe.
void GACALL Chromosome::GaChromosomeParamsBlock::SetParameters | ( | GaChromosomeParams * | params | ) | [inline] |
SetParameters
method sets pointer to chromosomes' parameters.
This method is not thread-safe.
params | pointer to new parameters. |
friend class GaDefaultChromosome [friend] |
Pointer to chromosomes' parameters.