Typedefs | |
| typedef int(* | BTreeTestFunc )(void *, void *, void *) |
| typedef int(* | BTreeDumpFunc )(void *data, INT32 *tagnum, void *username) |
Functions | |
| GEOMLIBEXPORT void * | BTreeAlloc (int numitems, int datasize, BTreeTestFunc testfunc, void *userdata) |
| GEOMLIBEXPORT int | BTreeClear (void *item) |
| GEOMLIBEXPORT int | BTreeDump (void *tree, BTreeDumpFunc, void *userdata) |
| GEOMLIBEXPORT int | BTreeDumpT (void *tree, BTreeDumpFunc, void *userdata) |
| GEOMLIBEXPORT INT32 | BTreeFindKey (void *tree, void *data, INT32 tagnum, int *add) |
| GEOMLIBEXPORT int | BTreeFree (void *tree) |
| GEOMLIBEXPORT int | BTreeNewFunc (void *tree, BTreeTestFunc, void *userdata) |
| GEOMLIBEXPORT INT32 | BTreeSearchKey (void *tree, void *data) |
| GEOMLIBEXPORT void | BTreeSetTestFunc (void *btree, BTreeTestFunc Test, void *userdata, bool TestFuncIsConst) |
|
|
Callback used to return data.
Definition at line 76 of file btreefun.h. |
|
|
Tree comparison function used in searching/adding.
Definition at line 69 of file btreefun.h. |
|
||||||||||||||||||||
|
Allocate a "balanced tree".
|
|
|
Clears item from "balanced tree".
|
|
||||||||||||||||
|
Dump a "balanced tree" in "random" order. NOTE: This function transverses the tree as it is stored, no order is at all guaranteed!
|
|
||||||||||||||||
|
Dump a "balanced tree" in "traversal" order. NOTE: This function transverses the tree and dumps the data in the order that the comparison function (see BTreeAlloc()) stipulated.
|
|
||||||||||||||||||||
|
Search "balanced tree" for a specified key, add if no match found.
|
|
|
Free a "balanced tree".
|
|
||||||||||||||||
|
Change test function for a "balanced tree".
|
|
||||||||||||
|
Search "balanced tree" for a specified key.
|
|
||||||||||||||||||||
|
Change test function for a "balanced tree". This is similar to BTreeNewFunc, but allows you to tell the BTree that the function won't modify the data it's passed. The default behaviour for btrees is to assume that the test function can modify the data passed. |
1.3.4-20031026