BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Defines class Streamer.
Definition in file Serialize.h.
Go to the source code of this file.
Namespaces | |
Serialize | |
Functions to serialize various data types. | |
Functions | |
template<typename BaseClass > | |
void | Serialize::rwBaseClass (Streamer &s, const QString &tag, BaseClass *p) |
Serializes part of an items that belongs to a given base class. More... | |
template<typename Catalog , typename... Args> | |
void | Serialize::rwCatalogized (Streamer &s, const QString &tag, QVector< typename Catalog::CatalogedType * > &vec, Args... argsForConstructor) |
Serializes a list of items from a class hierarchy described by a catalog. Passes optional arguments to the constructor. More... | |
template<typename T > | |
void | Serialize::rwClass (Streamer &s, const QString &tag, T &t) |
Serializes an item from a class that provides the function void serialize(Streamer&) . More... | |
template<typename ItemClass > | |
void | Serialize::rwInitializable (Streamer &s, const QString &tag, std::unique_ptr< ItemClass > &up, const std::function< void(ItemClass *)> &initializer) |
Serializes an optional item of known type that needs an initializer. More... | |
template<typename ItemClass , typename... ArgsForConstructor> | |
void | Serialize::rwOptional (Streamer &s, const QString &tag, std::unique_ptr< ItemClass > &up, ArgsForConstructor... argsForConstructor) |
Serializes an optional item of known type. Passes optional arguments to the constructor. More... | |
void | Serialize::rwValue (Streamer &s, const QString &tag, bool &val) |
void | Serialize::rwValue (Streamer &s, const QString &tag, double &val) |
void | Serialize::rwValue (Streamer &s, const QString &tag, int &val) |
void | Serialize::rwValue (Streamer &s, const QString &tag, QByteArray &val) |
void | Serialize::rwValue (Streamer &s, const QString &tag, QColor &col) |
void | Serialize::rwValue (Streamer &s, const QString &tag, QString &val) |
void | Serialize::rwValue (Streamer &s, const QString &tag, R3 &val) |
template<typename T , typename... Args> | |
void | Serialize::rwVector (Streamer &s, const QString &tag, QVector< T > &vec, Args... argsForConstructor) |
Serializes a list of items of known and fixed type. Passes optional arguments to the constructor. More... | |