Gromacs
2022-beta1
|
#include <optional>
#include "gromacs/math/vectypes.h"
#include "gromacs/utility/arrayref.h"
#include "gromacs/utility/exceptions.h"
#include "gromacs/utility/keyvaluetreebuilder.h"
#include "gromacs/utility/stringutil.h"
Provides the checkpoint data structure for the modular simulator.
Classes | |
struct | gmx::IsSerializableEnum< T, bool > |
{ More... | |
class | gmx::CheckpointData< operation > |
} More... | |
class | gmx::ReadCheckpointDataHolder |
Holder for read checkpoint data. More... | |
class | gmx::WriteCheckpointDataHolder |
Holder for write checkpoint data. More... | |
Typedefs | |
using | gmx::ReadCheckpointData = CheckpointData< CheckpointDataOperation::Read > |
Convenience shortcut for reading checkpoint data. | |
using | gmx::WriteCheckpointData = CheckpointData< CheckpointDataOperation::Write > |
Convenience shortcut for writing checkpoint data. | |
Enumerations | |
enum | gmx::CheckpointDataOperation { Read, Write, Count } |
The operations on CheckpointData. More... | |
Functions | |
template<CheckpointDataOperation operation, typename T > | |
ArrayRef< std::conditional_t < operation==CheckpointDataOperation::Write||std::is_const < T >::value, const typename T::value_type, typename T::value_type > > | gmx::makeCheckpointArrayRef (T &container) |
template<CheckpointDataOperation operation, typename T > | |
ArrayRef< std::conditional_t < operation==CheckpointDataOperation::Write||std::is_const < T >::value, const T, T > > | gmx::makeCheckpointArrayRefFromArray (T *begin, size_t size) |
template<typename VersionEnum > | |
VersionEnum | gmx::checkpointVersion (const ReadCheckpointData *checkpointData, const std::string &key, const VersionEnum programVersion) |
Read a checkpoint version enum variable. More... | |
template<typename VersionEnum > | |
VersionEnum | gmx::checkpointVersion (WriteCheckpointData *checkpointData, const std::string &key, const VersionEnum programVersion) |
Write the current code checkpoint version enum variable. More... | |