ThunderEgg
1.0.0
|
Interface for serializing objects. More...
#include <Serializable.h>
Public Member Functions | |
virtual | ~Serializable ()=default |
Destroy the Serializable object. | |
virtual int | serialize (char *buffer) const =0 |
Serialize object into buffer. More... | |
virtual int | deserialize (char *buffer)=0 |
Deserialize an object. More... | |
Interface for serializing objects.
|
pure virtual |
Deserialize an object.
buffer | the buffer |
Implemented in ThunderEgg::FineNbrInfo< D >, ThunderEgg::CoarseNbrInfo< D >, ThunderEgg::NormalNbrInfo< D >, ThunderEgg::PatchInfo< D >, ThunderEgg::Schur::Interface< D >, and ThunderEgg::Schur::PatchIfaceInfo< D >.
|
pure virtual |
Serialize object into buffer.
buffer | the buffer. Can be set to nullptr if you just want the size |
Implemented in ThunderEgg::FineNbrInfo< D >, ThunderEgg::CoarseNbrInfo< D >, ThunderEgg::NormalNbrInfo< D >, ThunderEgg::PatchInfo< D >, ThunderEgg::Schur::PatchIfaceInfo< D >, and ThunderEgg::Schur::Interface< D >.