TAVLTree.FindKey¶
Find a data item in the tree using alternate compare mechanism.
Declaration¶
Source position: avl_tree.pp line 147
public
function TAVLTree.FindKey(Key: Pointer;
const OnCompareKeyWithData: TListSortCompare)
: TAVLTreeNode;
Description¶
FindKey uses the specified OnCompareKeyWithData comparing function to find the Key pointer in the tree It returns the TAVLTreeNode instance that matches the Data pointer, or Nil if none is found.