diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2005-02-26 13:05:41 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2005-02-26 13:05:41 (GMT) |
commit | 11a9d301774c2dc28e971eb726bcf931f15a759c (patch) | |
tree | bf9a8c2370adae146cb1a3e52a986117be39b584 /src/H5B2private.h | |
parent | 10df21a4017503cd6654c22ef97c24b6764d4641 (diff) | |
download | hdf5-11a9d301774c2dc28e971eb726bcf931f15a759c.zip hdf5-11a9d301774c2dc28e971eb726bcf931f15a759c.tar.gz hdf5-11a9d301774c2dc28e971eb726bcf931f15a759c.tar.bz2 |
[svn-r10094] Purpose:
New features & refactor
Description:
Add basic record removal (only handles level-0 B-trees currently)
Add query routine to check the number of records in a B-tree
Add debugging routine to check the address of the root node in the B-tree
Platforms tested:
FreeBSD 4.11 (sleipnir)
Solaris 2.9 (shanti)
Diffstat (limited to 'src/H5B2private.h')
-rw-r--r-- | src/H5B2private.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/H5B2private.h b/src/H5B2private.h index 0608599..358962e 100644 --- a/src/H5B2private.h +++ b/src/H5B2private.h @@ -70,8 +70,9 @@ typedef struct H5B2_class_t { H5B2_subid_t id; /*id as found in file*/ size_t nrec_size; /*size of native (memory) record*/ - /* Store record from application to B-tree 'native' form */ - herr_t (*store)(const void *udata, void *nrecord); /* Store record in native record table */ + /* Store & retrieve record from application to B-tree 'native' form */ + herr_t (*store)(void *nrecord, const void *udata); /* Store record in native record table */ + herr_t (*retrieve)(void *udata, const void *nrecord); /* Retrieve record in native record table */ /* Compare records, according to a key */ herr_t (*compare)(const void *rec1, const void *rec2); /* Compare two native records */ @@ -101,6 +102,10 @@ H5_DLL herr_t H5B2_find(H5F_t *f, hid_t dxpl_id, const H5B2_class_t *type, haddr_t addr, void *udata, H5B2_found_t op, void *op_data); H5_DLL herr_t H5B2_index(H5F_t *f, hid_t dxpl_id, const H5B2_class_t *type, haddr_t addr, hsize_t idx, H5B2_found_t op, void *op_data); +H5_DLL herr_t H5B2_remove(H5F_t *f, hid_t dxpl_id, const H5B2_class_t *type, + haddr_t addr, void *udata); +H5_DLL herr_t H5B2_get_nrec(H5F_t *f, hid_t dxpl_id, const H5B2_class_t *type, + haddr_t addr, hsize_t *nrec); #endif /* _H5B2private_H */ |