TBTK
Need a break? Support the development by playing Polarity Puzzles
InteractionAmplitudeSet.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_INTERACTION_AMPLITUDE_SET
25 #define COM_DAFER45_TBTK_INTERACTION_AMPLITUDE_SET
26 
28 #include "TBTK/InteractionAmplitude.h"
29 
30 #include <complex>
31 
32 namespace TBTK{
33 
34 class InteractionAmplitudeSet{
35 public:
37 // InteractionAmplitudeSet(const HoppingAmplitudeSet *hoppingAmplitudeSet);
38 
40 // ~InteractionAmplitudeSet();
41 
43  void addIA(InteractionAmplitude ia);
44 
46  unsigned int getNumInteractionAmplitudes() const;
47 
49  const InteractionAmplitude& getInteractionAmplitude(
50  unsigned int n
51  ) const;
52 private:
54 // const HoppingAmplitudeSet *hoppingAmplitudeSet;
55 
57  std::vector<InteractionAmplitude> interactionAmplitudes;
58 };
59 
60 inline void InteractionAmplitudeSet::addIA(InteractionAmplitude ia){
61  interactionAmplitudes.push_back(ia);
62 }
63 
64 inline unsigned int InteractionAmplitudeSet::getNumInteractionAmplitudes() const{
65  return interactionAmplitudes.size();
66 }
67 
68 inline const InteractionAmplitude& InteractionAmplitudeSet::getInteractionAmplitude(
69  unsigned int n
70 ) const{
71  return interactionAmplitudes.at(n);
72 }
73 
74 }; //End of namespace TBTK
75 
76 #endif
77 
HoppingAmplitudeSet.h
HoppingAmplitude container.