16 #ifndef QMCPLUSPLUS_HDF_H5_DATAPROXY_H 17 #define QMCPLUSPLUS_HDF_H5_DATAPROXY_H 38 inline bool read(
data_type& ref, hid_t grp,
const std::string& aname, hid_t xfer_plist = H5P_DEFAULT)
45 inline bool check_type(hid_t grp,
const std::string& aname) {
return h5d_check_type<data_type>(grp, aname); }
47 inline bool write(
const data_type& ref, hid_t grp,
const std::string& aname, hid_t xfer_plist = H5P_DEFAULT)
const 65 inline bool read(
data_type& ref, hid_t grp,
const std::string& aname, hid_t xfer_plist = H5P_DEFAULT)
67 int copy =
static_cast<int>(ref);
69 ref =
static_cast<bool>(
copy);
73 inline bool write(
const data_type& ref, hid_t grp,
const std::string& aname, hid_t xfer_plist = H5P_DEFAULT)
const 75 int copy =
static_cast<int>(ref);
define h5_space_type to handle basic datatype for hdf5
default struct to define a h5 dataspace, any intrinsic type T
helper functions for EinsplineSetBuilder
bool write(const data_type &ref, hid_t grp, const std::string &aname, hid_t xfer_plist=H5P_DEFAULT) const
bool write(const data_type &ref, hid_t grp, const std::string &aname, hid_t xfer_plist=H5P_DEFAULT) const
void copy(const Array< T1, 3 > &src, Array< T2, 3 > &dest)
hsize_t dims[RANK > 0 ? RANK :1]
shape of the dataspace, protected for zero size array, hdf5 support scalar as rank = 0 ...
bool read(data_type &ref, hid_t grp, const std::string &aname, hid_t xfer_plist=H5P_DEFAULT)
bool check_type(hid_t grp, const std::string &aname)
bool read(data_type &ref, hid_t grp, const std::string &aname, hid_t xfer_plist=H5P_DEFAULT)
free template functions wrapping HDF5 calls.
static auto get_address(T *a)
return the address
h5data_proxy(const data_type &a)
bool check_existence(hid_t grp, const std::string &aname)
static constexpr hsize_t rank
rank of the multidimensional dataspace
h5data_proxy(const data_type &a)
bool h5d_check_existence(hid_t grp, const std::string &aname)
bool h5d_read(hid_t grp, const std::string &aname, T *first, hid_t xfer_plist)
return true, if successful
bool h5d_write(hid_t grp, const std::string &aname, hsize_t ndims, const hsize_t *dims, const T *first, hid_t xfer_plist)
generic h5data_proxy<T> for scalar basic datatypes defined in hdf_dataspace.h Note if the dataset to ...