Sign in Join
FPDoc Onlineexperiment

TAvgLvlTree class

In unit AvgLvlTree

TAvgLvlTree - an Average Level binary Tree.

Declaration

pascal
TAvgLvlTree = class(TAvlTree)

Inheritance

  1. TAvgLvlTree
  2. TAvlTree

Descends from it: TIndexedAVLTree

Description

TAvgLvlTree is an Average Level binary Tree. This binary tree is always balanced, so that inserting, deleting and finding a node is performed in O(log(#Nodes))

Properties

OwnsObjectspublic

Methods

CreateObjectComparepublicCreate an instance of the tree with extended compare method.
DisposeNodepublicDispose of a node outside of the tree.
FreeAndDeletepublicDelete a node from the tree and destroy it.

Events

OnObjectComparepublicSame as OnCompare, but with a method instead of a procedure.

Inherited

From TAvlTree (55)

Add AddAscendingSequence Assign BalanceAfterDelete BalanceAfterInsert Clear Compare ConsistencyCheck Count Create Delete DeletingNode Destroy Equals Find FindHighest FindInsertPos FindKey FindLeftMost FindLeftMostKey FindLeftMostSameKey FindLowest FindNearest FindNearestKey FindPointer FindPrecessor FindRightMost FindRightMostKey FindRightMostSameKey FindSuccessor FreeAndClear GetEnumerator GetEnumeratorHighToLow Init IsEqual MoveDataLeftMost MoveDataRightMost NewNode NodeAdded NodeClass NodeToReportStr OnCompare Remove RemovePointer ReportAsString Root RotateLeft RotateRight SetCompares SetNodeClass SetNodeManager SetOnCompare SetOnObjectCompare SwitchPositionWithSuccessor WriteReportToStream

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