TAVLTree.FindNearestKey¶
Find nearest key for a data pointer.
Declaration¶
Source position: avl_tree.pp line 149
public
function TAVLTree.FindNearestKey(Key: Pointer;
const OnCompareKeyWithData: TListSortCompare)
: TAVLTreeNode;
Description¶
FindNearestKey attempts to find the nearest possible key in the tree using the OnCompareKeyWithData function. It returns the closest possible key in the tree.
Errors¶
None.
See also¶
| Name | Description |
|---|---|
| TAVLTree.FindKey | Find a data item in the tree using alternate compare mechanism. |