OverlapAmplitude container.
More...
#include <OverlapAmplitudeSet.h>
|
| OverlapAmplitudeSet () |
|
| OverlapAmplitudeSet (const std::string &serializeation, Mode mode) |
|
virtual | ~OverlapAmplitudeSet () |
|
void | add (const OverlapAmplitude &overlapAmplitude) |
|
OverlapAmplitude & | get (const Index &braIndex, const Index &ketIndex) |
|
const OverlapAmplitude & | get (const Index &braIndex, const Index &ketIndex) const |
|
bool | getAssumeOrthonormalBasis () const |
|
OverlapAmplitudeSet::Iterator | begin () |
|
OverlapAmplitudeSet::ConstIterator | begin () const |
|
OverlapAmplitudeSet::ConstIterator | cbegin () const |
|
OverlapAmplitudeSet::Iterator | end () |
|
OverlapAmplitudeSet::ConstIterator | end () const |
|
OverlapAmplitudeSet::ConstIterator | cend () const |
|
virtual std::string | serialize (Mode mode) const |
|
unsigned int | getSizeInBytes () const |
|
template<> |
std::string | serialize (const bool &data, Mode mode) |
|
template<> |
std::string | serialize (const double &data, Mode mode) |
|
template<> |
std::string | serialize (const std::complex< double > &data, Mode mode) |
|
template<> |
std::string | serialize (const int &data, Mode mode) |
|
template<> |
std::string | serialize (const unsigned int &data, Mode mode) |
|
template<> |
std::string | serialize (const SpinMatrix &data, Mode mode) |
|
template<> |
std::string | serialize (const Statistics &data, Mode mode) |
|
template<> |
std::string | serialize (const std::vector< std::complex< double >> &data, Mode mode) |
|
template<> |
int | deserialize (const std::string &serialization, Mode mode) |
|
|
enum | Mode { Debug,
Binary,
XML,
JSON
} |
|
static bool | hasID (const std::string &serialization, Mode mode) |
|
static std::string | getID (const std::string &serialization, Mode mode) |
|
static std::string | extractComponent (const std::string &serialization, const std::string &containerID, const std::string &componentID, const std::string &componentName, Mode mode) |
|
static bool | validate (const std::string &serialization, const std::string &id, Mode mode) |
|
static std::string | getContent (const std::string &serialization, Mode mode) |
|
static std::vector< std::string > | split (const std::string &content, Mode mode) |
|
template<typename DataType > |
static std::enable_if<!std::is_pointer< DataType >::value, std::string >::type | serialize (const DataType &data, Mode mode) |
|
template<typename DataType > |
static std::enable_if< std::is_pointer< DataType >::value, std::string >::type | serialize (const DataType &data, Mode mode) |
|
template<typename DataType > |
static DataType | deserialize (const std::string &serialization, Mode mode) |
|
static std::string | extract (const std::string &serialization, Mode mode, std::string component) |
|
◆ OverlapAmplitudeSet() [1/2]
TBTK::OverlapAmplitudeSet::OverlapAmplitudeSet |
( |
| ) |
|
◆ OverlapAmplitudeSet() [2/2]
TBTK::OverlapAmplitudeSet::OverlapAmplitudeSet |
( |
const std::string & |
serializeation, |
|
|
Mode |
mode |
|
) |
| |
Constructor. Constructs the OverlapAmplitudeSet from a serialization string.
- Parameters
-
serialization | Serialization from which to construct the OverlapAmplitudeSet. |
mode | Mode with which the string has been serialized. |
◆ ~OverlapAmplitudeSet()
virtual TBTK::OverlapAmplitudeSet::~OverlapAmplitudeSet |
( |
| ) |
|
|
virtual |
◆ add()
void TBTK::OverlapAmplitudeSet::add |
( |
const OverlapAmplitude & |
overlapAmplitude | ) |
|
|
inline |
◆ begin() [1/2]
◆ begin() [2/2]
◆ cbegin()
◆ cend()
◆ end() [1/2]
◆ end() [2/2]
◆ get() [1/2]
◆ get() [2/2]
◆ getAssumeOrthonormalBasis()
bool TBTK::OverlapAmplitudeSet::getAssumeOrthonormalBasis |
( |
| ) |
const |
|
inline |
◆ getSizeInBytes()
unsigned int TBTK::OverlapAmplitudeSet::getSizeInBytes |
( |
| ) |
const |
|
inline |
◆ serialize()
virtual std::string TBTK::OverlapAmplitudeSet::serialize |
( |
Mode |
mode | ) |
const |
|
virtual |
The documentation for this class was generated from the following file: