C++ main module for stochmagnet Package  1.0
SM_Object.h
Go to the documentation of this file.
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 //shared pointer header
10 #include "sp.h"
11 
19 class SM_Object : public CORE_Object {
20 
21  //attributes
22 private :
23 
24 
25 
26 public:
27  // CONSTRUCTORS
30  SM_Object(void);
31 
32 
33  // DESTRUCTORS
36  virtual ~SM_Object(void);
37 
38 
39 public :
40  // CREATE class
41 
42 
56  virtual tMemSize getMemorySize() const {
57  return sizeof(*this)+getContentsMemorySize();
58  }
59 
60 
61 
62  //SET & GET methods
63 
64 
65 
66 
67 
68  // MAIN Method
69 
70 public:
71 
72 
73 
74 
75 public:
76 
77 
78 };
79 
80 
81 #endif
abstract base class for most classes.
Definition: CORE_Object.h:48
virtual tMemSize getContentsMemorySize() const
return nthe memory size of the included associations
Definition: CORE_Object.h:259
This class is a base class for Stoch Microm package.
Definition: SM_Object.h:19
virtual tMemSize getMemorySize() const
return the memory size of the class and the memory size of all its attributes/associations
Definition: SM_Object.h:56
SM_Object(void)
create
Definition: SM_Object.cpp:4
virtual ~SM_Object(void)
destroy
Definition: SM_Object.cpp:7
#define tMemSize
Definition: types.h:166