![]() |
HDF5 Last Updated on 2025-12-13
The HDF5 Field Guide
|
#include <c++/src/H5IdComponent.h>
Class IdComponent provides wrappers of the C functions that operate on an HDF5 identifier.
In most cases, the C library handles these operations and an application rarely needs them.
Inheritance diagram for IdComponent:Public Member Functions | |
| virtual void | close ()=0 |
| void | decRefCount () const |
| Decrement reference counter for the id of this object. | |
| void | decRefCount (const hid_t obj_id) const |
| Decrement reference counter for a given id. | |
| virtual std::string | fromClass () const |
| Returns this class name. | |
| int | getCounter () const |
| Returns the reference counter for the id of this object. | |
| int | getCounter (const hid_t obj_id) const |
| Returns the reference counter for a given id. | |
| H5I_type_t | getHDFObjType () const |
| Returns the type of the object. It is an overloaded function of the above function. | |
| virtual hid_t | getId () const =0 |
| void | incRefCount () const |
| Increment reference counter for the id of this object. | |
| void | incRefCount (const hid_t obj_id) const |
| Increment reference counter for a given id. | |
| std::string | inMemFunc (const char *func_name) const |
| Makes and returns string "<class-name>::<func_name>". | |
| IdComponent & | operator= (const IdComponent &rhs) |
| Assignment operator. | |
| void | setId (const hid_t new_id) |
| Sets the identifier of this object to a new value. | |
| virtual | ~IdComponent ()=default |
Static Public Member Functions | |
| static H5I_type_t | getHDFObjType (const hid_t obj_id) |
| Given an id, returns the type of the object. | |
| static hsize_t | getNumMembers (H5I_type_t type) |
| Returns the number of members of the given type. | |
| static bool | isValid (hid_t an_id) |
| Checks if the given ID is valid. | |
| static bool | typeExists (H5I_type_t type) |
| Queries if a given type is currently registered with the library. | |
Protected Member Functions | |
| IdComponent () | |
| Default constructor. | |
| std::string | p_get_file_name () const |
| virtual void | p_setId (const hid_t new_id)=0 |
Static Protected Member Functions | |
| static bool | p_valid_id (const hid_t obj_id) |
Static Protected Attributes | |
| static bool | H5dontAtexit_called = false |
|
virtualdefault |
|
protected |
Default constructor.
|
pure virtual |
| void decRefCount | ( | ) | const |
Decrement reference counter for the id of this object.
| void decRefCount | ( | const hid_t | obj_id | ) | const |
Decrement reference counter for a given id.
|
virtual |
Returns this class name.
Reimplemented in ArrayType, AtomType, Attribute, CompType, DataSet, DataSpace, DataType, DSetAccPropList, DSetCreatPropList, DSetMemXferPropList, EnumType, FileAccPropList, FileCreatPropList, FloatType, Group, H5File, IntType, LinkAccPropList, LinkCreatPropList, ObjCreatPropList, PredType, PropList, StrType, and VarLenType.
| int getCounter | ( | ) | const |
Returns the reference counter for the id of this object.
| int getCounter | ( | const hid_t | obj_id | ) | const |
Returns the reference counter for a given id.
| H5I_type_t getHDFObjType | ( | ) | const |
Returns the type of the object. It is an overloaded function of the above function.
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.
|
static |
Given an id, returns the type of the object.
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.
|
pure virtual |
|
static |
Returns the number of members of the given type.
H5I_FILE (= 1) H5I_GROUP H5I_DATATYPE H5I_DATASPACE H5I_DATASET H5I_ATTR H5I_VFL H5I_VOL H5I_GENPROP_CLS H5I_GENPROP_LST H5I_ERROR_CLASS H5I_ERROR_MSG H5I_ERROR_STACK | void incRefCount | ( | ) | const |
Increment reference counter for the id of this object.
| void incRefCount | ( | const hid_t | obj_id | ) | const |
Increment reference counter for a given id.
| std::string inMemFunc | ( | const char * | func_name | ) | const |
Makes and returns string "<class-name>::<func_name>".
| func_name | - Name of the function where failure occurs Concatenates the class name of this object with the passed-in function name to create a string that indicates where the failure occurs. The class-name is provided by fromClass(). This string will be used by a base class when an exception is thrown. |
|
static |
Checks if the given ID is valid.
| IdComponent & operator= | ( | const IdComponent & | rhs | ) |
Assignment operator.
| rhs | - IN: Reference to the existing object |
| H5::IdComponentException | when attempt to close the HDF5 object fails |
|
protected |
|
protectedpure virtual |
|
staticprotected |
| void setId | ( | const hid_t | new_id | ) |
Sets the identifier of this object to a new value.
| new_id | - IN: New identifier to be set to |
| H5::IdComponentException | when the attempt to close the HDF5 object fails |
|
static |
Queries if a given type is currently registered with the library.
H5I_FILE (= 1) H5I_GROUP H5I_DATATYPE H5I_DATASPACE H5I_DATASET H5I_ATTR H5I_VFL H5I_VOL H5I_GENPROP_CLS H5I_GENPROP_LST H5I_ERROR_CLASS H5I_ERROR_MSG H5I_ERROR_STACK
|
staticprotected |