Skip to main content

getNextTreeNode

Short summary

Gets the next node that iterate should process.

Return: TRUE a valid node existed, FALSE no node for iteration existed

  • Return type: BOOL

Parameters

NameTypeCommentKind
nodeCNM_CollectionInterfaces.IBinaryTreeNode-output

Code

Declaration

METHOD PROTECTED getNextTreeNode :BOOL
VAR_OUTPUT
node :CNM_CollectionInterfaces.IBinaryTreeNode;
END_VAR
VAR
tmpObject :CNM_AbstractObject.IObject;
END_VAR

Implementation

tmpObject := THIS^.nodeList.pop();
__QUERYINTERFACE(tmpObject, node);
getNextTreeNode := THIS^.isObjectValid(node);