Skip to main content

getNewDoublyLinkedElement

Short summary

Method to create new Instance of DoublyLinkedElements and automatically link with other ellements. This will affect/change the next and previouse elements !

Parameters

NameTypeCommentKind
objectCNM_AbstractObject.IObjectthe dataobject to be contained inside the elementinput
previousElementIDoublyLinkedElementthe previous element to link toinput
nextElementIDoublyLinkedElementthe next element to link toinput
linkElementsBOOLa flag if the link to next and previous should be createdinput
elementIDoublyLinkedElementthe created array linked list container elementoutput

Code

Declaration

METHOD getNewDoublyLinkedElement :CNM_ReturnTypes.SingleExecutionResult
VAR_INPUT
(*the dataobject to be contained inside the element*)
object :CNM_AbstractObject.IObject;
(*the previous element to link to*)
previousElement :IDoublyLinkedElement;
(*the next element to link to*)
nextElement :IDoublyLinkedElement;
(*a flag if the link to next and previous should be created*)
linkElements :BOOL := TRUE;
END_VAR
VAR_OUTPUT
(* the created array linked list container element *)
element :IDoublyLinkedElement;
END_VAR