SST
13.0.0
StructuralSimulationToolkit
|
This class is basically a wrapper for objects to declare the order in which their members should be ser/des. More...
#include <serializer.h>
Public Types | |
enum | SERIALIZE_MODE { SIZER, PACK, UNPACK } |
Public Member Functions | |
pvt::ser_packer & | packer () |
pvt::ser_unpacker & | unpacker () |
pvt::ser_sizer & | sizer () |
template<class T > | |
void | size (T &t) |
template<class T > | |
void | pack (T &t) |
template<class T > | |
void | unpack (T &t) |
SERIALIZE_MODE | mode () const |
void | set_mode (SERIALIZE_MODE mode) |
void | reset () |
template<typename T > | |
void | primitive (T &t) |
template<class T , int N> | |
void | array (T arr[N]) |
template<typename T , typename Int > | |
void | binary (T *&buffer, Int &size) |
template<typename Int > | |
void | binary (void *&buffer, Int &size) |
void | string (std::string &str) |
void | start_packing (char *buffer, size_t size) |
void | start_sizing () |
void | start_unpacking (char *buffer, size_t size) |
size_t | size () const |
Protected Attributes | |
pvt::ser_packer | packer_ |
pvt::ser_unpacker | unpacker_ |
pvt::ser_sizer | sizer_ |
SERIALIZE_MODE | mode_ |
This class is basically a wrapper for objects to declare the order in which their members should be ser/des.