Unit 'AVL_Tree' Package
[Overview][Types][Classes][Variables][Index] [#fcl]

TAVLTree.Assign

Assign another tree.

Declaration

Source position: avl_tree.pp line 140

public procedure TAVLTree.Assign(

  aTree: TAVLTree

); virtual;

Arguments

aTree

  

Tree to copy data from.

Description

Assign copies all data from aTree to the current tree if they are not equal. The current tree is cleared first. Note that the compare function(s) and class node are not copied, only the data.

Errors

If you pass nil, an exception is raised.

See also

TAVLTree.IsEqual

  

Check whether 2 tree instances are equal.


Documentation generated on: Nov 22 2024