SOLIDstate
A C++ library for solid state physics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Ensemble.hpp
Go to the documentation of this file.
1 
11 #ifndef ENSEMBLE_ENSEMBLE_HPP
12 #define ENSEMBLE_ENSEMBLE_HPP
13 
14 #include <vector>
15 #include "Sector.hpp"
16 
17 namespace solid
18 {
19 
25 class IEnsemble
26 {
27 public:
34  virtual void SetSize() = 0;
35 
42  virtual void FillSectors() = 0;
43 
47  virtual ~IEnsemble() {}
48 };
49 
55 class Ensemble
56 {
57 public:
61  int L;
62 
66  int size;
73  std::vector<Sector> sectors;
74 
78  virtual ~Ensemble() {}
79 };
80 
81 } // namespace solid
82 
83 #endif
Sector header.
virtual void FillSectors()=0
Filling Ensemble with selected sector.
interface for Ensemble class
Definition: Ensemble.hpp:25
Ensemble parent class.
Definition: Ensemble.hpp:55
virtual void SetSize()=0
Set the Size object.
std::vector< Sector > sectors
contains vector of Sectors
Definition: Ensemble.hpp:73
virtual ~Ensemble()
Destroy the Ensemble object.
Definition: Ensemble.hpp:78
virtual ~IEnsemble()
Destroy the IEnsemble object.
Definition: Ensemble.hpp:47
int size
total size of the sectors
Definition: Ensemble.hpp:66
int L
number of sites
Definition: Ensemble.hpp:61