Common::GaRandom< TYPE > Class Template Reference

Interface for random value generators. More...

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

List of all members.

Public Member Functions

virtual TYPE GACALL Generate ()=0
 This method generates random values of TYPE with no specific range.
virtual TYPE GACALL Generate (const TYPE &max)=0
 This method generates random value of TYPE with specified maximum.
virtual TYPE GACALL Generate (const TYPE &min, const TYPE &max)=0
 This method generates random value of TYPE within specified range of values.


Detailed Description

template<typename TYPE>
class Common::GaRandom< TYPE >

Interface for random value generators.

Parameters:
TYPE type of generated values.

Member Function Documentation

template<typename TYPE>
virtual TYPE GACALL Common::GaRandom< TYPE >::Generate (  )  [pure virtual]

This method generates random values of TYPE with no specific range.

Returns:
Returns generate random value.

Implemented in Common::GaRandomInteger, Common::GaRandomFloat, Common::GaRandomDouble, and Common::GaRandomBool.

template<typename TYPE>
virtual TYPE GACALL Common::GaRandom< TYPE >::Generate ( const TYPE &  max  )  [pure virtual]

This method generates random value of TYPE with specified maximum.

Parameters:
max maximal value which can be generated.
Returns:
Returns generate random value.

Implemented in Common::GaRandomInteger, Common::GaRandomFloat, Common::GaRandomDouble, and Common::GaRandomBool.

template<typename TYPE>
virtual TYPE GACALL Common::GaRandom< TYPE >::Generate ( const TYPE &  min,
const TYPE &  max 
) [pure virtual]

This method generates random value of TYPE within specified range of values.

Parameters:
min minimal value which can be generated.
max maximal value which can be generated.
Returns:
Returns generate random value.

Implemented in Common::GaRandomInteger, Common::GaRandomFloat, Common::GaRandomDouble, and Common::GaRandomBool.


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

Genetic Algorithm Library
Coolsoft Software Development