#include <gromacs/fileio/h5md/h5md_fixeddataset.h>
template<typename ValueType>
class gmx::H5mdFixedDataSet< ValueType >
Class which provides an interface for reading and writing data to data sets of fixed size.
- Template Parameters
-
| ValueType | Type of values stored in data set (not limited to primitives). |
|
|
| 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...
|
| |
template<typename ValueType >
Return the data set dimensions of the templated ValueType.
- Note
- For data sets of e.g. BasicVector<T> = T[3] this refers to the actual dimensions in terms of BasicVector<T>, not the base primitive T. So while data set with shape BasicVector<float>[30][50] has primitive dimensions float[30][50][3], the dimensions returned here are [30][50]. The returned dimensions are thus consistent with the size of input buffers ArrayRef<T> used for the I/O methods
readData and writeData.
template<typename ValueType >
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.
- Parameters
-
| [out] | data | Buffer to read data into from the data set. |
- Exceptions
-
template<typename ValueType >
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.
- Parameters
-
| [in] | data | Buffer with values to write into the data set. |
- Exceptions
-
The documentation for this class was generated from the following files:
- src/gromacs/fileio/h5md/h5md_fixeddataset.h
- src/gromacs/fileio/h5md/h5md_fixeddataset.cpp