Handle Class Reference#
|
DiFfRG
|
DiFfRG::hdf5::Handle Class Reference
#include <handle.hh>
Public Member Functions | |
| Handle ()=default | |
| Handle (hid_t id) | |
| Handle (const Handle &o) | |
| Handle (Handle &&o) noexcept | |
| Handle & | operator= (const Handle &o) |
| Handle & | operator= (Handle &&o) noexcept |
| ~Handle () | |
| void | reset () noexcept |
| hid_t | get () const noexcept |
| bool | valid () const noexcept |
| hid_t | release () noexcept |
Static Public Member Functions | |
| static Handle | take (hid_t id) |
Private Attributes | |
| hid_t | id_ = H5I_INVALID_HID |
Detailed Description
RAII wrapper around an HDF5 hid_t. Uses H5I ref counting so it can hold any HDF5 identifier (file, group, dataset, datatype, dataspace, attribute, property list).
Constructor & Destructor Documentation
◆ Handle() [1/4]
|
default |
◆ Handle() [2/4]
|
inlineexplicit |
◆ Handle() [3/4]
|
inline |
◆ Handle() [4/4]
|
inlinenoexcept |
◆ ~Handle()
|
inline |
Member Function Documentation
◆ get()
|
inlinenoexcept |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ release()
|
inlinenoexcept |
◆ reset()
|
inlinenoexcept |
◆ take()
|
inlinestatic |
Take ownership of an id without bumping its refcount. Used when constructing from H5Fcreate/H5Dcreate2 etc. that already gave us a fresh reference.
◆ valid()
|
inlinenoexcept |
Member Data Documentation
◆ id_
|
private |
The documentation for this class was generated from the following file:
- /home/runner/work/DiFfRG_current/DiFfRG_current/DiFfRG/include/hdf5lib/handle.hh
Generated by