Add _get_at method for B+TREE
This commit is contained in:
1 parent
52e745f905
commit
3d7e9e7c03
3 files changed
+36
-5
No files matched your search
@@ -3110,12 +3110,19 @@ or NULL if there is no element in the B+Tree.
|
||||
Return a pointer to the maximum element of the tree
|
||||
or NULL if there is no element in the B+Tree.
|
||||
|
||||
##### value\_type * name\_get(const name\_t tree, const key\_type *data)
|
||||
##### const value\_type * name\_cget(const name\_t tree, const key\_type *data)
|
||||
##### value\_type * name\_get(const name\_t tree, const key\_type data)
|
||||
##### const value\_type * name\_cget(const name\_t tree, const key\_type data)
|
||||
|
||||
Return a pointer to the value of the tree 'tree' that is associated to 'data',
|
||||
or NULL if there is no match.
|
||||
|
||||
##### value\_type * name\_get\_at(name\_t tree, const key\_type data)
|
||||
|
||||
Return a pointer to the value of the tree 'tree' that is associated to 'data'.
|
||||
If the key doesn't exist yet in the tree, a new entry is created with 'key'
|
||||
and a value initialized with its INIT operator,
|
||||
then a pointer to the newly created entry is returned.
|
||||
|
||||
##### void name\_swap(name\_t tree1, name\_t tree2)
|
||||
|
||||
Swap both trees.
|
||||
|
||||
Reference in new issue
Block a user