TAVLTree.SetNodeManager procedure
Set the node instance manager to use.
Declaration
procedure SetNodeManager(NewMgr: TBaseAVLTreeNodeManager;
AutoFree: Boolean=False)Arguments
NewMgr | New node manager to use. |
AutoFree | Automatically free the node manager when the tree is destroyed. |
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
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
