Skip to main content

DoublyLinkedElement

Short summary​

Implementation of IDoublyLinkElement. Does not allow NULL as object.

AccessAbstractFinalExtendsImplements
INTERNALNoNoAbstractDisposableContainerCNM_CollectionInterfaces.IDoublyLinkedElement

UML Diagram​

Parameters

none

Properties​

className​

Type: CNM_AbstractObject.ClassName

This abstract property returns the class name of the concrete object, …

next​

Type: CNM_CollectionInterfaces.IDoublyLinkedElement

This property returns the next element that is linked to this element. Next element previous should be this object.…

object​

Type: CNM_CollectionInterfaces.CNM_AbstractObject.IObject

This property returns CNM_AbstractObject.IObject that represents the data of this element.…

previous​

Type: CNM_CollectionInterfaces.IDoublyLinkedElement

This property returns the previous element that is linked to this element. Previous element next should be this object.…

Methods​

clearContents​

  • Return type: VOID

This method is called in the destruct method and is intended to zero all references and interfaces that should not be destructed. …

destructContents​

  • Return type: VOID

This method is called in the deepDestruct method and is intended to destruct all contained Objects of the collection. …

FB_Exit​

  • Parameters:
    • bInCopyCode (BOOL): TRUE: the exit method is called in order to leave the instance which will be copied afterwards (online change).
  • Return type: BOOL

Mark the object as deleted, as it staiys in the memory.…

FB_init​

The constructor FB_init is needed to create an unique hash code.…

Code​

Declaration​

{attribute 'hide'}
{attribute 'enable_dynamic_creation'}
FUNCTION_BLOCK INTERNAL DoublyLinkedElement EXTENDS AbstractDisposableContainer IMPLEMENTS CNM_CollectionInterfaces.IDoublyLinkedElement
VAR
nextElement :CNM_CollectionInterfaces.IDoublyLinkedElement;
previousElement :CNM_CollectionInterfaces.IDoublyLinkedElement;
dataObject :CNM_AbstractObject.IObject;
END_VAR