Iterates through links in a group
Procedure:
H5L_ITERATE_BY_NAME2 ( loc_id, group_name, idx_type, order, idx_p, op, op_data, lapl_id )
Signature:
herr_t H5Literate_by_name2 ( hid_t loc_id, const char *group_name, H5_index_t idx_type, H5_iter_order_t order,
hsize_t *idx_p, H5L_iterate2_t op, void *op_data, hid_t lapl_id )
Fortran2003:
SUBROUTINE h5literate_by_name_f(loc_id, group_name, index_type, &
order, idx, op, op_data, return_value, hdferr, lapl_id)
INTEGER(HID_T), INTENT(IN) :: loc_id
CHARACTER(LEN=*) :: group_name
INTEGER, INTENT(IN) :: index_type
INTEGER, INTENT(IN) :: order
INTEGER(HSIZE_T), INTENT(INOUT) :: idx
TYPE(C_FUNPTR):: op
TYPE(C_PTR) :: op_data
INTEGER, INTENT(OUT) :: return_value
INTEGER, INTENT(OUT) :: hdferr
INTEGER(HID_T), OPTIONAL, INTENT(IN) :: lapl_id
Parameters:
hid_t loc_id | IN: Location identifier of subject group; may be a file, group, dataset, named datatype or attribute identifier |
const char *group_name | IN: Name of subject group |
H5_index_t idx_type | IN: Type of index which determines the order |
H5_iter_order_t order | IN: Order within index |
hsize_t *idx_p | IN: Iteration position at which to start OUT: Position at which an interrupted iteration may be restarted |
H5L_iterate2_t op | IN: Callback function passing data regarding the link to the calling application |
void *op_data | IN: User-defined pointer to data required by the application for its processing of the link |
hid_t lapl_id | IN: Link access property list |
Description:
H5L_ITERATE_BY_NAME2 iterates through the links in a group, specified by loc_id
and group_name
, in the order of the specified index, idx_type
, using a user-defined callback routine op
. H5L_ITERATE_BY_NAME2 does not recursively follow links into subgroups of the specified group.
idx_type
specifies the index to be used. If the links have not been indexed by the index type, they will first be sorted by that index then the iteration will begin; if the links have been so indexed, the sorting step will be unnecessary, so the iteration may begin more quickly. Valid values include the following:
H5_INDEX_NAME | Alpha-numeric index on name |
H5_INDEX_CRT_ORDER | Index on creation order |
order
specifies the order in which objects are to be inspected along the index specified in idx_type
. Valid values include the following:
H5_ITER_INC | Increasing order |
H5_ITER_DEC | Decreasing order |
H5_ITER_NATIVE | Fastest available order |
idx_p
allows an interrupted iteration to be resumed; it is passed in by the application with a starting point and returned by the library with the point at which the iteration stopped.
H5L_ITERATE_BY_NAME2 is not recursive. In particular, if a member of group_name
is found to be a group, call it subgroup_a
, H5L_ITERATE_BY_NAME2 does not examine the members of subgroup_a
. When recursive iteration is required, the application must handle the recursion, explicitly calling H5L_ITERATE_BY_NAME2 on discovered subgroups.
H5L_ITERATE_BY_NAME2 assumes that the membership of the group being iterated over remains unchanged through the iteration; if any of the links in the group change during the iteration, the function’s behavior is undefined. Note, however, that objects pointed to by the links can be modified.
H5L_ITERATE_BY_NAME2 is the same as H5L_ITERATE2, except that H5L_ITERATE2 always proceeds in alphanumeric order.
Returns:
On success, returns the return value of the first operator that returns a positive value, or zero if all members were processed with no operator returning non-zero.
On failure, returns a negative value if something goes wrong within the library, or the first negative value returned by an operator.
Example:
Include Bitbucket Server for Confluence: An error occured
Connection to Bitbucket Server could not be established. Verify that you have properly configured the Bitbucket Server application link for your Confluence space and that your Bitbucket Server instance is up and running. Error details: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
History:
Release | Change |
---|
1.12.0 | Function was introduced in this release. |
--- Last Modified: February 17, 2020 | 09:08 AM