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 namespace TBTK{
27  class CPropertyExtractor;
28  class DPropertyExtractor;
29  class FileReader;
30 namespace Property{
31 
33 class DOS{
34 public:
36  DOS(double lowerBound, double upperBound, int resolution);
37 
39  DOS(double lowerBound, double upperBound, int resolution, const double *data);
40 
42  ~DOS();
43 
45  double getLowerBound() const;
46 
48  double getUpperBound() const;
49 
51  int getResolution() const;
52 
54  const double* getData() const;
55 private:
57  double lowerBound;
58 
60  double upperBound;
61 
63  int resolution;
64 
66  double *data;
67 
71 
75 
77  friend class TBTK::FileReader;
78 };
79 
80 inline double DOS::getLowerBound() const{
81  return lowerBound;
82 }
83 
84 inline double DOS::getUpperBound() const{
85  return upperBound;
86 }
87 
88 inline int DOS::getResolution() const{
89  return resolution;
90 }
91 
92 inline const double* DOS::getData() const{
93  return data;
94 }
95 
96 }; //End namespace Property
97 }; //End namespace TBTK
98 
99 #endif
const double * getData() const
Definition: DOS.h:92
Definition: CPropertyExtractor.h:37
Definition: FileReader.h:46
double getUpperBound() const
Definition: DOS.h:84
int getResolution() const
Definition: DOS.h:88
~DOS()
Definition: DOS.cpp:44
Definition: AbstractOperator.h:26
Definition: DPropertyExtractor.h:40
DOS(double lowerBound, double upperBound, int resolution)
Definition: DOS.cpp:26
Definition: DOS.h:33
double getLowerBound() const
Definition: DOS.h:80