List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends
casadi::SerializerBase Class Reference

#include <serializer.hpp>

Detailed Description

Definition at line 48 of file serializer.hpp.

Inheritance diagram for casadi::SerializerBase:
Inheritance graph
[legend]

Public Types

enum  SerializationType {
  SERIALIZED_SPARSITY , SERIALIZED_MX , SERIALIZED_DM , SERIALIZED_SX ,
  SERIALIZED_LINSOL , SERIALIZED_FUNCTION , SERIALIZED_GENERICTYPE , SERIALIZED_INT ,
  SERIALIZED_DOUBLE , SERIALIZED_STRING , SERIALIZED_SPARSITY_VECTOR , SERIALIZED_MX_VECTOR ,
  SERIALIZED_DM_VECTOR , SERIALIZED_SX_VECTOR , SERIALIZED_LINSOL_VECTOR , SERIALIZED_FUNCTION_VECTOR ,
  SERIALIZED_GENERICTYPE_VECTOR , SERIALIZED_INT_VECTOR , SERIALIZED_DOUBLE_VECTOR , SERIALIZED_STRING_VECTOR
}
 

Public Member Functions

 ~SerializerBase ()
 
void pack (const Sparsity &e)
 
void pack (const MX &e)
 
void pack (const Matrix< double > &e)
 
void pack (const Matrix< SXElem > &e)
 
void pack (const Linsol &e)
 
void pack (const Function &e)
 
void pack (const GenericType &e)
 
void pack (const casadi_int &e)
 
void pack (const double &e)
 
void pack (const std::string &e)
 
void pack (const std::vector< Sparsity > &e)
 
void pack (const std::vector< MX > &e)
 
void pack (const std::vector< Matrix< double > > &e)
 
void pack (const std::vector< Matrix< SXElem > > &e)
 
void pack (const std::vector< Linsol > &e)
 
void pack (const std::vector< Function > &e)
 
void pack (const std::vector< GenericType > &e)
 
void pack (const std::vector< casadi_int > &e)
 
void pack (const std::vector< double > &e)
 
void pack (const std::vector< std::string > &e)
 
void connect (DeserializerBase &s)
 
void reset ()
 

Static Public Member Functions

static std::string type_to_string (SerializationType type)
 

Protected Member Functions

SerializingStreamserializer ()
 

Protected Attributes

std::unique_ptr< std::ostream > sstream_
 
std::unique_ptr< SerializingStreamserializer_
 

Friends

class DeserializerBase
 

Member Enumeration Documentation

◆ SerializationType

Enumerator
SERIALIZED_SPARSITY 
SERIALIZED_MX 
SERIALIZED_DM 
SERIALIZED_SX 
SERIALIZED_LINSOL 
SERIALIZED_FUNCTION 
SERIALIZED_GENERICTYPE 
SERIALIZED_INT 
SERIALIZED_DOUBLE 
SERIALIZED_STRING 
SERIALIZED_SPARSITY_VECTOR 
SERIALIZED_MX_VECTOR 
SERIALIZED_DM_VECTOR 
SERIALIZED_SX_VECTOR 
SERIALIZED_LINSOL_VECTOR 
SERIALIZED_FUNCTION_VECTOR 
SERIALIZED_GENERICTYPE_VECTOR 
SERIALIZED_INT_VECTOR 
SERIALIZED_DOUBLE_VECTOR 
SERIALIZED_STRING_VECTOR 

Definition at line 78 of file serializer.hpp.

Constructor & Destructor Documentation

◆ ~SerializerBase()

casadi::SerializerBase::~SerializerBase ( )

Member Function Documentation

◆ connect()

void casadi::SerializerBase::connect ( DeserializerBase s)

◆ pack() [1/20]

void casadi::SerializerBase::pack ( const casadi_int &  e)

◆ pack() [2/20]

void casadi::SerializerBase::pack ( const double &  e)

◆ pack() [3/20]

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

◆ pack() [4/20]

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

◆ pack() [5/20]

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

◆ pack() [6/20]

void casadi::SerializerBase::pack ( const Matrix< double > &  e)

◆ pack() [7/20]

void casadi::SerializerBase::pack ( const Matrix< SXElem > &  e)

◆ pack() [8/20]

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

◆ pack() [9/20]

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

◆ pack() [10/20]

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

◆ pack() [11/20]

void casadi::SerializerBase::pack ( const std::vector< casadi_int > &  e)

◆ pack() [12/20]

void casadi::SerializerBase::pack ( const std::vector< double > &  e)

◆ pack() [13/20]

void casadi::SerializerBase::pack ( const std::vector< Function > &  e)

◆ pack() [14/20]

void casadi::SerializerBase::pack ( const std::vector< GenericType > &  e)

◆ pack() [15/20]

void casadi::SerializerBase::pack ( const std::vector< Linsol > &  e)

◆ pack() [16/20]

void casadi::SerializerBase::pack ( const std::vector< Matrix< double > > &  e)

◆ pack() [17/20]

void casadi::SerializerBase::pack ( const std::vector< Matrix< SXElem > > &  e)

◆ pack() [18/20]

void casadi::SerializerBase::pack ( const std::vector< MX > &  e)

◆ pack() [19/20]

void casadi::SerializerBase::pack ( const std::vector< Sparsity > &  e)

◆ pack() [20/20]

void casadi::SerializerBase::pack ( const std::vector< std::string > &  e)

◆ reset()

void casadi::SerializerBase::reset ( )

◆ serializer()

SerializingStream& casadi::SerializerBase::serializer ( )
protected

◆ type_to_string()

static std::string casadi::SerializerBase::type_to_string ( SerializationType  type)
static

Friends And Related Function Documentation

◆ DeserializerBase

friend class DeserializerBase
friend

Definition at line 49 of file serializer.hpp.

Member Data Documentation

◆ serializer_

std::unique_ptr<SerializingStream> casadi::SerializerBase::serializer_
protected

Definition at line 109 of file serializer.hpp.

◆ sstream_

std::unique_ptr<std::ostream> casadi::SerializerBase::sstream_
protected

Definition at line 108 of file serializer.hpp.


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