Theoretica
Mathematical Library
Loading...
Searching...
No Matches
theoretica::io::hdf5_handle Class Reference

RAII wrapper for managing HDF5 C-style handles, allowing direct API usage. More...

#include <hdf5.h>

Public Member Functions

 hdf5_handle (hid_t id=H5I_INVALID_HID)
 Initialize the handle with a given HDF5 ID, for example obtained by opening a file or group, defaulting to an invalid handle .
 
 ~hdf5_handle ()
 Safely decrements reference count and closes the handle if valid.
 
 hdf5_handle (const hdf5_handle &)=delete
 Prevent copying.
 
 hdf5_handle (hdf5_handle &&other) noexcept
 Move constructor.
 
hdf5_handleoperator= (hdf5_handle &&other) noexcept
 Move assignment.
 
 operator hid_t () const
 Implicit conversion to hid_t.
 

Public Attributes

hid_t id
 Underlying ID obtained by opening a file or group.
 

Detailed Description

RAII wrapper for managing HDF5 C-style handles, allowing direct API usage.


The documentation for this class was generated from the following file: