C++ mpi module for stochmagnet_main Package
SM_NetworkClassFactory.h
1 #ifndef SM_NetworkClassFactory_H
2 #define SM_NetworkClassFactory_H
3 
4 //include the base class of the package
5 #include "CORE_ClassFactory.h"
6 
7 
8 
14 class SM_NetworkClassFactory : public CORE_ClassFactory { // class
15 
16 
17  // ASSOCIATION
18 
19 
20 
21  // ATTRIBUTES
22 
23 private:
24 
25 
26  // ASSOCIATIONS
27 
28 
29 
30  // METHODS
31 
32 
33 public:
34  // CONSTRUCTORS
38 
39 
40 
41 
42  // DESTRUCTORS
46  virtual ~SM_NetworkClassFactory(void);
47 
48 
49 
50 
51 
52 public:
53 
54 
55  //MEMORY
56 
70  virtual tMemSize getMemorySize() const override {
71  return sizeof(*this)+getContentsMemorySize();
72  }
73 
74 
75  // SET
76 
77 
78 
79 
80 
81 public:
82 
83  // OTHERS
84 
85 
92  virtual CORE_UniquePointer<CORE_Object> NewInstance(const tString& name,
93  const CORE_OptionsList& arguments) const override;
94 
95 
96 
97 
98 
99 
100 };
101 
102 #endif
this class describes a class factory to generate classes
Definition: CORE_ClassFactory.h:24
virtual tMemSize getContentsMemorySize() const override
return the memory size in byte
Definition: CORE_ClassFactory.h:84
This class is an list of options.
Definition: CORE_OptionsList.h:36
this class describes a class factory to generate classes of the package
Definition: SM_NetworkClassFactory.h:14
SM_NetworkClassFactory()
build a SM_NetworkClassFactory
Definition: SM_NetworkClassFactory.cpp:15
virtual tMemSize getMemorySize() const override
return the memory size of the class and the memory size of all its attributes/associations
Definition: SM_NetworkClassFactory.h:70
virtual CORE_UniquePointer< CORE_Object > NewInstance(const tString &name, const CORE_OptionsList &arguments) const override
create an unique instance of a class
Definition: SM_NetworkClassFactory.cpp:23
virtual ~SM_NetworkClassFactory(void)
destroy a SM_NetworkClassFactory
Definition: SM_NetworkClassFactory.cpp:19