TBTK
Density.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_DENSITY
24 #define COM_DAFER45_TBTK_DENSITY
25 
26 #include "TBTK/Property/AbstractProperty.h"
27 #include "TBTK/IndexTree.h"
28 
29 namespace TBTK{
30 namespace Property{
31 
33 class Density : public AbstractProperty<double>{
34 public:
41  Density(int dimensions, const int *ranges);
42 
52  Density(int dimensions, const int *ranges, const double *data);
53 
59  Density(const IndexTree &indexTree);
60 
69  Density(const IndexTree &indexTree, const double *data);
70 
72 // Density(const Density &density);
73 
75 // Density(Density &&density);
76 
83  Density(const std::string &serialization, Mode mode);
84 
86 // ~Density();
87 
89 // Density& operator=(const Density &rhs);
90 
92 // Density& operator=(Density &&rhs);
93 
97  double getMin() const;
98 
102  double getMax() const;
103 
105  virtual std::string serialize(Mode mode) const;
106 private:
107 };
108 
109 }; //End namespace Property
110 }; //End namespace TBTK
111 
112 #endif
Data structure for mapping physical indices to a linear index.
Density(int dimensions, const int *ranges)
double getMax() const
double getMin() const
virtual std::string serialize(Mode mode) const
Abstract Property class.
Definition: AbstractProperty.h:95
Data structure for mapping physical indices to linear indices.
Definition: IndexTree.h:34
Definition: ModelFactory.h:35
Property container for density.
Definition: Density.h:33
Mode
Definition: Serializable.h:44