[Overview][Classes][Index] |
Find a data item in the tree using alternate compare mechanism
Source position: avl_tree.pp line 79
public function TAVLTree.FindKey( |
Key: Pointer; |
const OnCompareKeyWithData: TListSortCompare |
):TAVLTreeNode; |
Key |
|
Data item to search for. |
OnCompareKeyWithData |
|
Data pointer comparison callback |
Tree node corresponding to Key item.
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.
|
Compare function used when comparing nodes |
|
|
Find a data item in the tree. |