Class IdComponent provides wrappers of the C functions that operate on an HDF5 identifier. More...
#include <H5IdComponent.h>
Public Member Functions | |
| void | incRefCount (const hid_t obj_id) const |
| Increment reference counter for a given id. More... | |
| void | incRefCount () const |
| Increment reference counter for the id of this object. More... | |
| void | decRefCount (const hid_t obj_id) const |
| Decrement reference counter for a given id. More... | |
| void | decRefCount () const |
| Decrement reference counter for the id of this object. More... | |
| int | getCounter (const hid_t obj_id) const |
| Returns the reference counter for a given id. More... | |
| int | getCounter () const |
| Returns the reference counter for the id of this object. More... | |
| H5I_type_t | getHDFObjType () const |
| Returns the type of the object. It is an overloaded function of the above function. More... | |
| IdComponent & | operator= (const IdComponent &rhs) |
| Assignment operator. More... | |
| void | setId (const hid_t new_id) |
| Sets the identifier of this object to a new value. More... | |
| IdComponent (const hid_t h5_id) | |
| Creates an IdComponent object using the id of an existing object. More... | |
| virtual | ~IdComponent () |
| Noop destructor. More... | |
Static Public Member Functions | |
| static H5I_type_t | getHDFObjType (const hid_t obj_id) |
| Given an id, returns the type of the object. More... | |
In most cases, the C library handles these operations and an application rarely needs them.
| H5::IdComponent::IdComponent | ( | const hid_t | h5_id | ) |
| h5_id | - IN: Id of an existing object |
| H5::DataTypeIException |
|
virtual |
| void H5::IdComponent::decRefCount | ( | const hid_t | obj_id | ) | const |
| void H5::IdComponent::decRefCount | ( | ) | const |
| int H5::IdComponent::getCounter | ( | const hid_t | obj_id | ) | const |
| int H5::IdComponent::getCounter | ( | ) | const |
|
static |
H5I_FILE H5I_GROUP H5I_DATATYPE H5I_DATASPACE H5I_DATASET H5I_ATTR H5I_BADID, if no valid type can be determined or the input object id is invalid. | H5I_type_t H5::IdComponent::getHDFObjType | ( | ) | const |
H5I_FILE H5I_GROUP H5I_DATATYPE H5I_DATASPACE H5I_DATASET H5I_ATTR H5I_BADID, if no valid type can be determined or the input object id is invalid. | void H5::IdComponent::incRefCount | ( | const hid_t | obj_id | ) | const |
| void H5::IdComponent::incRefCount | ( | ) | const |
| IdComponent & H5::IdComponent::operator= | ( | const IdComponent & | rhs | ) |
| rhs | - IN: Reference to the existing object |
| H5::IdComponentException | when attempt to close the HDF5 object fails |
References H5::Exception::getDetailMsg(), and setId().
| void H5::IdComponent::setId | ( | const hid_t | new_id | ) |
| H5::IdComponentException | when the attempt to close the HDF5 object fails |
References incRefCount().
Referenced by operator=().
1.8.5