C++ mpi module for stochmagnet_main Package
SM_FCCStructure.h
1 #ifndef SM_FCCStructure_H
2 #define SM_FCCStructure_H
3 
4 //super class header
5 #include "SM_CrystalStructure.h"
6 
25 
26 
27 private:
28 protected:
29  // CONSTRUCTORS
34  setAtomsNumber(4);
35  //setAtomVolumeWeight(M_PI*sqrt(2)/24.);
36  //1/Na
37  setAtomVolumeWeight(0.25);
38  setName("FCC");
39 
40  }
41 
42 
43  // DESTRUCTORS
46  virtual ~SM_FCCStructure(void) {
47  }
48 
49 public :
50 
51  //Instance building
52  //=================
53 
57  inline static CORE_UniquePointer<SM_FCCStructure> New() {
58  return CORE_UniquePointer<SM_FCCStructure>(new SM_FCCStructure(),
60  }
64  virtual CORE_UniquePointer<SM_CrystalStructure> newInstance() const final {
65  return New();
66  }
67 
68  //MEMORY
69 
83  virtual tMemSize getMemorySize() const {
84  return sizeof(*this)+getContentsMemorySize();
85  }
86 
95  virtual tMemSize getContentsMemorySize() const {
97  return mem;
98  }
99 
100  //SET & GET methods
101 
102 
103 public:
104 
105 
106 
107 
108 
109 };
110 
111 #endif
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:113
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
This class is describes a grid of FCC structure.
Definition: SM_FCCStructure.h:24
virtual CORE_UniquePointer< SM_CrystalStructure > newInstance() const final
create new instance of the crystal structure
Definition: SM_FCCStructure.h:64
SM_FCCStructure(void)
create an instance class
Definition: SM_FCCStructure.h:32
virtual ~SM_FCCStructure(void)
destroy the instance of the class
Definition: SM_FCCStructure.h:46
static CORE_UniquePointer< SM_FCCStructure > New()
build a new instance of a FCC structure
Definition: SM_FCCStructure.h:57
virtual tMemSize getMemorySize() const
return the memory size of the class and the memory size of all its attributes/associations
Definition: SM_FCCStructure.h:83
virtual tMemSize getContentsMemorySize() const
return the memory size of the included associations
Definition: SM_FCCStructure.h:95