Gromacs  2018.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions
gmx::ISerializer Class Referenceabstract

#include <gromacs/utility/iserializer.h>

Inherited by anonymous_namespace{keyvaluetreeserializer.cpp}::RefDataSerializer, gmx::FileIOXdrSerializer, gmx::InMemoryDeserializer, and gmx::InMemorySerializer.

Description

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
 

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