13 #ifndef QMCPLUSPLUS_HDF_PETE_TRAITS_H 14 #define QMCPLUSPLUS_HDF_PETE_TRAITS_H 37 inline bool read(
data_type& ref, hid_t grp,
const std::string& aname, hid_t xfer_plist = H5P_DEFAULT)
44 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)
72 inline bool write(
const data_type& ref, hid_t grp,
const std::string& aname, hid_t xfer_plist = H5P_DEFAULT)
const 79 template<
typename T,
unsigned D>
89 for (
int i = 0; i < D; ++i)
93 inline bool read(
data_type& ref, hid_t grp,
const std::string& aname, hid_t xfer_plist = H5P_DEFAULT)
97 std::array<size_t, D> dims_array;
104 inline bool write(
const data_type& ref, hid_t grp,
const std::string& aname, hid_t xfer_plist = H5P_DEFAULT)
const void resize(size_type n, Type_t val=Type_t())
Resize the container.
bool read(data_type &ref, hid_t grp, const std::string &aname, hid_t xfer_plist=H5P_DEFAULT)
default struct to define a h5 dataspace, any intrinsic type T
helper functions for EinsplineSetBuilder
h5data_proxy(const data_type &a)
void resize(size_type n, size_type m)
Resize the container.
void resize(const std::array< SIZET, D > &dims)
Resize the container.
void copy(const Array< T1, 3 > &src, Array< T2, 3 > &dest)
size_type size() const
return the current size
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)
h5data_proxy(const data_type &a)
static auto get_address(T *a)
return the address
Declaraton of Vector<T,Alloc> Manage memory through Alloc directly and allow referencing an existing ...
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
static constexpr hsize_t rank
rank of the multidimensional dataspace
bool read(data_type &ref, hid_t grp, const std::string &aname, hid_t xfer_plist=H5P_DEFAULT)
bool h5d_read(hid_t grp, const std::string &aname, T *first, hid_t xfer_plist)
return true, if successful
h5data_proxy(const data_type &a)
A D-dimensional Array class based on PETE.
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 ...
bool write(const data_type &ref, hid_t grp, const std::string &aname, hid_t xfer_plist=H5P_DEFAULT) const