C++ mpi module for stochmagnet_main Package
RNDSTD_MT19937.h
1 #ifndef RNDSTD_MT19937_H
2 #define RNDSTD_MT19937_H
3 
4 //inherited class header
5 #include "RAND_RandomNumberGenerator.h"
6 
7 #include <random>
8 
14 class RNDSTD_MT19937 : public RAND_RandomNumberGenerator<tReal,std::mt19937,RNDSTD_MT19937> {
15  // ATTRIBUTES
16 
17 private:
18 
19 
20  //type of the return value of the distribution
21  typedef tReal T;
22  //self class
23  typedef RNDSTD_MT19937 Self;
24  //super class
26 
27 public:
28  // METHODS
29 
30  // CONSTRUCTORS
31 
34  }
35 
36 
37 
38  // DESTRUCTORS
39 
40 
43  virtual ~RNDSTD_MT19937(void) {
44  }
45 
46 
47 
48 public:
49 
53  inline static CORE_UniquePointer<RNDSTD_MT19937> New() {
54  return CORE_UniquePointer<RNDSTD_MT19937>(new RNDSTD_MT19937(),
56  }
57 
58 private:
59 
60  public:
61 
62  //MEMORY
76  virtual tMemSize getMemorySize() const {
77  return sizeof(*this)+getContentsMemorySize();
78  }
79 
88  virtual tMemSize getContentsMemorySize() const {
89  tMemSize mem= SuperSelf::getContentsMemorySize();
90  return mem;
91  }
92 
93 
94 
95 public:
96 
97 
98 
99 
100 };
101 
102 #endif
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:113
This class generates a random number of type T generator with internal implemented class I implemente...
Definition: RAND_RandomNumberGenerator.h:14
virtual tMemSize getContentsMemorySize() const
return nthe memory size of the included associations
Definition: RAND_RandomNumberGenerator.h:85
This class implements a stochastic function with a normal law implemented from the boost library.
Definition: RNDSTD_MT19937.h:14
virtual ~RNDSTD_MT19937(void)
destroy an object.
Definition: RNDSTD_MT19937.h:43
static CORE_UniquePointer< RNDSTD_MT19937 > New()
build a new instance of the stochasticfunction
Definition: RNDSTD_MT19937.h:53
virtual tMemSize getContentsMemorySize() const
return the memory size of the included associations
Definition: RNDSTD_MT19937.h:88
RNDSTD_MT19937()
create an object
Definition: RNDSTD_MT19937.h:33
virtual tMemSize getMemorySize() const
return the memory size of the class and the memory size of all its attributes/associations
Definition: RNDSTD_MT19937.h:76