C++ mpi module for stochmagnet_main Package
SM_Object.h
1 #ifndef SM_Object_H
2 #define SM_Object_H
3 
4 #include "CORE_Object.h"
5 
6 //exception class
7 #include "SM_Exception.h"
8 
9 //constants definition
10 #include "SM_Constants.h"
11 
12 //shared pointer header
13 #include "shared_pointer.h"
14 
15 //core type
16 #include "types.h"
17 #include "functions_type.h"
18 #include "SM_Types.h"
19 
20 //map header
21 #include <map>
22 //array header
23 #include <array>
24 //valarray header
25 #include <valarray>
26 //vector header
27 #include <vector>
28 
36 class SM_Object : public CORE_Object {
37 
38  //attributes
39 private :
40 
41 
42 
43 public:
44  // CONSTRUCTORS
47  SM_Object(void) {
48  }
49 
50 
51  // DESTRUCTORS
54  virtual ~SM_Object(void) {
55  }
56 
57 
58 public :
59  // CREATE class
60 
61 
75  virtual tMemSize getMemorySize() const {
76  return sizeof(*this)+getContentsMemorySize();
77  }
78 
79 
80 
81  //SET & GET methods
82 
83 
84 
85 
86 
87  // MAIN Method
88 
89 public:
90 
91 
92 
93 
94 private:
95 
96 
97 };
98 
99 
100 #endif
abstract base class for most classes.
Definition: CORE_Object.h:65
virtual tMemSize getContentsMemorySize() const
return nthe memory size of the included associations
Definition: CORE_Object.h:278
This class is a base class for Stoch Microm package.
Definition: SM_Object.h:36
virtual ~SM_Object(void)
destroy
Definition: SM_Object.h:54
virtual tMemSize getMemorySize() const
return the memory size of the class and the memory size of all its attributes/associations
Definition: SM_Object.h:75
SM_Object(void)
create
Definition: SM_Object.h:47