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 !
- Return type: CNM_ReturnTypes.SingleExecutionResult
Parameters
| Name | Type | Comment | Kind |
|---|---|---|---|
| object | CNM_AbstractObject.IObject | the dataobject to be contained inside the element | input |
| previousElement | IDoublyLinkedElement | the previous element to link to | input |
| nextElement | IDoublyLinkedElement | the next element to link to | input |
| linkElements | BOOL | a flag if the link to next and previous should be created | input |
| element | IDoublyLinkedElement | the created array linked list container element | output |
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