TBTK
SpinPolarizedLDOS.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 
24 #ifndef COM_DAFER45_TBTK_SPIN_POLARIZED_LDOS
25 #define COM_DAFER45_TBTK_SPIN_POLARIZED_LDOS
26 
27 #include <complex>
28 
29 namespace TBTK{
30  class CPropertyExtractor;
31  class DPropertyExtractor;
32  class FileReader;
33 namespace Property{
34 
38 public:
41  int dimensions,
42  const int *ranges,
43  double lowerBound,
44  double upperBound,
45  int resolution
46  );
47 
50 
53  int getDimensions() const;
54 
56  const int* getRanges() const;
57 
59  double getLowerBound() const;
60 
62  double getUpperBound() const;
63 
65  int getResolution() const;
66 
68  int getSize() const;
69 
71  const std::complex<double>* getData() const;
72 private:
74  int dimensions;
75 
77  int *ranges;
78 
80  double lowerBound;
81 
83  double upperBound;
84 
86  int resolution;
87 
89  int size;
90 
92  std::complex<double> *data;
93 
97 
101 
104  friend class TBTK::FileReader;
105 };
106 
108  return dimensions;
109 }
110 
111 inline const int* SpinPolarizedLDOS::getRanges() const{
112  return ranges;
113 }
114 
115 inline double SpinPolarizedLDOS::getLowerBound() const{
116  return lowerBound;
117 }
118 
119 inline double SpinPolarizedLDOS::getUpperBound() const{
120  return upperBound;
121 }
122 
124  return resolution;
125 }
126 
127 inline int SpinPolarizedLDOS::getSize() const{
128  return size;
129 }
130 
131 inline const std::complex<double>* SpinPolarizedLDOS::getData() const{
132  return data;
133 }
134 
135 }; //End namespace Property
136 }; //End namespace TBTK
137 
138 #endif
~SpinPolarizedLDOS()
Definition: SpinPolarizedLDOS.cpp:53
const std::complex< double > * getData() const
Definition: SpinPolarizedLDOS.h:131
Definition: CPropertyExtractor.h:37
int getDimensions() const
Definition: SpinPolarizedLDOS.h:107
Definition: FileReader.h:46
SpinPolarizedLDOS(int dimensions, const int *ranges, double lowerBound, double upperBound, int resolution)
Definition: SpinPolarizedLDOS.cpp:28
const int * getRanges() const
Definition: SpinPolarizedLDOS.h:111
double getUpperBound() const
Definition: SpinPolarizedLDOS.h:119
double getLowerBound() const
Definition: SpinPolarizedLDOS.h:115
int getResolution() const
Definition: SpinPolarizedLDOS.h:123
int getSize() const
Definition: SpinPolarizedLDOS.h:127
Definition: AbstractOperator.h:26
Definition: DPropertyExtractor.h:40
Definition: SpinPolarizedLDOS.h:37