TBTK
Need a break? Support the development by playing Polarity Puzzles
AbstractOperator.h
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 
17 
24 #ifndef COM_DAFER45_TBTK_ABSTRACT_OPERATOR
25 #define COM_DAFER45_TBTK_ABSTRACT_OPERATOR
26 
27 namespace TBTK{
28 
29 //class AbstractState;
30 
31 class AbstractOperator{
32 public:
34  virtual ~AbstractOperator();
35 
42  enum OperatorID{
43  Default = 0,
44  Kinetic = 1,
45  NuclearPotential = 2,
46  HartreeFockPotential = 3
47  };
48 
50  OperatorID getOperatorID() const;
51 protected:
53  AbstractOperator(OperatorID operatorID);
54 private:
56  OperatorID operatorID;
57 };
58 
59 inline AbstractOperator::OperatorID AbstractOperator::getOperatorID() const{
60  return operatorID;
61 }
62 
63 }; //End of namespace TBTK
64 
65 #endif
66 
Definition: Boolean.h:32