#include <D:/Temp/vs/gal/source/BinaryChromosome.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. | |
GaBit (bool state) | |
This constructor initializes bit with user-defined state. | |
GaBit () | |
This constructor initializes bit with random state. It calls Initialize method. | |
bool GACALL | GetBitState () const |
This method is not thread-safe. | |
void GACALL | SetBitState (bool state) |
SetBitState method sets state of the bit. | |
Private Attributes | |
bool | _bitState |
This attribute stores state of the bit. |
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::Representation::GaBit::GaBit | ( | bool | state | ) | [inline] |
This constructor initializes bit with user-defined state.
state | state of the bit. |
Chromosome::Representation::GaBit::GaBit | ( | ) | [inline] |
This constructor initializes bit with random state. It calls Initialize method.
virtual void GACALL Chromosome::Representation::GaBit::Initialize | ( | ) | [inline, virtual] |
Detailed description can be found in specification of GaCodeValue::Initialize.
Implements Chromosome::Representation::GaCodeValue.
virtual void GACALL Chromosome::Representation::GaBit::FromBuffer | ( | const GaCodeValuesBuffer & | buffer, | |
int | pos | |||
) | [inline, virtual] |
Detailed description can be found in specification of GaCodeValue::FromBuffer.
Implements Chromosome::Representation::GaCodeValue.
bool GACALL Chromosome::Representation::GaBit::GetBitState | ( | ) | const [inline] |
This method is not thread-safe.
void GACALL Chromosome::Representation::GaBit::SetBitState | ( | bool | state | ) | [inline] |
SetBitState
method sets state of the bit.
This method is not thread-safe.
state | new state. |
bool Chromosome::Representation::GaBit::_bitState [private] |
This attribute stores state of the bit.