List of all members | Public Member Functions | Friends
casadi::SerializingStream 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_ao

Definition at line 213 of file serializing_stream.hpp.

Public Member Functions

 SerializingStream (std::ostream &out)
 Constructor. More...
 
 SerializingStream (std::ostream &out, const Dict &opts)
 
void pack (const Sparsity &e)
 Serializes an object to the output stream. More...
 
void pack (const MX &e)
 
void pack (const SXElem &e)
 
void pack (const Linsol &e)
 
template<class T >
void pack (const Matrix< T > &e)
 
void pack (const Function &e)
 
void pack (const Importer &e)
 
void pack (const Fmu &e)
 
void pack (const Slice &e)
 
void pack (const GenericType &e)
 
void pack (std::istream &s)
 
void pack (int e)
 
void pack (bool e)
 
void pack (casadi_int e)
 
void pack (size_t e)
 
void pack (double e)
 
void pack (const std::string &e)
 
void pack (char e)
 
template<class T >
void pack (const std::vector< T > &e)
 
template<class K , class V >
void pack (const std::map< K, V > &e)
 
template<class A , class B >
void pack (const std::pair< A, B > &e)
 
template<class T >
void pack (const std::string &descr, const T &e)
 
template<class T >
void pack (const std::string &descr, T &e)
 
void version (const std::string &name, int v)
 
void connect (DeserializingStream &s)
 
void reset ()
 

Friends

class DeserializingStream
 

Constructor & Destructor Documentation

◆ SerializingStream() [1/2]

casadi::SerializingStream::SerializingStream ( std::ostream &  out)

◆ SerializingStream() [2/2]

casadi::SerializingStream::SerializingStream ( std::ostream &  out,
const Dict opts 
)

Member Function Documentation

◆ connect()

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

◆ pack() [1/23]

void casadi::SerializingStream::pack ( bool  e)

◆ pack() [2/23]

void casadi::SerializingStream::pack ( casadi_int  e)

◆ pack() [3/23]

void casadi::SerializingStream::pack ( char  e)

◆ pack() [4/23]

void casadi::SerializingStream::pack ( const Fmu &  e)

◆ pack() [5/23]

void casadi::SerializingStream::pack ( const Function e)

◆ pack() [6/23]

void casadi::SerializingStream::pack ( const GenericType e)

◆ pack() [7/23]

void casadi::SerializingStream::pack ( const Importer e)

◆ pack() [8/23]

void casadi::SerializingStream::pack ( const Linsol e)

◆ pack() [9/23]

template<class T >
void casadi::SerializingStream::pack ( const Matrix< T > &  e)
inline

Definition at line 229 of file serializing_stream.hpp.

◆ pack() [10/23]

void casadi::SerializingStream::pack ( const MX e)

◆ pack() [11/23]

void casadi::SerializingStream::pack ( const Slice e)

◆ pack() [12/23]

void casadi::SerializingStream::pack ( const Sparsity e)

◆ pack() [13/23]

template<class K , class V >
void casadi::SerializingStream::pack ( const std::map< K, V > &  e)
inline

Definition at line 255 of file serializing_stream.hpp.

◆ pack() [14/23]

template<class A , class B >
void casadi::SerializingStream::pack ( const std::pair< A, B > &  e)
inline

Definition at line 264 of file serializing_stream.hpp.

◆ pack() [15/23]

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

Definition at line 270 of file serializing_stream.hpp.

◆ pack() [16/23]

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

Definition at line 275 of file serializing_stream.hpp.

◆ pack() [17/23]

void casadi::SerializingStream::pack ( const std::string &  e)

◆ pack() [18/23]

template<class T >
void casadi::SerializingStream::pack ( const std::vector< T > &  e)
inline

Definition at line 249 of file serializing_stream.hpp.

◆ pack() [19/23]

void casadi::SerializingStream::pack ( const SXElem e)

◆ pack() [20/23]

void casadi::SerializingStream::pack ( double  e)

◆ pack() [21/23]

void casadi::SerializingStream::pack ( int  e)

◆ pack() [22/23]

void casadi::SerializingStream::pack ( size_t  e)

◆ pack() [23/23]

void casadi::SerializingStream::pack ( std::istream &  s)

◆ reset()

void casadi::SerializingStream::reset ( )

◆ version()

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

Friends And Related Function Documentation

◆ DeserializingStream

friend class DeserializingStream
friend

Definition at line 214 of file serializing_stream.hpp.


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