|
Gromacs
2026.0-dev-20251106-2ba968f
|
#include <gromacs/fileio/h5md/h5md_framedataset.h>
Inheritance diagram for gmx::H5mdScalarFrameDataSet< ValueType >:
Collaboration diagram for gmx::H5mdScalarFrameDataSet< ValueType >:Class which provides an interface for reading and writing scalar frame data to H5mdDataSetBase objects.
Scalar frame data is a 1d array of the templated type, e.g. float[numFrames] or RVec[numFrames]. This class is a specializion of H5mdFrameDataSet for such data sets and provides a simpler I/O interface for reading and writing single values from/into the data sets.
| ValueType | Type of values stored in data set (not limited to base primitives). |
Public Member Functions | |
| H5mdScalarFrameDataSet (H5mdFrameDataSet< ValueType > &&dataSet) | |
Constructor to manage a given dataSet. More... | |
| H5mdScalarFrameDataSet (hid_t container, const char *name) | |
Constructor to open an existing data set (called name, in container). More... | |
| void | readFrame (hsize_t frameIndex, ValueType *value) |
Read data from frame at index into value. More... | |
| void | writeNextFrame (const ValueType &value) |
Write data from values into the next frame. More... | |
Private Types | |
| using | Base = H5mdDataSetBase< ValueType > |
Private Member Functions | |
| const DataSetDims & | frameDims () const |
| Return the dimensions of a single frame of the templated type in data set. More... | |
| hsize_t | numFrames () const noexcept |
| Return the number of frames in the data set. More... | |
| void | readFrame (hsize_t index, ArrayRef< ValueType > values) |
Read data from frame at index into values. More... | |
| void | writeNextFrame (ArrayRef< const ValueType > values) |
Write data from values into the next frame. More... | |
| gmx::H5mdScalarFrameDataSet< ValueType >::H5mdScalarFrameDataSet | ( | H5mdFrameDataSet< ValueType > && | dataSet | ) |
Constructor to manage a given dataSet.
| gmx::FileIOError | if the data set frame dimensions is not empty. |
| gmx::H5mdScalarFrameDataSet< ValueType >::H5mdScalarFrameDataSet | ( | hid_t | container, |
| const char * | name | ||
| ) |
Constructor to open an existing data set (called name, in container).
| gmx::FileIOError | if the data set frame dimensions is not empty. |
| void gmx::H5mdScalarFrameDataSet< ValueType >::readFrame | ( | hsize_t | frameIndex, |
| ValueType * | value | ||
| ) |
Read data from frame at index into value.
| [in] | frameIndex | Frame index to read data from. |
| [out] | value | Value into which to read data. |
| gmx::FileIOError | if an error occurred when reading the data. |
| void gmx::H5mdScalarFrameDataSet< ValueType >::writeNextFrame | ( | const ValueType & | value | ) |
Write data from values into the next frame.
| [in] | value | Value to write. |
| gmx::FileIOError | if an error occurred when writing the data. |
1.8.5