Sign in Join
FPDoc Onlineexperiment

TAVLTree.Find function

Member of TAVLTreepublicIn unit AVL_Tree

Find a data item in the tree.

Declaration

pascal
function Find(Data: Pointer): TAVLTreeNode

Arguments

Data

Data item to search for.

Function result

Tree node corresponding to Data item.

Description

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.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.