insertCollection
Short summary
This method inserts all elements of a collection into the tree This takes only one cycle
Return: SingleExecutionResult.SUCCESS: operation successful
SingleExecutionResult.ERROR: out of memory
SingleExecutionResult.ABORTED: collection to insert wasn't valid
Parameters
| Name | Type | Comment | Kind |
|---|---|---|---|
| collection | CNM_CollectionInterfaces.ICollection | The collection that should be inserted | input |
Code
Declaration
METHOD insertCollection : CNM_CollectionInterfaces.CNM_ReturnTypes.SingleExecutionResult
VAR_INPUT
(*The collection that should be inserted*)
collection : CNM_CollectionInterfaces.ICollection;
END_VAR
Implementation
insertCollection := THIS^.tree.instantInsertCollection(collection := collection);