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

#include <gromacs/mdtypes/checkpointdata.h>

Description

Holder for read checkpoint data.

A ReadCheckpointDataHolder object is passed to the checkpoint reading functionality, and then passed into the SimulatorBuilder object. It holds the KV-tree read from file and dispatches CheckpointData objects to the checkpoint clients.

Public Member Functions

bool keyExists (const std::string &key) const
 Check whether a key exists.
 
std::vector< std::string > keys () const
 Return vector of existing keys.
 
void deserialize (ISerializer *serializer)
 Deserialize serializer content into the CheckpointData object.
 
ReadCheckpointData checkpointData (const std::string &key) const
 Return a subset of the current CheckpointData. More...
 
void dump (FILE *out) const
 Write the contents of the Checkpoint to file.
 

Member Function Documentation

ReadCheckpointData gmx::ReadCheckpointDataHolder::checkpointData ( const std::string &  key) const

Return a subset of the current CheckpointData.

Parameters
keyThe key to [read|write] the sub data [from|to]
Returns
A CheckpointData object representing a subset of the current object

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