Skip to main content

attachTree

Short summary

This method attaches an binary balances search tree to the iterator.

Return: CNM_ReturnTypes.SingleExecutionResult.SUCCESS: the tree could be attached to the iterator CNM_ReturnTypes.SingleExecutionResult.ERROR: the passed tree was not valid

Parameters

NameTypeCommentKind
treeREFERENCE TO BalancedBinarySearchTree-input

Code

Declaration

METHOD attachTree
VAR_INPUT
tree : REFERENCE TO BalancedBinarySearchTree;
END_VAR

Implementation

THIS^.tree REF= tree;
THIS^.reset();