C++ mpi module for stochmagnet_main Package
RNDB_MT19937.h
1 #ifndef RNDB_MT19937_H
2 #define RNDB_MT19937_H
3 
4 //inherited class header
5 #include "RAND_RandomNumberGenerator.h"
6 
7 
8 //boots header
9 #include <boost/random/mersenne_twister.hpp>
10 
16 class RNDB_MT19937 : public RAND_RandomNumberGenerator<tReal,boost::mt19937,RNDB_MT19937> {
17  // ATTRIBUTES
18 
19 private:
20 
21 
22  //type of the return value of the distribution
23  typedef tReal T;
24  //self class
25  typedef RNDB_MT19937 Self;
26  //super class
28 
29 public:
30  // METHODS
31 
32  // CONSTRUCTORS
33 
36  }
37 
38 
39 
40  // DESTRUCTORS
41 
42 
45  virtual ~RNDB_MT19937(void) {
46  }
47 
48 
49 
50 public:
51 
55  inline static CORE_UniquePointer<RNDB_MT19937> New() {
56  return CORE_UniquePointer<RNDB_MT19937>(new RNDB_MT19937(),
58  }
59 
60 private:
61 
62  public:
63 
64  //MEMORY
78  virtual tMemSize getMemorySize() const {
79  return sizeof(*this)+getContentsMemorySize();
80  }
81 
90  virtual tMemSize getContentsMemorySize() const {
91  tMemSize mem= SuperSelf::getContentsMemorySize();
92  return mem;
93  }
94 
95 
96 
97 
98 
99 };
100 
101 #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: RNDB_MT19937.h:16
static CORE_UniquePointer< RNDB_MT19937 > New()
build a new instance of the stochasticfunction
Definition: RNDB_MT19937.h:55
virtual tMemSize getMemorySize() const
return the memory size of the class and the memory size of all its attributes/associations
Definition: RNDB_MT19937.h:78
RNDB_MT19937()
create an object
Definition: RNDB_MT19937.h:35
virtual ~RNDB_MT19937(void)
destroy an object.
Definition: RNDB_MT19937.h:45
virtual tMemSize getContentsMemorySize() const
return the memory size of the included associations
Definition: RNDB_MT19937.h:90