TBTK
Magnetization.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_MAGNETIZATION
24 #define COM_DAFER45_TBTK_MAGNETIZATION
25 
26 #include <complex>
27 
28 namespace TBTK{
29  class CPropertyExtractor;
30  class DPropertyExtractor;
31  class FileReader;
32 namespace Property{
33 
36 public:
38  Magnetization(int dimensions, const int* ranges);
39 
42 
44  int getDimensions() const;
45 
47  const int* getRanges() const;
48 
50  int getSize() const;
51 
53  const std::complex<double>* getData() const;
54 private:
56  int dimensions;
57 
59  int *ranges;
60 
62  int size;
63 
65  std::complex<double> *data;
66 
70 
74 
77  friend class TBTK::FileReader;
78 };
79 
80 inline int Magnetization::getDimensions() const{
81  return dimensions;
82 }
83 
84 inline const int* Magnetization::getRanges() const{
85  return ranges;
86 }
87 
88 inline int Magnetization::getSize() const{
89  return size;
90 }
91 
92 inline const std::complex<double>* Magnetization::getData() const{
93  return data;
94 }
95 
96 }; //End namespace Property
97 }; //End namespace TBTK
98 
99 #endif
const std::complex< double > * getData() const
Definition: Magnetization.h:92
Definition: Magnetization.h:35
Definition: CPropertyExtractor.h:37
int getDimensions() const
Definition: Magnetization.h:80
const int * getRanges() const
Definition: Magnetization.h:84
Definition: FileReader.h:46
int getSize() const
Definition: Magnetization.h:88
~Magnetization()
Definition: Magnetization.cpp:43
Definition: AbstractOperator.h:26
Definition: DPropertyExtractor.h:40
Magnetization(int dimensions, const int *ranges)
Definition: Magnetization.cpp:28