Chromosome::Representation::GaUnboundValueSet< T > Class Template Reference

This template represents value set with no additional limitations, except limitation introduced by the type and random generator used to generate values. More...

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

Inherits Chromosome::Representation::GaValueSet< T >< T >.

List of all members.

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.


Detailed Description

template<typename T>
class Chromosome::Representation::GaUnboundValueSet< T >

This template represents value set with no additional limitations, except limitation introduced by the type and random generator used to generate 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.

Parameters:
T type of data in value set. This type must support unary operators -.

Constructor & Destructor Documentation

template<typename T>
Chromosome::Representation::GaUnboundValueSet< T >::GaUnboundValueSet ( GaRandom< T > *  randomGenerator  )  [inline]

This constructor initializes value set with random generator.

Parameters:
randomGenerator pointer to random generator.


Member Function Documentation

template<typename T>
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 >.

template<typename 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 >.

template<typename 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 >.

template<typename 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 >.


Member Data Documentation

template<typename T>
GaRandom<T>* Chromosome::Representation::GaUnboundValueSet< T >::_randomGenerator [private]

Pointer to random generator which is used for generating of random values.


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

Genetic Algorithm Library
Coolsoft Software Development