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
| Name | Type | Comment | Kind |
|---|---|---|---|
| node | CNM_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.dequeue();
__QUERYINTERFACE(tmpObject, node);
getNextTreeNode := THIS^.isObjectValid(node);