C++ mpi module for stochmagnet_main Package
SMOMPI_NoMasterMacroCellsNetwork.h
1 #ifndef SMOMPI_NoMasterMacroCellsNetwork_H
2 #define SMOMPI_NoMasterMacroCellsNetwork_H
3 
4 //base classes
5 #include "SM_MacroCellsNetwork.h"
6 
7 #include "MPI_Run.h"
8 
18 
19 
20 public:
21 private :
22 
23  //type class
26 
27 
28 
29 protected:
30  // CONSTRUCTORS
34  }
35 
36  // DESTRUCTORS
40  }
41 
42 
43 public :
44 
45  //Instance building
46  //=================
47 
51  inline static CORE_UniquePointer<SelfClass> New() {
52  return CORE_UniquePointer<SelfClass>(new SelfClass(),SelfClass::Delete());
53  }
54 
58  virtual CORE_UniquePointer<SM_MacroCellsNetwork> newInstance() const override {
59  return New();
60  }
74  virtual tMemSize getMemorySize() const {
75  return sizeof(*this)+this->getContentsMemorySize();
76  }
77 
86  virtual tMemSize getContentsMemorySize() const {
87  tMemSize mem=SuperClass::getContentsMemorySize();
88 
89  return mem;
90  }
91 
92 
93 public:
98  virtual void computeMacroCells(const SM_Material& material,
99  const SM_Network& network) override;
100 
101 
102 };
103 
104 
105 
106 
107 
108 #endif
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:113
This class describes a macro cells network with no master core.
Definition: SMOMPI_NoMasterMacroCellsNetwork.h:17
virtual ~SMOMPI_NoMasterMacroCellsNetwork(void)
destroy
Definition: SMOMPI_NoMasterMacroCellsNetwork.h:39
virtual tMemSize getContentsMemorySize() const
return the memory size of the included associations
Definition: SMOMPI_NoMasterMacroCellsNetwork.h:86
SMOMPI_NoMasterMacroCellsNetwork(void)
create a network class
Definition: SMOMPI_NoMasterMacroCellsNetwork.h:33
virtual tMemSize getMemorySize() const
return the memory size of the class and the memory size of all its attributes/associations
Definition: SMOMPI_NoMasterMacroCellsNetwork.h:74
static CORE_UniquePointer< SelfClass > New()
return a new unique instnace of class This
Definition: SMOMPI_NoMasterMacroCellsNetwork.h:51
virtual void computeMacroCells(const SM_Material &material, const SM_Network &network) override
compute the macro cells of the network
Definition: SMOMPI_NoMasterMacroCellsNetwork.cpp:8
virtual CORE_UniquePointer< SM_MacroCellsNetwork > newInstance() const override
create a New instance of this
Definition: SMOMPI_NoMasterMacroCellsNetwork.h:58
This class is describes a macro cell network.
Definition: SM_MacroCellsNetwork.h:25
virtual tMemSize getContentsMemorySize() const
return the memory size of the included associations
Definition: SM_MacroCellsNetwork.h:117
This class describes a materials defined by state attributes:
Definition: SM_Material.h:61
This class is describes a network composed by.
Definition: SM_Network.h:66