C++ mpi module for stochmagnet_main Package
SM_BCCStructure.h
1 #ifndef SMPIC_BCCStructure_H
2 #define SMPIC_BCCStructure_H
3 
4 //super class header
5 #include "SM_CrystalStructure.h"
6 
34 
35 
36 
37 protected:
38  // CONSTRUCTORS
43  setAtomsNumber(2);
45  setName("BCC");
46  }
47 
48 
49  // DESTRUCTORS
52  virtual ~SM_BCCStructure(void) {
53  }
54 
55 public :
56 
57  //Instance building
58  //=================
59 
63  inline static CORE_UniquePointer<SM_BCCStructure> New() {
64  return CORE_UniquePointer<SM_BCCStructure>(new SM_BCCStructure(),
66  }
70  virtual CORE_UniquePointer<SM_CrystalStructure> newInstance() const final {
71  return New();
72  }
73 
74  //MEMORY
75 
89  virtual tMemSize getMemorySize() const {
90  return sizeof(*this)+getContentsMemorySize();
91  }
92 
101  virtual tMemSize getContentsMemorySize() const {
103  return mem;
104  }
105 
106  //SET & GET methods
107 
108 
109 public:
110 
111 
112 
113 
114 };
115 
116 #endif
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:113
This class describes a grid BCC structures.
Definition: SM_BCCStructure.h:33
SM_BCCStructure(void)
create an instance class
Definition: SM_BCCStructure.h:41
virtual ~SM_BCCStructure(void)
destroy the instance of the class
Definition: SM_BCCStructure.h:52
virtual CORE_UniquePointer< SM_CrystalStructure > newInstance() const final
create new instance of the crystal structure
Definition: SM_BCCStructure.h:70
virtual tMemSize getContentsMemorySize() const
return the memory size of the included associations
Definition: SM_BCCStructure.h:101
virtual tMemSize getMemorySize() const
return the memory size of the class and the memory size of all its attributes/associations
Definition: SM_BCCStructure.h:89
static CORE_UniquePointer< SM_BCCStructure > New()
build a new instance of a BCC structure
Definition: SM_BCCStructure.h:63
This class decribe a crystal structure.
Definition: SM_CrystalStructure.h:30
void setAtomsNumber(const tUCInt &n)
set the atoms number per unit cell
Definition: SM_CrystalStructure.h:161
virtual tMemSize getContentsMemorySize() const
return the memory size of the included associations
Definition: SM_CrystalStructure.h:109
void setName(const tString &name)
set the name of the structure (in constructor)
Definition: SM_CrystalStructure.h:146
void setAtomVolumeWeight(const tReal &weight)
set atom volume weight in angstrom
Definition: SM_CrystalStructure.h:278
void setCoordinationNumber(const tUCInt &n)
set the coordination number
Definition: SM_CrystalStructure.h:155