C++ mpi module for stochmagnet_main Package
SM_ConstantNoiseRateFunction.h
1 #ifndef SM_ConstantNoiseRateFunction_H
2 #define SM_ConstantNoiseRateFunction_H
3 
4 #include "SM_NoiseRateFunction.h"
5 
13 class SM_ConstantNoiseRateFunction : public SM_NoiseRateFunction<SM_ConstantNoiseRateFunction> {
14 
15 
16  // ATTRIBUTES
17 
18 public:
19 
20 
21 
22 private:
23 
24 
25 public:
26  // METHODS
27 
28  // CONSTRUCTORS
29 
33  }
34 
35 private:
41 
42  }
43 
44 public:
45 
46  // DESTRUCTORS
47 
48 
52  }
53 
54 
55 public:
56 
57 
61  inline static CORE_UniquePointer<SM_ConstantNoiseRateFunction> New() {
62  return CORE_UniquePointer<SM_ConstantNoiseRateFunction>(new SM_ConstantNoiseRateFunction(),
64  }
65 
66  //MEMORY
67 
81  virtual tMemSize getMemorySize() const {
82  return sizeof(*this)+getContentsMemorySize();
83  }
84 
85 
86  // GET methods
87  // ============
88 
91  virtual tString getName() const override{
92  return "ConstantFunction";
93  }
94 
95 
96 public:
97  // OTHERS methods
98 
104  inline tReal computeSCFunction(const tReal& t) const {
105  return getNoiseRate();
106  }
107 
108 
109 
110 
111 
112 };
113 
114 #endif
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:113
virtual tMemSize getContentsMemorySize() const
return nthe memory size of the included associations
Definition: CORE_Object.h:278
This class describes an noise rate function of the form .
Definition: SM_ConstantNoiseRateFunction.h:13
static CORE_UniquePointer< SM_ConstantNoiseRateFunction > New()
build a new instance of a SM_NoiseRateFunction
Definition: SM_ConstantNoiseRateFunction.h:61
virtual tMemSize getMemorySize() const
return the memory size of the class and the memory size of all its attributes/associations
Definition: SM_ConstantNoiseRateFunction.h:81
tReal computeSCFunction(const tReal &t) const
compute the noise rate function
Definition: SM_ConstantNoiseRateFunction.h:104
virtual ~SM_ConstantNoiseRateFunction(void)
destroy
Definition: SM_ConstantNoiseRateFunction.h:51
SM_ConstantNoiseRateFunction(void)
create
Definition: SM_ConstantNoiseRateFunction.h:32
virtual tString getName() const override
the the name of the system
Definition: SM_ConstantNoiseRateFunction.h:91
const tReal & getNoiseRate() const
get the noise rate
Definition: SM_NoiseRateFunctionInterface.h:102
This class describes a templated noise rate function as static polymorphism.
Definition: SM_NoiseRateFunction.h:14