[Overview][Types][Classes][Variables][Index] |
Find nearest key for a data pointer
Source position: avl_tree.pp line 141
public function TAVLTree.FindNearestKey( |
Key: Pointer; |
const OnCompareKeyWithData: TListSortCompare |
):TAVLTreeNode; |
Key |
|
Key to search with |
OnCompareKeyWithData |
|
Compare function |
The nearest possible key, if any
FindNearestKey attempts to find the nearest possible key in the tree using the OnCompareKeyWithData function. It returns the closest possible key in the tree.
None.
|
Find a data item in the tree using alternate compare mechanism |