DoublyLinkedElement
Short summary
Implementation of IDoublyLinkElement. Does not allow NULL as object.
| Access | Abstract | Final | Extends | Implements |
|---|---|---|---|---|
| INTERNAL | No | No | AbstractDisposableContainer | CNM_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
- Parameters:
bInitRetains(BOOL): if TRUE, the retain variables are initialized (warm start / cold start)bInCopyCode(BOOL): if TRUE, the instance afterwards gets moved into the copy code (online change)content(CNM_AbstractObject.IObject)next(CNM_CollectionInterfaces.IDoublyLinkedElement)previous(CNM_CollectionInterfaces.IDoublyLinkedElement)
- Return type:
BOOL
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