C++ main module for stochmagnet Package  1.0
SM_TemplatedStochasticFunction.h
Go to the documentation of this file.
1 #ifndef SM_TemplatedStochasticFunction_H
2 #define SM_TemplatedStochasticFunction_H
3 
5 
14 template<class I>
16 
17  // ATTRIBUTES
18 
19 public:
20 
21 
22 
23 private:
24 
25 
26 
27 
28 protected:
29  // METHODS
30 
31  // CONSTRUCTORS
32 
36  }
37 
38 
39 
40  // DESTRUCTORS
41 
42 
46  }
47 
48 
49 public:
50 
51 
52  // SET methods
53 
54 
55 
56 
57 
58  // GET method
59  // ==========
60 
64  inline tReal templatedRandom() const {
65  return static_cast<const I*>(this)->templatedRandom();
66  }
67 
68 
69 
70 
71 };
72 
73 #endif
This class describes a stochastic function interface to generate random numbers.
Definition: SM_StochasticFunction.h:15
This class describes a templated stochastic function to generate random numbers.
Definition: SM_TemplatedStochasticFunction.h:15
SM_TemplatedStochasticFunction(void)
create
Definition: SM_TemplatedStochasticFunction.h:35
virtual ~SM_TemplatedStochasticFunction(void)
destroy
Definition: SM_TemplatedStochasticFunction.h:45
tReal templatedRandom() const
compute a random number
Definition: SM_TemplatedStochasticFunction.h:64
#define tReal
Definition: types.h:137