Skip to main content

ForwardArrayListIterator

Short summary​

This class can be used as a simple iterator for array lists. It iterates from first element to last element.

AccessAbstractFinalExtendsImplements
-NoNoAbstractArrayListIterator-

UML Diagram​

Properties​

className​

Type: CNM_AbstractObject.ClassName

…

Methods​

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)
    • arrayList (REFERENCE TO ArrayList): the array list which should be iterated, can be 0
  • Return type: BOOL

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

Code​

Declaration​

{attribute 'enable_dynamic_creation'}
FUNCTION_BLOCK ForwardArrayListIterator EXTENDS AbstractArrayListIterator