Gromacs
2018.8
|
#include <gromacs/utility/iserializer.h>
Inherited by anonymous_namespace{keyvaluetreeserializer.cpp}::RefDataSerializer, gmx::FileIOXdrSerializer, gmx::InMemoryDeserializer, and gmx::InMemorySerializer.
Interface for types that convert standard data types into a form suitable for storage or transfer.
Different implementations could suit MPI, file I/O, or in-memory conversion.
Public Member Functions | |
virtual | ~ISerializer () |
Destructor. | |
virtual bool | reading () const =0 |
Returns whether the serializer is reading or writing, because details like memory management vary accordingly. | |
virtual void | doBool (bool *value)=0 |
Serialize values of different types. | |
virtual void | doUChar (unsigned char *value)=0 |
virtual void | doInt (int *value)=0 |
virtual void | doInt64 (gmx_int64_t *value)=0 |
virtual void | doFloat (float *value)=0 |
virtual void | doDouble (double *value)=0 |
virtual void | doString (std::string *value)=0 |