Chromosome::GaChromosomeParamsBlock Class Reference

This class represent base for chromosome's configuration block (CCB). CCB stores entire setup of chromosome. GaChromosomeParamsBlock class stores only pointer to chromosomes' parameters. More...

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

Inherited by Chromosome::GaChromosomeOperationsBlock.

List of all members.

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


Detailed Description

This class represent base for chromosome's configuration block (CCB). CCB stores entire setup of chromosome. 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.


Constructor & Destructor Documentation

Chromosome::GaChromosomeParamsBlock::GaChromosomeParamsBlock ( GaChromosomeParams parameters  )  [inline]

This constructor initializes CCB with pointer to chromosomes' parameters.

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.

Parameters:
rhs reference to CCB which is copied.

Chromosome::GaChromosomeParamsBlock::GaChromosomeParamsBlock (  )  [inline]

This constructor initializes empty CCB.


Member Function Documentation

const GaChromosomeParams& GACALL Chromosome::GaChromosomeParamsBlock::GetParameters (  )  const [inline]

This method is not thread-safe.

Returns:
Method returns reference to chromosomes� parameters.

void GACALL Chromosome::GaChromosomeParamsBlock::SetParameters ( GaChromosomeParams params  )  [inline]

SetParameters method sets pointer to chromosomes' parameters.

This method is not thread-safe.

Parameters:
params pointer to new parameters.


Friends And Related Function Documentation

friend class GaDefaultChromosome [friend]


Member Data Documentation

Pointer to chromosomes' parameters.


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

Genetic Algorithm Library
Coolsoft Software Development