#include <source/MultiValueChromosome.h>
Inherits Chromosome::Representation::GaCodeValue.
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. | |
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.
| TYPE | type of value. |
| Chromosome::Representation::GaChromosomeValue< TYPE >::GaChromosomeValue | ( | TYPE | value | ) | [inline] |
This constructor initializes value.
| value | user-defined value. |
| Chromosome::Representation::GaChromosomeValue< TYPE >::GaChromosomeValue | ( | ) | [inline] |
This constructor calls Initialize method.
| virtual void GACALL Chromosome::Representation::GaChromosomeValue< TYPE >::Initialize | ( | ) | [inline, virtual] |
Detailed description can be found in specification of GaCodeValue::Initialize.
Implements Chromosome::Representation::GaCodeValue.
| 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.
| TYPE GACALL Chromosome::Representation::GaChromosomeValue< TYPE >::GetValue | ( | ) | const [inline] |
This method is not thread-safe.
| void GACALL Chromosome::Representation::GaChromosomeValue< TYPE >::SetValue | ( | TYPE | value | ) | [inline] |
SetValue method sets stored value.
This method is not thread safe.
| value | new value. |
TYPE Chromosome::Representation::GaChromosomeValue< TYPE >::_value [private] |
Single value of chromosome's code.