Skip to content

TAVLTreeNodeEnumerator

Enumerator for the TAVLTree tree nodes.

Declaration

Source position: avl_tree.pp line 76

type

  TAVLTreeNodeEnumerator = class
  public
    constructor Create;
    function GetEnumerator : TAVLTreeNodeEnumerator;
    function MoveNext : Boolean;
    property Current: TAVLTreeNode; {r}
    property LowToHigh: Boolean; {r}
  end;

Description

TAVLTreeNodeEnumerator is a class which implements the enumerator interface for the TAVLTree. It enumerates all the nodes in the tree.

Properties

Member Visibility Description
Current read only public Current node in the tree.
LowToHigh read only public Should the enumerator return nodes from low to high or high to low.

Methods

Member Visibility Description
Create public Create a new instance of TAVLTreeNodeEnumerator.
GetEnumerator public Returns the enumerator.
MoveNext public Move to next node in the tree.

See also

Name Description
TAVLTree AVL tree component.