Determines whether a datatype contains any datatypes of the given datatype class
Procedure:
H5T_DETECT_CLASS(dtype_id, dtype_class)
Signature:
htri_t H5Tdetect_class( hid_t dtype_id, H5T_class_t dtype_class )
Parameters:
hid_t dtype_id | IN: Datatype identifier |
H5T_class_t dtype_class | IN: Datatype class |
Description:
H5T_DETECT_CLASS determines whether the datatype specified in dtype_id
contains any datatypes of the datatype class specified in dtype_class
.
This function is useful primarily in recursively examining all the fields and/or base types of compound, array, and variable-length datatypes.
Valid class identifiers are as defined in H5T_GET_CLASS .
Returns:
Returns a positive value if the datatype being examined by this function contains any datatypes that belong to the specified datatype class.
Returns 0 if the datatype being examined by this function does not contain any datatypes that belong to the specified datatype class.
Returns a negative value when the function fails.
Example:
History:
Release | Change |
---|
1.6.0 | Function introduced in this release. |
--- Last Modified: July 22, 2020 | 03:58 PM