The context for the single particle part of a Model.
More...
#include <SingleParticleContext.h>
|
| SingleParticleContext () |
|
| SingleParticleContext (const std::vector< unsigned int > &capacity) |
|
| SingleParticleContext (const std::string &serialization, Mode mode) |
|
void | setStatistics (Statistics statistics) |
|
Statistics | getStatistics () const |
|
void | generateHoppingAmplitudeSet (const HoppingAmplitude::AmplitudeCallback &hoppingAmplitudeCallback) |
|
void | generateOverlapAmplitudeSet (const OverlapAmplitude::AmplitudeCallback &overlapAmplitudeCallback) |
|
BasisStateSet & | getBasisStateSet () |
|
const BasisStateSet & | getBasisStateSet () const |
|
HoppingAmplitudeSet & | getHoppingAmplitudeSet () |
|
const HoppingAmplitudeSet & | getHoppingAmplitudeSet () const |
|
SourceAmplitudeSet & | getSourceAmplitudeSet () |
|
const SourceAmplitudeSet & | getSourceAmplitudeSet () const |
|
OverlapAmplitudeSet & | getOverlapAmplitudeSet () |
|
const OverlapAmplitudeSet & | getOverlapAmplitudeSet () const |
|
Geometry & | getGeometry () |
|
const Geometry & | getGeometry () const |
|
std::string | serialize (Mode mode) 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) |
|
The context for the single particle part of a Model.
◆ SingleParticleContext() [1/3]
TBTK::SingleParticleContext::SingleParticleContext |
( |
| ) |
|
◆ SingleParticleContext() [2/3]
TBTK::SingleParticleContext::SingleParticleContext |
( |
const std::vector< unsigned int > & |
capacity | ) |
|
◆ SingleParticleContext() [3/3]
TBTK::SingleParticleContext::SingleParticleContext |
( |
const std::string & |
serialization, |
|
|
Mode |
mode |
|
) |
| |
Constructor. Constructs the SingleParticleContext from a serializeation string. Note that the BasisStateSet is not yet serialized.
- Parameters
-
serialization | Serialization string from which to construct the SingleParticleContext. |
mode | Mode with which the string has been serialized. |
◆ generateHoppingAmplitudeSet()
Generate a HoppingAmplitudeSet from the BasisStateSet.
- Parameters
-
hoppingAmplitudeCallback | Callback to use as argument for the HoppingAmplitudes. |
◆ generateOverlapAmplitudeSet()
Generate a OverlapAmplitudeSet from the BasisStateSet.
- Parameters
-
overlapAmplitudeCallback | Callback to use as argument for the OverlapAmplitudes. |
◆ getBasisStateSet() [1/2]
const BasisStateSet & TBTK::SingleParticleContext::getBasisStateSet |
( |
| ) |
|
|
inline |
Get the contained BasisStateSet.
- Returns
- The contained BasisStateSet.
◆ getBasisStateSet() [2/2]
const BasisStateSet& TBTK::SingleParticleContext::getBasisStateSet |
( |
| ) |
const |
Get the contained BasisStateSet.
- Returns
- The contained BasisStateSet.
◆ getGeometry() [1/2]
const Geometry & TBTK::SingleParticleContext::getGeometry |
( |
| ) |
|
|
inline |
◆ getGeometry() [2/2]
const Geometry& TBTK::SingleParticleContext::getGeometry |
( |
| ) |
const |
◆ getHoppingAmplitudeSet() [1/2]
◆ getHoppingAmplitudeSet() [2/2]
◆ getOverlapAmplitudeSet() [1/2]
◆ getOverlapAmplitudeSet() [2/2]
◆ getSourceAmplitudeSet() [1/2]
◆ getSourceAmplitudeSet() [2/2]
◆ getStatistics()
Statistics TBTK::SingleParticleContext::getStatistics |
( |
| ) |
const |
|
inline |
Get statistics.
- Returns
- The currently set Statistics.
◆ serialize()
std::string TBTK::SingleParticleContext::serialize |
( |
Mode |
mode | ) |
const |
|
virtual |
◆ setStatistics()
void TBTK::SingleParticleContext::setStatistics |
( |
Statistics |
statistics | ) |
|
|
inline |
Set statistics.
- Parameters
-
statistics | The Statistics to use. |
◆ FileReader
The documentation for this class was generated from the following file: