Sign in Join
FPDoc Onlineexperiment

TAVLTreeNode class

In unit AVL_Tree

Represents a node in the tree.

Declaration

pascal
TAVLTreeNode = class

Descends from it: TIndexedAVLTreeNode

Description

TAVLTreeNode represents a single node in the AVL tree. It contains references to the other nodes in the tree, and provides a Data pointer which can be used to store the data, associated with the node.

See also

Methods

SuccessorpublicSucceeding node in the tree.
PrecessorpublicPreceding node in the tree.
ClearpublicClears the node's data.
TreeDepthpublicLevel of the node in the tree below.
ConsistencyCheckpublicCheck consistency of the node and below nodes.
GetCountpublicGet the number of nodes.

Fields

ParentpublicReference to the parent node in the tree.
LeftpublicReference to the left subtree of the current node.
RightpublicReference to the right subtree of the current node.
BalancepublicBalance of the current node.
DatapublicThe data item associated with this node.

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