TAVLTree及其相关应用
1.TAVLTree
TAVLTree maintains a balanced AVL tree. The tree consists of TAVLTreeNode nodes, each of which has a Data pointer associated with it. The TAVLTree component offers methods to balance and search the tree.
|
AVL tree component |
|
| | ||
TObject |
2.TAVLTreeNode
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.
|
Represents a node in the tree. |
|
| | ||
TObject |
TAVLTreeNodeEnumerator is a class which implements the enumerator interface for the TAVLTree. It enumerates all the nodes in the tree.
|
Enumerator for the TAVLTree tree nodes |
|
| | ||
TObject |