Gromacs  2025-dev-20240412-700e594
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Typedefs
iserializer.h File Reference
#include <cstddef>
#include <string>
#include "gromacs/utility/basedefinitions.h"
#include "gromacs/utility/real.h"
#include "gromacs/utility/smalloc.h"
+ Include dependency graph for iserializer.h:
+ This graph shows which files directly or indirectly include this file:

Description

Declares a generic serialization interface that supports both directions.

Todo:
Generalize and transfer serialization functionality used in mrc density file header serialization to here.
Author
Teemu Murtola teemu.nosp@m..mur.nosp@m.tola@.nosp@m.gmai.nosp@m.l.com

Classes

class  gmx::ISerializer
 Interface for types that convert standard data types into a form suitable for storage or transfer. More...
 

Typedefs

typedef real rvec [3]
 Duplicate definitions of those in vectypes.h. More...
 
typedef int ivec [3]
 

Typedef Documentation

typedef real rvec[3]

Duplicate definitions of those in vectypes.h.

This lets the utility module be independent of the math module, without which it is hard to build a proper layered library. The duplicates must remain matching, but if ever only one is changed then the compiler will complain about it.