[Overview][Classes][Index] |
Find a data item in the tree.
Source position: avl_tree.pp line 78
public function TAVLTree.Find( |
Data: Pointer |
):TAVLTreeNode; |
Data |
|
Data item to search for. |
Tree node corresponding to Data item.
Find uses the default OnCompare comparing function to find the Data pointer in the tree. It returns the TAVLTreeNode instance that results in a successful compare with the Data pointer, or Nil if none is found.
The default OnCompare function compares the actual pointers, which means that by default Find will give the same result as FindPointer.
|
Compare function used when comparing nodes |
|
|
Find a data item in the tree using alternate compare mechanism |