BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
Serialize.h File Reference

Description

Defines class Streamer.

Homepage:\n http://www.bornagainproject.org
License:\n GNU General Public License v3 or higher (see COPYING)
Authors
Scientific Computing Group at MLZ (see CITATION, AUTHORS)

Definition in file Serialize.h.

Include dependency graph for Serialize.h:
This graph shows which files directly or indirectly include this file:

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...