#include <D:/Temp/vs/gal/source/ValueSets.h>
Inherits Chromosome::Representation::GaValueSet< T >< T >.
Public Member Functions | |
GaUnboundValueSet (GaRandom< T > *randomGenerator) | |
This constructor initializes value set with random generator. | |
virtual T | GenerateRandom () const |
More details are given in specification of GaValueSet::GenerateRandom method. | |
virtual bool | Inverse (const T &value, T &inverted) const |
More details are given in specification of GaValueSet::Inverse method. | |
virtual bool | Belongs (const T &value) const |
More details are given in specification of GaValueSet::ClosestValue method. | |
virtual const T & | ClosestValue (const T &value) const |
More details are given in specification of GaValueSet::ClosestValue method. | |
Private Attributes | |
GaRandom< T > * | _randomGenerator |
Pointer to random generator which is used for generating of random values. |
This class has built-in synchronizator so it is allowed to use LOCK_OBJECT
and LOCK_THIS_OBJECT
macros with instances of this class, but no public or private methods are thread-safe.
T | type of data in value set. This type must support unary operators - . |
Chromosome::Representation::GaUnboundValueSet< T >::GaUnboundValueSet | ( | GaRandom< T > * | randomGenerator | ) | [inline] |
This constructor initializes value set with random generator.
randomGenerator | pointer to random generator. |
virtual T Chromosome::Representation::GaUnboundValueSet< T >::GenerateRandom | ( | ) | const [inline, virtual] |
More details are given in specification of GaValueSet::GenerateRandom method.
This method is not thread-safe.
Implements Chromosome::Representation::GaValueSet< T >.
virtual bool Chromosome::Representation::GaUnboundValueSet< T >::Inverse | ( | const T & | value, | |
T & | inverted | |||
) | const [inline, virtual] |
More details are given in specification of GaValueSet::Inverse method.
This method is not thread-safe.
Implements Chromosome::Representation::GaValueSet< T >.
virtual bool Chromosome::Representation::GaUnboundValueSet< T >::Belongs | ( | const T & | value | ) | const [inline, virtual] |
More details are given in specification of GaValueSet::ClosestValue method.
This method is not thread-safe.
Implements Chromosome::Representation::GaValueSet< T >.
virtual const T& Chromosome::Representation::GaUnboundValueSet< T >::ClosestValue | ( | const T & | value | ) | const [inline, virtual] |
More details are given in specification of GaValueSet::ClosestValue method.
This method is not thread-safe.
Implements Chromosome::Representation::GaValueSet< T >.
GaRandom<T>* Chromosome::Representation::GaUnboundValueSet< T >::_randomGenerator [private] |
Pointer to random generator which is used for generating of random values.