#include <time.h>
#include "Platform.h"
#include "Threading.h"
Namespaces | |
namespace | Common |
Classes | |
union | Common::GaUnsignedIntToFloat |
This union is used for conversation from 32-bits long integer random number to single precision floating point number in interval (0, 1). More... | |
union | Common::GaUnsignedIntToDouble |
This union is used for conversation from 64-bits long integer random number to double precision floating point number in interval (0, 1). More... | |
class | Common::GaRandomGenerator |
GaRandomGenerator class implements algorithm for generating 64-bits wide random unsigned integers and floating-point numbers. It takes care of architecture's endianness, but underlying CPU architecture must support floating-point by IEEE 754 standard. GaRandomGenerator class doesn't implement GaRandom interface. Primary purpose of this class is to provide service for generating random numbers for classes which implement GaRandom interface. More... | |
class | Common::GaRandom< TYPE > |
Interface for random value generators. More... | |
class | Common::GaRandomInteger |
GaRandomInteger class generates random 32-bits wide integer numbers. The class implements GaRandom interface. This class has no built-in synchronizator, so LOCK_OBJECT and LOCK_THIS_OBJECT macros cannot be used with instances of this class, but all public methods are thread-safe. More... | |
class | Common::GaRandomFloat |
GaRandomFloat class generates random single precision floating-point numbers. Targeted architecture must support IEEE 754 standard. The class implements GaRandom interface. This class has no built-in synchronizator, so LOCK_OBJECT and LOCK_THIS_OBJECT macros cannot be used with instances of this class, but all public methods are thread-safe. More... | |
class | Common::GaRandomDouble |
GaRandomDouble class generates random double precision floating-point numbers. Class takes care about endianness of the architecture. Targeted architecture must support IEEE 754 standard. The class implements GaRandom interface. This class has no built-in synchronizator, so LOCK_OBJECT and LOCK_THIS_OBJECT macros cannot be used with instances of this class, but all public methods are thread-safe. More... | |
class | Common::GaRandomBool |
GaRandomBool class generates random boolean values. It supports generating boolean with defined probabilities of true and false states. The class implements GaRandom interface. This class has no built-in synchronizator, so LOCK_OBJECT and LOCK_THIS_OBJECT macros cannot be used with instances of this class, but all public methods are thread-safe. More... | |
Enumerations | |
enum | Common::GaRandomParams { Common::GRP_BUFFER_SIZE = 17, Common::GRP_OFFSET = 10, Common::GRP_ROTATION_1 = 19, Common::GRP_ROTATION_2 = 27 } |
Parameters used by GaRandomGenerator to generate random numbers. More... |