TBTK
LDOS.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_LDOS
24 #define COM_DAFER45_TBTK_LDOS
25 
26 namespace TBTK{
27  class CPropertyExtractor;
28  class DPropertyExtractor;
29  class FileReader;
30 namespace Property{
31 
33 class LDOS{
34 public:
36  LDOS(
37  int dimensions,
38  const int *ranges,
39  double lowerBound,
40  double upperBound,
41  int resolution
42  );
43 
45  ~LDOS();
46 
48  int getDimensions() const;
49 
51  const int* getRanges() const;
52 
54  double getLowerBound() const;
55 
57  double getUpperBound() const;
58 
60  int getResolution() const;
61 
63  int getSize() const;
64 
66  const double* getData() const;
67 private:
69  int dimensions;
70 
72  int *ranges;
73 
75  double lowerBound;
76 
78  double upperBound;
79 
81  int resolution;
82 
84  int size;
85 
87  double *data;
88 
92 
96 
98  friend class TBTK::FileReader;
99 };
100 
101 inline int LDOS::getDimensions() const{
102  return dimensions;
103 }
104 
105 inline const int* LDOS::getRanges() const{
106  return ranges;
107 }
108 
109 inline double LDOS::getLowerBound() const{
110  return lowerBound;
111 }
112 
113 inline double LDOS::getUpperBound() const{
114  return upperBound;
115 }
116 
117 inline int LDOS::getResolution() const{
118  return resolution;
119 }
120 
121 inline int LDOS::getSize() const{
122  return size;
123 }
124 
125 inline const double* LDOS::getData() const{
126  return data;
127 }
128 
129 }; //End namespace Property
130 }; //End namespace TBTK
131 
132 #endif
~LDOS()
Definition: LDOS.cpp:51
Definition: LDOS.h:33
const double * getData() const
Definition: LDOS.h:125
double getLowerBound() const
Definition: LDOS.h:109
Definition: CPropertyExtractor.h:37
LDOS(int dimensions, const int *ranges, double lowerBound, double upperBound, int resolution)
Definition: LDOS.cpp:26
Definition: FileReader.h:46
double getUpperBound() const
Definition: LDOS.h:113
int getSize() const
Definition: LDOS.h:121
int getDimensions() const
Definition: LDOS.h:101
Definition: AbstractOperator.h:26
Definition: DPropertyExtractor.h:40
int getResolution() const
Definition: LDOS.h:117
const int * getRanges() const
Definition: LDOS.h:105