TBTK
DefaultMap.h
Go to the documentation of this file.
1 /* Copyright 2017 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_DEFAULT_MAP
24 #define COM_DAFER45_TBTK_DEFAULT_MAP
25 
26 #include "TBTK/FockStateMap.h"
27 #include "TBTK/BitRegister.h"
29 
30 namespace TBTK{
31 namespace FockStateMap{
32 
33 template<typename BIT_REGISTER>
34 class DefaultMap : public FockStateMap<BIT_REGISTER>{
35 public:
37  DefaultMap(unsigned int exponentialDimension);
38 
40  virtual ~DefaultMap();
41 
43  virtual unsigned int getBasisSize() const;
44 
46  virtual unsigned int getBasisIndex(const FockState<BIT_REGISTER> &fockState) const;
47 
49  virtual FockState<BIT_REGISTER> getFockState(unsigned int index) const;
50 private:
51 };
52 
53 template<typename BIT_REGISTER>
55  unsigned int exponentialDimension
56 ) :
57  FockStateMap<BIT_REGISTER>(exponentialDimension)
58 {
59 }
60 
61 template<typename BIT_REGISTER>
63 }
64 
65 template<typename BIT_REGISTER>
68 }
69 
70 }; //End of namespace FockStateMap
71 }; //End of namespace TBTK
72 
73 #endif
virtual unsigned int getBasisSize() const
Definition: DefaultMap.h:66
virtual unsigned int getBasisIndex(const FockState< BIT_REGISTER > &fockState) const
Register of bits.
FockStateMap.
Definition: FockStateMap.h:32
Definition: DefaultMap.h:34
Register of bits.
Definition: ModelFactory.h:35
DefaultMap(unsigned int exponentialDimension)
Definition: DefaultMap.h:54
Definition: FockState.h:37
virtual FockState< BIT_REGISTER > getFockState(unsigned int index) const
virtual ~DefaultMap()
Definition: DefaultMap.h:62