C++ mpi module for stochmagnet_main Package
SM_MonteCarloLoader.h
1 #ifndef SM_MonteCarloLoader_H
2 #define SM_MonteCarloLoader_H
3 
4 //include the base class of the package
5 #include "SM_Loader.h"
6 
7 //beam headers
8 #include "SM_MonteCarloBeam.h"
9 #include "SM_MonteCarloSystem.h"
10 
16 class SM_MonteCarloLoader : public SM_Loader { // class
17 
18 
19  // ASSOCIATION
20 
21 
22 
23  // ATTRIBUTES
24 
25 private:
26 
27 
28  // ASSOCIATIONS
29 
30 
31 
32  // METHODS
33 
34 
35 public:
36  // CONSTRUCTORS
40  }
41 
42 
43 
44 
45  // DESTRUCTORS
49  virtual ~SM_MonteCarloLoader(void) {
50  }
51 
52 
53 
54 
55 
56 public:
57 
58 
59  //MEMORY
60 
74  virtual tMemSize getMemorySize() const override {
75  return sizeof(*this)+getContentsMemorySize();
76  }
77 
78 
79 
80 public:
81 
82 
83 
84  // OTHERS
85 
92  static tBoolean LoadMonteCarloBeamFromOptions(SM_MonteCarloBeam& beam,const CORE_OptionsList& options);
100  static tBoolean LoadMonteCarloSystemFromOptions(SM_MonteCarloSystem& system,const CORE_OptionsList& options);
101 
102 
103 
104 
105 
106 
107 
108 
109 
110 };
111 
112 #endif
virtual tMemSize getContentsMemorySize() const
return nthe memory size of the included associations
Definition: CORE_Object.h:278
This class is an list of options.
Definition: CORE_OptionsList.h:36
this class loads classes of the package
Definition: SM_Loader.h:18
This class is a simulation of a Monte Carlo for spins system.
Definition: SM_MonteCarloBeam.h:17
this class loads classes of the package
Definition: SM_MonteCarloLoader.h:16
static tBoolean LoadMonteCarloSystemFromOptions(SM_MonteCarloSystem &system, const CORE_OptionsList &options)
load the landau lifschitz system from options
Definition: SM_MonteCarloLoader.cpp:25
SM_MonteCarloLoader()
build a SM_MonteCarloLoader
Definition: SM_MonteCarloLoader.h:39
virtual ~SM_MonteCarloLoader(void)
destroy a SM_MonteCarloLoader
Definition: SM_MonteCarloLoader.h:49
virtual tMemSize getMemorySize() const override
return the memory size of the class and the memory size of all its attributes/associations
Definition: SM_MonteCarloLoader.h:74
static tBoolean LoadMonteCarloBeamFromOptions(SM_MonteCarloBeam &beam, const CORE_OptionsList &options)
load the beam from options
Definition: SM_MonteCarloLoader.cpp:5
This class is a simulation of one Monte carlo trajectory class for Stoch Magnet package....
Definition: SM_MonteCarloSystem.h:39