This class generates a random number of type T generator with implement class I by process.
More...
template<typename T, class I, class D>
class TRNG_RandomNumberGenerator< T, I, D >
This class generates a random number of type T generator with implement class I by process.
- Author
- Stephane Despreaux
- Version
- 2.0
template<typename T , class I , class D >
return nthe memory size of the included associations
- Returns
- the memory size of the storage in bytes 1 Kb = 1024 bytes 1 Mb = 1024 Kb 1 Gb = 1024 Mb 1 Tb = 1024 Gb 1 Hb = 1024 Tb
Reimplemented from RAND_RandomNumberGenerator< T, I, D >.
Reimplemented in TRNG_YARN2, TRNG_ParallelRandomNumberGenerator< T, I, D >, TRNG_ParallelRandomNumberGenerator< int32_t, trng::mrg5, TRNG_MRG5 >, TRNG_ParallelRandomNumberGenerator< int32_t, trng::mrg5s, TRNG_MRG5s >, TRNG_ParallelRandomNumberGenerator< int32_t, trng::mrg3s, TRNG_MRG3s >, TRNG_ParallelRandomNumberGenerator< int32_t, trng::mrg3, TRNG_MRG3 >, TRNG_ParallelRandomNumberGenerator< int32_t, trng::mrg2, TRNG_MRG2 >, TRNG_ParallelRandomNumberGenerator< int32_t, trng::yarn2, TRNG_YARN2 >, TRNG_ParallelRandomNumberGenerator< int32_t, trng::mrg4, TRNG_MRG4 >, TRNG_ParallelRandomNumberGenerator< int32_t, trng::lcg64, TRNG_LCG64 >, TRNG_MT19937, TRNG_MRG5s, TRNG_MRG5, TRNG_MRG4, TRNG_MRG3s, TRNG_MRG3, TRNG_MRG2, and TRNG_LCG64.
template<typename T , class I , class D >
return the memory size of the class and the memory size of all its attributes/associations
- Returns
- the memory size of the class and the memory size of its attributes/associations in bytes The mamory size is :
- the added size of the base classes which contains:
- the primary attributes size depends on the order: (first delare the smallest attributes size
- all virtual functions costs <pointer-size> (4 32xor 8 64x) bytes by virtual function
- virtual inherihtance will increase of (4 or 8) bytes
- we add the size of the contains values of the attributes : for example the size of a string is the length of the string 1 octet = 1 byte 1 Ko = 1024 bytes 1 Mo = 1024 Ko 1 Go = 1024 Mo
Reimplemented from RAND_RandomNumberGenerator< T, I, D >.
Reimplemented in TRNG_YARN2, TRNG_ParallelRandomNumberGenerator< T, I, D >, TRNG_ParallelRandomNumberGenerator< int32_t, trng::mrg5, TRNG_MRG5 >, TRNG_ParallelRandomNumberGenerator< int32_t, trng::mrg5s, TRNG_MRG5s >, TRNG_ParallelRandomNumberGenerator< int32_t, trng::mrg3s, TRNG_MRG3s >, TRNG_ParallelRandomNumberGenerator< int32_t, trng::mrg3, TRNG_MRG3 >, TRNG_ParallelRandomNumberGenerator< int32_t, trng::mrg2, TRNG_MRG2 >, TRNG_ParallelRandomNumberGenerator< int32_t, trng::yarn2, TRNG_YARN2 >, TRNG_ParallelRandomNumberGenerator< int32_t, trng::mrg4, TRNG_MRG4 >, TRNG_ParallelRandomNumberGenerator< int32_t, trng::lcg64, TRNG_LCG64 >, TRNG_MT19937, TRNG_MRG5s, TRNG_MRG5, TRNG_MRG4, TRNG_MRG3s, TRNG_MRG3, TRNG_MRG2, and TRNG_LCG64.