Skip to main content

insert

Short summary

A method to insert a single element into the tree.

Return: SUCCESS: operation successful ABORTED: operation was aborted (implementation specific) ERROR: out of memory

Parameters

NameTypeCommentKind
objectCNM_CollectionInterfaces.CNM_AbstractObject.IObjectthe object that should be insertedinput

Code

Declaration

METHOD insert : CNM_CollectionInterfaces.CNM_ReturnTypes.SingleExecutionResult
VAR_INPUT
(*the object that should be inserted*)
object : CNM_CollectionInterfaces.CNM_AbstractObject.IObject;
END_VAR

Implementation

insert := THIS^.tree.insert(object := object);