ThunderEgg  1.0.0
ThunderEgg::Serializable Class Referenceabstract

Interface for serializing objects. More...

#include <Serializable.h>

Inheritance diagram for ThunderEgg::Serializable:

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...
 

Detailed Description

Interface for serializing objects.

Member Function Documentation

◆ deserialize()

virtual int ThunderEgg::Serializable::deserialize ( char *  buffer)
pure virtual

Deserialize an object.

Parameters
bufferthe buffer
Returns
int the size of object that was deserialized

Implemented in ThunderEgg::FineNbrInfo< D >, ThunderEgg::CoarseNbrInfo< D >, ThunderEgg::NormalNbrInfo< D >, ThunderEgg::PatchInfo< D >, ThunderEgg::Schur::Interface< D >, and ThunderEgg::Schur::PatchIfaceInfo< D >.

◆ serialize()

virtual int ThunderEgg::Serializable::serialize ( char *  buffer) const
pure virtual

Serialize object into buffer.

Parameters
bufferthe buffer. Can be set to nullptr if you just want the size
Returns
int the size of the serialized object

Implemented in ThunderEgg::FineNbrInfo< D >, ThunderEgg::CoarseNbrInfo< D >, ThunderEgg::NormalNbrInfo< D >, ThunderEgg::PatchInfo< D >, ThunderEgg::Schur::PatchIfaceInfo< D >, and ThunderEgg::Schur::Interface< D >.


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