Gromacs  2025-dev-20240913-b871546
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Functions
gmx::test::anonymous_namespace{checkpointdata.cpp} Namespace Reference

Classes

struct  IsVectorOfSerializableType
 Struct allowing to check if type is vector of serializable data. More...
 
class  TestValues
 Unified looping over test data. More...
 
class  CheckpointDataTest
 CheckpointData test fixture. More...
 

Functions

template<typename T >
std::enable_if_t
< IsSerializableType< T >
::value, void > 
writeInput (const std::string &key, const T &inputValue, WriteCheckpointData *checkpointData)
 Write scalar input to CheckpointData.
 
template<typename T >
std::enable_if_t
< IsSerializableType< T >
::value, void > 
testOutput (const std::string &key, const T &inputValue, ReadCheckpointData *checkpointData)
 Read scalar from CheckpointData and test if equal to input.
 
template<typename T >
void writeInput (const std::string &key, const std::vector< T > &inputVector, WriteCheckpointData *checkpointData)
 Write vector input to CheckpointData.
 
template<typename T >
void testOutput (const std::string &key, const std::vector< T > &inputVector, ReadCheckpointData *checkpointData)
 Read vector from CheckpointData and test if equal to input.
 
void writeInput (const std::string &key, const tensor inputTensor, WriteCheckpointData *checkpointData)
 Write tensor input to CheckpointData.
 
void testOutput (const std::string &key, const tensor inputTensor, ReadCheckpointData *checkpointData)
 Read tensor from CheckpointData and test if equal to input.