Skip to main content

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​

NameTypeCommentKind
collectionCNM_CollectionInterfaces.ICollectionThe collection that should be insertedinput

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);