ddn.lib.hdf5.h5m

HDF5 Map Operations Binding

This module provides D bindings for HDF5 map operations (H5M API). The Map API provides key-value store functionality within HDF5 files, allowing storage and retrieval of data using arbitrary keys.

Note

The H5M API requires HDF5 1.12.0 or later and is only available

when HDF5 is built with the VOL (Virtual Object Layer) connector that supports map operations.

License

BSD-3-Clause

Types 1

aliasH5M_iterate_t = herr_t function( hid_t map_id, const(void) * key, void * op_data ) @nogc nothrow

Callback function type for map iteration.

This function type is used with H5Miterate and H5Miterate_by_name to process each key-value pair in a map.

Parameters

map_idIdentifier of the map being iterated
keyPointer to the current key
op_dataUser-defined data passed to the iteration function

Returns

Zero to continue iteration, positive to stop iteration early,

or negative to indicate an error.

Functions 20

fnhid_t H5Mcreate( hid_t loc_id, const(char) * name, hid_t key_type_id, hid_t val_type_id, hid_t lcpl_id, hid_t mcpl_id, hid_t mapl_id )Creates a new map object.
fnhid_t H5Mcreate_async( hid_t loc_id, const(char) * name, hid_t key_type_id, hid_t val_type_id, hid_t lcpl_id, hid_t mcpl_id, hid_t mapl_id, hid_t es_id )Creates a new map object asynchronously.
fnhid_t H5Mcreate_anon( hid_t loc_id, hid_t key_type_id, hid_t val_type_id, hid_t mcpl_id, hid_t mapl_id )Creates an anonymous map object.
fnhid_t H5Mopen(hid_t loc_id, const(char) * name, hid_t mapl_id)Opens an existing map object.
fnhid_t H5Mopen_async(hid_t loc_id, const(char) * name, hid_t mapl_id, hid_t es_id)Opens an existing map object asynchronously.
fnherr_t H5Mclose(hid_t map_id)Closes a map object.
fnherr_t H5Mclose_async(hid_t map_id, hid_t es_id)Closes a map object asynchronously.
fnhid_t H5Mget_key_type(hid_t map_id)Gets the key datatype of a map.
fnhid_t H5Mget_val_type(hid_t map_id)Gets the value datatype of a map.
fnhid_t H5Mget_create_plist(hid_t map_id)Gets the creation property list of a map.
fnhid_t H5Mget_access_plist(hid_t map_id)Gets the access property list of a map.
fnherr_t H5Mget_count(hid_t map_id, hsize_t * count, hid_t mapl_id)Gets the number of key-value pairs in a map.
fnherr_t H5Mput( hid_t map_id, hid_t key_mem_type_id, const(void) * key, hid_t val_mem_type_id, const(void) * value, hid_t mapl_id )Adds or updates a key-value pair in a map.
fnherr_t H5Mput_async( hid_t map_id, hid_t key_mem_type_id, const(void) * key, hid_t val_mem_type_id, const(void) * value, hid_t mapl_id, hid_t es_id )Adds or updates a key-value pair in a map asynchronously.
fnherr_t H5Mget( hid_t map_id, hid_t key_mem_type_id, const(void) * key, hid_t val_mem_type_id, void * value, hid_t mapl_id )Retrieves a value from a map by key.
fnherr_t H5Mget_async( hid_t map_id, hid_t key_mem_type_id, const(void) * key, hid_t val_mem_type_id, void * value, hid_t mapl_id, hid_t es_id )Retrieves a value from a map by key asynchronously.
fnherr_t H5Mexists( hid_t map_id, hid_t key_mem_type_id, const(void) * key, hbool_t * exists, hid_t mapl_id )Checks if a key exists in a map.
fnherr_t H5Miterate( hid_t map_id, hsize_t * idx, hid_t key_mem_type_id, H5M_iterate_t op, void * op_data, hid_t mapl_id )Iterates over all key-value pairs in a map.
fnherr_t H5Miterate_by_name( hid_t loc_id, const(char) * map_name, hsize_t * idx, hid_t key_mem_type_id, H5M_iterate_t op, void * op_data, hid_t mapl_id )Iterates over all key-value pairs in a map specified by name.
fnherr_t H5Mdelete( hid_t map_id, hid_t key_mem_type_id, const(void) * key, hid_t mapl_id )Deletes a key-value pair from a map.