Chromosome::Representation::GaChromosomeValue< TYPE > Class Template Reference

This class is used by GaMultiValueChromosome template class for extracting of single values from chromosome's code and other manipulation on chromosome's code. More...

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

Inherits Chromosome::Representation::GaCodeValue.

List of all members.

Public Member Functions

virtual void GACALL Initialize ()
 Detailed description can be found in specification of GaCodeValue::Initialize.
virtual void GACALL FromBuffer (const GaCodeValuesBuffer &buffer, int pos)
 Detailed description can be found in specification of GaCodeValue::FromBuffer.
 GaChromosomeValue (TYPE value)
 This constructor initializes value.
 GaChromosomeValue ()
 This constructor calls Initialize method.
TYPE GACALL GetValue () const
 This method is not thread-safe.
void GACALL SetValue (TYPE value)
 SetValue method sets stored value.

Private Attributes

TYPE _value
 Single value of chromosome's code.


Detailed Description

template<typename TYPE>
class Chromosome::Representation::GaChromosomeValue< TYPE >

This class is used by GaMultiValueChromosome template class for extracting of single values from chromosome's code and other manipulation on chromosome's code.

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.

Parameters:
TYPE type of value.

Constructor & Destructor Documentation

template<typename TYPE>
Chromosome::Representation::GaChromosomeValue< TYPE >::GaChromosomeValue ( TYPE  value  )  [inline]

This constructor initializes value.

Parameters:
value user-defined value.

template<typename TYPE>
Chromosome::Representation::GaChromosomeValue< TYPE >::GaChromosomeValue (  )  [inline]

This constructor calls Initialize method.


Member Function Documentation

template<typename TYPE>
virtual void GACALL Chromosome::Representation::GaChromosomeValue< TYPE >::Initialize (  )  [inline, virtual]

Detailed description can be found in specification of GaCodeValue::Initialize.

Implements Chromosome::Representation::GaCodeValue.

template<typename TYPE>
virtual void GACALL Chromosome::Representation::GaChromosomeValue< TYPE >::FromBuffer ( const GaCodeValuesBuffer buffer,
int  pos 
) [inline, virtual]

Detailed description can be found in specification of GaCodeValue::FromBuffer.

Implements Chromosome::Representation::GaCodeValue.

template<typename TYPE>
TYPE GACALL Chromosome::Representation::GaChromosomeValue< TYPE >::GetValue (  )  const [inline]

This method is not thread-safe.

Returns:
Method returns stored value.

template<typename TYPE>
void GACALL Chromosome::Representation::GaChromosomeValue< TYPE >::SetValue ( TYPE  value  )  [inline]

SetValue method sets stored value.

This method is not thread safe.

Parameters:
value new value.


Member Data Documentation

template<typename TYPE>
TYPE Chromosome::Representation::GaChromosomeValue< TYPE >::_value [private]

Single value of chromosome's code.


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

Genetic Algorithm Library
Coolsoft Software Development