proxsuite 0.6.7
The Advanced Proximal Optimization Toolbox
|
Functions | |
template<typename T > | |
void | loadFromStringStream (T &object, std::istringstream &is) |
Loads an object from a std::stringstream. | |
template<typename T > | |
void | saveToStringStream (const T &object, std::stringstream &ss) |
Saves an object inside a std::stringstream. | |
template<typename T > | |
void | loadFromString (T &object, const std::string &str) |
Loads an object from a std::string. | |
template<typename T > | |
std::string | saveToString (const T &object) |
Saves an object inside a std::string. | |
template<typename T > | |
void | loadFromBinary (T &object, const std::string &filename) |
Loads an object from a binary file. | |
template<typename T > | |
void | saveToBinary (const T &object, const std::string &filename) |
Saves an object inside a binary file. | |
template<typename T > | |
void | loadFromJSON (T &object, const std::string &filename) |
Loads an object from a JSON file. | |
template<typename T > | |
void | saveToJSON (const T &object, const std::string &filename) |
Saves an object inside a JSON file. | |
template<typename T > | |
void | loadFromXML (T &object, const std::string &filename) |
Loads an object from a XML file. | |
template<typename T > | |
void | saveToXML (const T &object, const std::string &filename) |
Saves an object inside a XML file. | |
|
inline |
Loads an object from a std::stringstream.
T | Type of the object to deserialize. |
[out] | object | Object in which the loaded data are copied. |
[in] | is | string stream constaining the serialized content of the object. |
Definition at line 33 of file archive.hpp.
|
inline |
Saves an object inside a std::stringstream.
T | Type of the object to deserialize. |
[in] | object | Object in which the loaded data are copied. |
[out] | ss | String stream constaining the serialized content of the object. |
Definition at line 50 of file archive.hpp.
|
inline |
Loads an object from a std::string.
T | Type of the object to deserialize. |
[out] | object | Object in which the loaded data are copied. |
[in] | str | string constaining the serialized content of the object. |
Definition at line 66 of file archive.hpp.
|
inline |
Saves an object inside a std::string.
T | Type of the object to deserialize. |
[in] | object | Object in which the loaded data are copied. |
Definition at line 83 of file archive.hpp.
|
inline |
Loads an object from a binary file.
T | Type of the object to deserialize. |
[out] | object | Object in which the loaded data are copied. |
[in] | filename | Name of the file containing the serialized data. |
Definition at line 100 of file archive.hpp.
void proxsuite::serialization::saveToBinary | ( | const T & | object, |
const std::string & | filename ) |
Saves an object inside a binary file.
T | Type of the object to deserialize. |
[in] | object | Object in which the loaded data are copied. |
[in] | filename | Name of the file containing the serialized data. |
Definition at line 123 of file archive.hpp.
|
inline |
Loads an object from a JSON file.
T | Type of the object to deserialize. |
[out] | object | Object in which the loaded data are copied. |
[in] | filename | Name of the file containing the serialized data. |
Definition at line 146 of file archive.hpp.
void proxsuite::serialization::saveToJSON | ( | const T & | object, |
const std::string & | filename ) |
Saves an object inside a JSON file.
T | Type of the object to deserialize. |
[in] | object | Object in which the loaded data are copied. |
[in] | filename | Name of the file containing the serialized data. |
Definition at line 169 of file archive.hpp.
|
inline |
Loads an object from a XML file.
T | Type of the object to deserialize. |
[out] | object | Object in which the loaded data are copied. |
[in] | filename | Name of the file containing the serialized data. |
Definition at line 192 of file archive.hpp.
void proxsuite::serialization::saveToXML | ( | const T & | object, |
const std::string & | filename ) |
Saves an object inside a XML file.
T | Type of the object to deserialize. |
[in] | object | Object in which the loaded data are copied. |
[in] | filename | Name of the file containing the serialized data. |
Definition at line 215 of file archive.hpp.