|
Gromacs
2026.0-dev-20251119-5f0a571d
|
#include <gromacs/fileio/h5md/h5md_fixeddataset.h>
Inheritance diagram for gmx::H5mdFixedDataSet< ValueType >:
Collaboration diagram for gmx::H5mdFixedDataSet< ValueType >:Class which provides an interface for reading and writing data to data sets of fixed size.
| ValueType | Type of values stored in data set (not limited to primitives). |
Public Types | |
| using | Base = H5mdDataSetBase< ValueType > |
Public Member Functions | |
| H5mdFixedDataSet (H5mdDataSetBase< ValueType > &&dataSet) | |
Constructor to manage a given dataSet. | |
| H5mdFixedDataSet (hid_t container, const char *name) | |
Constructor to open an existing data set (called name, in container). | |
| const DataSetDims & | dims () const |
| Return the data set dimensions of the templated ValueType. More... | |
| hsize_t | numValues () const |
| Return the total number of values, of ValueType, stored in the data set. | |
| void | readData (ArrayRef< ValueType > data) const |
Read all data from the data set into the given buffer data. More... | |
| void | writeData (ArrayRef< const ValueType > data) const |
Write to all values in the data set from the given buffer data. More... | |
Private Member Functions | |
| hid_t | id () const |
| Return the HDF5 handle of the data set. More... | |
| hid_t | dataType () const |
| Return the HDF5 handle of the data type for the managed data set. More... | |
| hid_t | nativeDataType () const |
| Return the HDF5 handle of the native data type for the managed data set. More... | |
| const DataSetDims & gmx::H5mdFixedDataSet< ValueType >::dims | ( | ) | const |
Return the data set dimensions of the templated ValueType.
readData and writeData. | void gmx::H5mdFixedDataSet< ValueType >::readData | ( | ArrayRef< ValueType > | data | ) | const |
Read all data from the data set into the given buffer data.
The size of the input data buffer must match that of the data set dims(). If the data set is multidimensional one must cast the data into a 1-dimensional form of row-major order.
| [out] | data | Buffer to read data into from the data set. |
| gmx::FileIOError | if the buffer size does not match the data set. |
| void gmx::H5mdFixedDataSet< ValueType >::writeData | ( | ArrayRef< const ValueType > | data | ) | const |
Write to all values in the data set from the given buffer data.
The size of the input data buffer must match that of the data set dims(). If the data set is multidimensional one must cast the data into a 1-dimensional form of row-major order.
| [in] | data | Buffer with values to write into the data set. |
| gmx::FileIOError | if the buffer size does not match the data set. |
1.8.5