Skip to content

TAVLTreeNodeMemManager

TAVLTreeNode Node memory manager.

Declaration

Source position: avl_tree.pp line 181

type

  TAVLTreeNodeMemManager = class(TBaseAVLTreeNodeManager)
  public
    procedure DisposeNode;
    function NewNode : TAVLTreeNode;
    property MinimumFreeNode: SizeInt; {rw}
    property MaximumFreeNodeRatio: SizeInt; {rw}
    property Count: SizeInt; {r}
    procedure Clear;
    constructor Create;
    destructor Destroy;
  end;

Description

TAVLTreeNodeMemManager is an internal object used by the avl_tree unit. Normally, no instance of this object should be created: An instance is created by the unit initialization code, and freed when the unit is finalized.

Properties

Member Visibility Description
Count read only public Number of nodes in the list.
MaximumFreeNodeRatio public Maximum amount of free nodes in the list.
MinimumFreeNode public Minimum amount of free nodes to be kept.
See all Properties

Methods

Member Visibility Description
Clear public Frees all unused nodes.
Create public Create a new instance of TAVLTreeNodeMemManager.
Destroy public
DisposeNode public Return a node to the free list.
NewNode public Create a new TAVLTreeNode instance.
See all Methods

See also

Name Description
TAVLTreeNode Represents a node in the tree.
TAVLTree AVL tree component.