List of all members | Public Member Functions | Friends
casadi::DeserializingStream Class Reference

Helper class for Serialization. More...

#include <serializing_stream.hpp>

Detailed Description

Author
Joris Gillis
Date
2018

Extra doc: https://github.com/casadi/casadi/wiki/L_ak

Definition at line 72 of file serializing_stream.hpp.

Public Member Functions

 DeserializingStream (std::istream &in_s)
 Constructor. More...
 
 DeserializingStream (const DeserializingStream &)=delete
 
void unpack (Sparsity &e)
 Reconstruct an object from the input stream. More...
 
void unpack (MX &e)
 
void unpack (SXElem &e)
 
void unpack (Linsol &e)
 
template<class T >
void unpack (Matrix< T > &e)
 
void unpack (Function &e)
 
void unpack (Importer &e)
 
void unpack (Fmu &e)
 
void unpack (GenericType &e)
 
void unpack (std::ostream &s)
 
void unpack (Slice &e)
 
void unpack (int &e)
 
void unpack (bool &e)
 
void unpack (casadi_int &e)
 
void unpack (size_t &e)
 
void unpack (std::string &e)
 
void unpack (double &e)
 
void unpack (char &e)
 
template<class T >
void unpack (std::vector< T > &e)
 
template<class K , class V >
void unpack (std::map< K, V > &e)
 
template<class A , class B >
void unpack (std::pair< A, B > &e)
 
template<class T >
void unpack (const std::string &descr, T &e)
 
void version (const std::string &name, int v)
 
int version (const std::string &name)
 
int version (const std::string &name, int min, int max)
 
void connect (SerializingStream &s)
 
void reset ()
 
template<>
CASADI_EXPORT void unpack (std::vector< bool > &e)
 

Friends

class SerializingStream
 

Constructor & Destructor Documentation

◆ DeserializingStream() [1/2]

casadi::DeserializingStream::DeserializingStream ( std::istream &  in_s)

◆ DeserializingStream() [2/2]

casadi::DeserializingStream::DeserializingStream ( const DeserializingStream )
delete

Member Function Documentation

◆ connect()

void casadi::DeserializingStream::connect ( SerializingStream s)

◆ reset()

void casadi::DeserializingStream::reset ( )

◆ unpack() [1/23]

void casadi::DeserializingStream::unpack ( bool &  e)

◆ unpack() [2/23]

void casadi::DeserializingStream::unpack ( casadi_int &  e)

◆ unpack() [3/23]

void casadi::DeserializingStream::unpack ( char &  e)

◆ unpack() [4/23]

template<class T >
void casadi::DeserializingStream::unpack ( const std::string &  descr,
T &  e 
)
inline

Definition at line 143 of file serializing_stream.hpp.

◆ unpack() [5/23]

void casadi::DeserializingStream::unpack ( double &  e)

◆ unpack() [6/23]

void casadi::DeserializingStream::unpack ( Fmu &  e)

◆ unpack() [7/23]

void casadi::DeserializingStream::unpack ( Function e)

◆ unpack() [8/23]

void casadi::DeserializingStream::unpack ( GenericType e)

◆ unpack() [9/23]

void casadi::DeserializingStream::unpack ( Importer e)

◆ unpack() [10/23]

void casadi::DeserializingStream::unpack ( int &  e)

◆ unpack() [11/23]

void casadi::DeserializingStream::unpack ( Linsol e)

◆ unpack() [12/23]

template<class T >
void casadi::DeserializingStream::unpack ( Matrix< T > &  e)
inline

Definition at line 91 of file serializing_stream.hpp.

◆ unpack() [13/23]

void casadi::DeserializingStream::unpack ( MX e)

◆ unpack() [14/23]

void casadi::DeserializingStream::unpack ( size_t &  e)

◆ unpack() [15/23]

void casadi::DeserializingStream::unpack ( Slice e)

◆ unpack() [16/23]

void casadi::DeserializingStream::unpack ( Sparsity e)

If the reference is not of the same type as the object encoded in the stream. an error will be raised.

Extra doc: https://github.com/casadi/casadi/wiki/L_al

◆ unpack() [17/23]

template<class K , class V >
void casadi::DeserializingStream::unpack ( std::map< K, V > &  e)
inline

Definition at line 121 of file serializing_stream.hpp.

◆ unpack() [18/23]

void casadi::DeserializingStream::unpack ( std::ostream &  s)

◆ unpack() [19/23]

template<class A , class B >
void casadi::DeserializingStream::unpack ( std::pair< A, B > &  e)
inline

Definition at line 136 of file serializing_stream.hpp.

◆ unpack() [20/23]

void casadi::DeserializingStream::unpack ( std::string &  e)

◆ unpack() [21/23]

template<>
CASADI_EXPORT void casadi::DeserializingStream::unpack ( std::vector< bool > &  e)

◆ unpack() [22/23]

template<class T >
void casadi::DeserializingStream::unpack ( std::vector< T > &  e)
inline

Definition at line 112 of file serializing_stream.hpp.

◆ unpack() [23/23]

void casadi::DeserializingStream::unpack ( SXElem e)

◆ version() [1/3]

int casadi::DeserializingStream::version ( const std::string &  name)

◆ version() [2/3]

int casadi::DeserializingStream::version ( const std::string &  name,
int  min,
int  max 
)

◆ version() [3/3]

void casadi::DeserializingStream::version ( const std::string &  name,
int  v 
)

Friends And Related Function Documentation

◆ SerializingStream

friend class SerializingStream
friend

Definition at line 73 of file serializing_stream.hpp.


The documentation for this class was generated from the following file: