Check whether 2 tree instances are equal.
Source position: avl_tree.pp line 139
public function TAVLTree.IsEqual( |
aTree: TAVLTree; |
CheckDataPointer: Boolean |
):Boolean; |
aTree |
|
Tree to compare with. |
CheckDataPointer |
|
Should the data pointer be checked instead of the key ? |
True if both trees are equal.
IsEqual checks the current tree with aTree and checks whether the two trees contain the same data in the same order and whether they use the same compare methods, and node class. If CheckDataPointer is True, only the data pointers are compared, not the keys.
None.
|
Check if two trees are equal. |