TBTK
DOS.h
Go to the documentation of this file.
1 /* Copyright 2016 Kristofer Bj√∂rnson
2  *
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
23 #ifndef COM_DAFER45_TBTK_DOS
24 #define COM_DAFER45_TBTK_DOS
25 
26 #include "TBTK/Property/AbstractProperty.h"
27 
28 namespace TBTK{
29 namespace Property{
30 
32 class DOS : public AbstractProperty<double>{
33 public:
39  DOS(double lowerBound, double upperBound, int resolution);
40 
47  DOS(
48  double lowerBound,
49  double upperBound,
50  int resolution,
51  const double *data
52  );
53 
55 // DOS(const DOS &dos);
56 
58 // DOS(DOS &&dos);
59 
66  DOS(const std::string &serialization, Mode mode);
67 
69 // ~DOS();
70 
74  double getLowerBound() const;
75 
79  double getUpperBound() const;
80 
85  int getResolution() const;
86 
88 // DOS& operator=(const DOS &dos);
89 
91 // DOS& operator=(DOS &&dos);
92 
94  virtual std::string serialize(Mode mode) const;
95 private:
97  double lowerBound;
98 
100  double upperBound;
101 
103  int resolution;
104 };
105 
106 inline double DOS::getLowerBound() const{
107  return lowerBound;
108 }
109 
110 inline double DOS::getUpperBound() const{
111  return upperBound;
112 }
113 
114 inline int DOS::getResolution() const{
115  return resolution;
116 }
117 
118 }; //End namespace Property
119 }; //End namespace TBTK
120 
121 #endif
double getUpperBound() const
Definition: DOS.h:110
Abstract Property class.
Definition: AbstractProperty.h:95
int getResolution() const
Definition: DOS.h:114
Definition: ModelFactory.h:35
DOS(double lowerBound, double upperBound, int resolution)
Mode
Definition: Serializable.h:44
Property container for density of states (DOS).
Definition: DOS.h:32
virtual std::string serialize(Mode mode) const
double getLowerBound() const
Definition: DOS.h:106