7inline int h5i_inc_ref(hid_t
id) {
8 auto count = H5Iinc_ref(
id);
11 throw ObjectException(
"Failed to increase reference count of HID");
19inline int h5i_dec_ref(hid_t
id) {
20 return H5Idec_ref(
id);
25inline int h5i_dec_ref(hid_t
id) {
26 int count = H5Idec_ref(
id);
28 throw ObjectException(
"Failed to decrease reference count of HID");
35inline htri_t h5i_is_valid(hid_t
id) {
36 return H5Iis_valid(
id);
41inline htri_t h5i_is_valid(hid_t
id) {
42 htri_t tri = H5Iis_valid(
id);
44 throw ObjectException(
"Failed to check if HID is valid");
50inline H5I_type_t h5i_get_type(hid_t
id) {
51 H5I_type_t type = H5Iget_type(
id);
52 if (type == H5I_BADID) {
59template <
class Exception>
60inline hid_t h5i_get_file_id(hid_t
id) {
61 hid_t file_id = H5Iget_file_id(
id);
69inline ssize_t h5i_get_name(hid_t
id,
char* name,
size_t size) {
70 ssize_t n_chars = H5Iget_name(
id, name, size);
Definition H5_definitions.hpp:22
static void ToException(const std::string &prefix_msg)
Definition H5Exception_misc.hpp:43