Gromacs  2026.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions
gmx::H5mdTimeDataBlockBuilder< ValueType > Class Template Reference

#include <gromacs/fileio/h5md/h5md_timedatablock.h>

Description

template<typename ValueType>
class gmx::H5mdTimeDataBlockBuilder< ValueType >

Builder class to create new H5mdTimeDataBlock objects.

Creates new (empty) value, step and time data sets with the expected names. Also exposes some options for the creation of these data sets.

A unit can be set to the value data set using withUnit. Time data sets are always created with a unit attribute set to "ps". Step data sets never have a unit attribute.

Once all desired options are set, use H5mdTimeBlockBuilder::build() to finalize all data sets and return the resulting H5mdTimeDataBlock.

Public Member Functions

 H5mdTimeDataBlockBuilder (hid_t container, const std::string &name)
 Return a builder to create a H5mdTimeDataBlock (called name, in container). More...
 
H5mdTimeDataBlockBuilderwithCompression (H5mdCompression compression)
 Set compression for value data set (default is uncompressed).
 
H5mdTimeDataBlockBuilderwithFrameDimension (ArrayRef< const hsize_t > dims)
 Set dimension for a single frame in the value data set.
 
H5mdTimeDataBlockBuilderwithFrameDimension (std::initializer_list< hsize_t > dims)
 Set dimension for a single frame in the value data set. More...
 
H5mdTimeDataBlockBuilderwithUnit (std::string_view unit)
 Set a unit attribute to the value data set.
 
H5mdTimeDataBlock< ValueType > build ()
 Create all data sets and return as a H5mdTimeDataBlock.
 
 GMX_DISALLOW_COPY_MOVE_AND_ASSIGN (H5mdTimeDataBlockBuilder)
 

Constructor & Destructor Documentation

template<typename ValueType >
gmx::H5mdTimeDataBlockBuilder< ValueType >::H5mdTimeDataBlockBuilder ( hid_t  container,
const std::string &  name 
)

Return a builder to create a H5mdTimeDataBlock (called name, in container).

Exceptions
gmx::FileIOErrorif there already exists an object at the given path.

Member Function Documentation

template<typename ValueType >
H5mdTimeDataBlockBuilder< ValueType > & gmx::H5mdTimeDataBlockBuilder< ValueType >::withFrameDimension ( std::initializer_list< hsize_t >  dims)

Set dimension for a single frame in the value data set.


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