TBTK
Need a break? Support the development by playing Polarity Puzzles
KineticOperator.h
1 /* Copyright 2018 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 
17 
24 #ifndef COM_DAFER45_TBTK_KINETIC_OPERATOR
25 #define COM_DAFER45_TBTK_KINETIC_OPERATOR
26 
27 #include "TBTK/AbstractOperator.h"
28 
29 namespace TBTK{
30 
31 class KineticOperator : public AbstractOperator{
32 public:
34  KineticOperator(double mass);
35 
40  double getMass() const;
41 private:
43  double mass;
44 };
45 
46 inline KineticOperator::KineticOperator(
47  double mass
48 ) :
49  AbstractOperator(OperatorID::Kinetic)
50 {
51  this->mass = mass;
52 }
53 
54 inline double KineticOperator::getMass() const{
55  return mass;
56 }
57 
58 }; //End of namespace TBTK
59 
60 #endif
61 
Definition: Boolean.h:32