93 ::std::shared_ptr<hid_t>
_h;
98 ::std::shared_ptr<hid_t>
getShared()
const;
107 HH_hid_t(::std::shared_ptr<hid_t> h);
108 HH_hid_t(hid_t val,
const std::function<
void(hid_t*)>& closer =
nullptr);
117 return std::shared_ptr<hid_t>(
new hid_t(newh));
124 htri_t res = H5Iis_valid(h);
137 static inline void Close(hid_t h) { herr_t err = H5Aclose(h); }
139 if (*h >= 0) H5Aclose(*h);
144 static inline void Close(hid_t h) { herr_t err = H5Fclose(h); }
146 if (*h >= 0) H5Fclose(*h);
151 static inline void Close(hid_t h) { herr_t err = H5Dclose(h); }
153 if (*h >= 0) H5Dclose(*h);
158 static inline void Close(hid_t h) { herr_t err = H5Sclose(h); }
160 if (*h >= 0) H5Sclose(*h);
165 static inline void Close(hid_t h) { herr_t err = H5Tclose(h); }
167 if (*h >= 0) H5Tclose(*h);
172 static inline void Close(hid_t h) { herr_t err = H5Gclose(h); }
174 if (*h >= 0) H5Gclose(*h);
179 static inline void Close(hid_t h) { herr_t err = H5Pclose(h); }
181 if (*h >= 0) H5Pclose(*h);
186 static inline void Close(hid_t) {
return; }
187 static inline void CloseP(hid_t* h) {
delete h; }
191 using Handles::HH_hid_t;
A class to wrap HDF5's hid_t resource handles.
::std::shared_ptr< hid_t > getShared() const
::std::shared_ptr< hid_t > _h
Handle_Types
Describes what a handle points to.
std::shared_ptr< hid_t > createStatic(hid_t newh)
Encapsulate a static hid object in a shared pointer.
static void Close(hid_t h)
static void CloseP(hid_t *h)
static void CloseP(hid_t *h)
static void Close(hid_t h)
static void CloseP(hid_t *h)
static void Close(hid_t h)
static void Close(hid_t h)
static void CloseP(hid_t *h)
static void CloseP(hid_t *h)
static void Close(hid_t h)
static void Close(hid_t h)
static void CloseP(hid_t *h)
static void Close(hid_t h)
static void CloseP(hid_t *h)
static void CloseP(hid_t *h)
static bool isInvalid(hid_t h)
static bool isValid(hid_t h)