![]() |
TBTK
|
Need a break? Support the development by playing Polarity Puzzles |
Classes | |
| class | ConstIterator |
| class | Iterator |
Public Member Functions | |
| IndexedDataTree () | |
| IndexedDataTree (const std::string &serialization, Mode mode) | |
| virtual | ~IndexedDataTree () |
| void | add (const Data &data, const Index &index) |
| bool | get (Data &data, const Index &index) const |
| Data & | get (const Index &index) |
| const Data & | get (const Index &index) const |
| void | clear () |
| unsigned int | getSizeInBytes () const |
| virtual std::string | serialize (Mode mode) const |
| Iterator | begin () |
| ConstIterator | begin () const |
| ConstIterator | cbegin () const |
| Iterator | end () |
| ConstIterator | end () const |
| ConstIterator | cend () const |
Public Member Functions inherited from TBTK::Serializable | |
| 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) |
Additional Inherited Members | |
Public Types inherited from TBTK::Serializable | |
| enum | Mode { Debug, Binary, XML, JSON } |
Static Public Member Functions inherited from TBTK::Serializable | |
| 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 Protected Member Functions inherited from TBTK::Serializable | |
| 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) |
| TBTK::IndexedDataTree< Data >::IndexedDataTree |
Constructor.
|
inline |
Constructor. Constructs the IndexedDataTree from a serialization string.
| serialization | Serialization string from which to construct the IndexedDataTree. |
| mode | Mode with which the string has been serialized. |
|
virtual |
Destructor.
| void TBTK::IndexedDataTree< Data >::add | ( | const Data & | data, |
| const Index & | index | ||
| ) |
| IndexedDataTree< Data >::ConstIterator TBTK::IndexedDataTree< Data >::begin |
Create Iterator.
| ConstIterator TBTK::IndexedDataTree< Data >::begin | ( | ) | const |
Create ConstIterator.
| IndexedDataTree< Data >::ConstIterator TBTK::IndexedDataTree< Data >::cbegin |
Create ConstIterator.
| IndexedDataTree< Data >::ConstIterator TBTK::IndexedDataTree< Data >::cend |
Get ConstIterator that points to the end.
| void TBTK::IndexedDataTree< Data >::clear |
Clear the data.
| IndexedDataTree< Data >::ConstIterator TBTK::IndexedDataTree< Data >::end |
Get Iterator pointing to the end.
| ConstIterator TBTK::IndexedDataTree< Data >::end | ( | ) | const |
Get ConstIterator pointing to the end.
| Data & TBTK::IndexedDataTree< Data >::get | ( | const Index & | index | ) |
Get data.
| index | Index for which to extract the data for. |
| ElementNotFoundException | If the no element with the requested Index exists. |
| const Data & TBTK::IndexedDataTree< Data >::get | ( | const Index & | index | ) | const |
Get data.
| index | Index for which to extract the data for. |
| ElementNotFoundException | If the no element with the requested Index exists. |
| bool TBTK::IndexedDataTree< Data >::get | ( | Data & | data, |
| const Index & | index | ||
| ) | const |
Get data.
| data | Reference to an object that the data will be written to. |
| index | Index for which to extract the data for. |
| unsigned int TBTK::IndexedDataTree< Data >::getSizeInBytes |
Get size in bytes.
|
inlinevirtual |
Serilaize.
| mode | Serialization mode to use. |
Implements TBTK::Serializable.