Gromacs  2026.0-dev-20250215-e896270
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Static Public Attributes
gmx::IsSerializableType< T > Struct Template Reference

#include <gromacs/mdtypes/checkpointdata.h>

Description

template<typename T>
struct gmx::IsSerializableType< T >

Struct allowing to check if data is serializable through the KeyValueTree serializer.

This list of types is copied from ValueSerializer::initSerializers() Having this here allows us to catch errors at compile time instead of having cryptic runtime errors

Static Public Attributes

static bool const value
 

Member Data Documentation

template<typename T >
bool const gmx::IsSerializableType< T >::value
static
Initial value:
= std::is_same_v<T, std::string> || std::is_same_v<T, bool>
|| std::is_same_v<T, int> || std::is_same_v<T, int64_t>
|| std::is_same_v<T, float> || std::is_same_v<T, double>

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