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:
36  Density(int dimensions, const int *ranges);
37 
39  Density(int dimensions, const int *ranges, const double *data);
40 
42  Density(const IndexTree &indexTree);
43 
45  Density(const IndexTree &indexTree, const double *data);
46 
48  Density(const Density &density);
49 
51  Density(Density &&density);
52 
55  Density(const std::string &serialization, Mode mode);
56 
58  ~Density();
59 
61  Density& operator=(const Density &rhs);
62 
64  Density& operator=(Density &&rhs);
65 
67  double getMin() const;
68 
70  double getMax() const;
71 
73  virtual std::string serialize(Mode mode) const;
74 private:
75 };
76 
77 }; //End namespace Property
78 }; //End namespace TBTK
79 
80 #endif
Data structure for mapping physical indices to a linear index.
Density(int dimensions, const int *ranges)
double getMax() const
Density & operator=(const Density &rhs)
double getMin() const
virtual std::string serialize(Mode mode) const
Abstract Property class.
Definition: AbstractProperty.h:41
Data structure for mapping physical indices to a linear index.
Definition: IndexTree.h:34
Definition: ModelFactory.h:35
Property container for density.
Definition: Density.h:33
Mode
Definition: Serializable.h:44