TRIQS/h5 1.3.0
C++ interface to HDF5
Loading...
Searching...
No Matches
h5::Storable Concept Reference

#include <h5/h5.hpp>

Detailed Description

Concept to check if a type can be read/written from/to HDF5.

Template Parameters
TType to check.

Definition at line 63 of file h5.hpp.

Concept definition

template<typename T>
concept h5::Storable = requires(T const &xc, T &x, h5::group g, std::string const &name) {
{ T::hdf5_format() } -> std::convertible_to<std::string>;
{ h5_write(g, name, xc) };
{ h5_read(g, name, x) };
}
A handle to an HDF5 group.
Definition group.hpp:44
Concept to check if a type can be read/written from/to HDF5.
Definition h5.hpp:63
T h5_read(group g, std::string const &key)
Generic implementation for reading from an HDF5 dataset/subgroup.
Definition generic.hpp:51
void h5_write(group g, std::string const &name, T const &x) H5_REQUIRES(std
Write a scalar to an HDF5 dataset.
Definition scalar.hpp:70