TAVLTree.SetNodeManager¶
Set the node instance manager to use.
Declaration¶
Source position: avl_tree.pp line 120
public
procedure TAVLTree.SetNodeManager(NewMgr: TBaseAVLTreeNodeManager;
AutoFree: Boolean=False);
Description¶
SetNodeManager sets the node manager instance used by the tree to newmgr. It should be called before any nodes are added to the tree. The TAVLTree instance will not destroy the nodemanager, thus the same instance of the tree node manager can be used to manager the nodes of multiple TAVLTree instances.
By default, a single instance of TAVLTreeNodeMemManager is used to manage the nodes of all TAVLTree instances.
See also¶
| Name | Description |
|---|---|
| TBaseAVLTreeNodeManager | Base class for a node memory manager. |
| TAVLTreeNodeMemManager | TAVLTreeNode Node memory manager. |