Go to the documentation of this file.
23 #ifndef COM_DAFER45_TBTK_HOPPING_AMPLITUDE_LIST
24 #define COM_DAFER45_TBTK_HOPPING_AMPLITUDE_LIST
47 const std::string &serializeation,
82 std::vector<HoppingAmplitude> hoppingAmplitudes;
88 hoppingAmplitudes.push_back(hoppingAmplitude);
92 return hoppingAmplitudes.size();
98 return hoppingAmplitudes[n];
102 unsigned int sizeInBytes = 0;
103 for(
size_t n = 0; n < hoppingAmplitudes.size(); n++)
106 hoppingAmplitudes.capacity() - hoppingAmplitudes.size()
List of HoppingAmplitudes .
Definition: HoppingAmplitudeList.h:34
const HoppingAmplitude & operator[](unsigned int n) const
Definition: HoppingAmplitudeList.h:95
std::string serialize(Serializable::Mode mode) const
unsigned int getSizeInBytes() const
Definition: HoppingAmplitudeList.h:101
Definition: Serializable.h:43
void add(const HoppingAmplitude &hoppingAmplitude)
Definition: HoppingAmplitudeList.h:85
Abstract base class for serializable objects.
Hopping amplitude from state 'from' to state 'to'.
Definition: HoppingAmplitude.h:53
Hopping amplitude from state 'from' to state 'to'.
Mode
Definition: Serializable.h:47
unsigned int getSize() const
Definition: HoppingAmplitudeList.h:91