14 if constexpr (std::is_same_v<index, int64_t>)
15 return H5T_NATIVE_INT64;
18 static_assert(std::is_same_v<index, int64_t>,
"index type not right");
19 return H5T_NATIVE_INT64;
26 if constexpr (std::is_same_v<rowsize, int32_t>)
27 return H5T_NATIVE_INT32;
30 static_assert(std::is_same_v<rowsize, int32_t>,
"rowsize type not right");
31 return H5T_NATIVE_INT32;
38 if constexpr (std::is_same_v<real, double>)
39 return H5T_NATIVE_DOUBLE;
42 static_assert(std::is_same_v<real, double>,
"real type not right");
43 return H5T_NATIVE_DOUBLE;
Core type aliases, constants, and metaprogramming utilities for the DNDS framework.
the host side operators are provided as implemented
hid_t DNDS_H5T_REAL()
HDF5 native datatype matching DNDS real (currently H5T_NATIVE_DOUBLE).
hid_t DNDS_H5T_ROWSIZE()
HDF5 native datatype matching DNDS rowsize (currently H5T_NATIVE_INT32).
hid_t DNDS_H5T_INDEX()
HDF5 native datatype matching DNDS index (currently H5T_NATIVE_INT64).