Gromacs: gmx::ISerializer Class Reference

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


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 (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:

Read more here: Source link