Skip to main content

IResizingStrategy

Short summary​

This interface defines methods to calculate the new size of an array, depending on the new size of elements and the current size of the array or container. It has separate methods for up- and downscaling an array.

AccessAbstractFinalExtendsImplements
-NoNoCNM_AbstractObject.IObject-

UML Diagram​

Properties​

initialSize​

Type: UDINT

This property returns an inital size for an empty new array.…

Methods​

getDownscaledCapacity​

  • Parameters:
    • requestedSize (UDINT): the new size that is needed
    • currentCapacity (UDINT): the current actual size of the container
  • Return type: BOOL

The method takes the requested size and the current capacity as input and determines the next suitable capacity value based on the implemented resizing strategy.…

getUpscaledCapacity​

  • Parameters:
    • requestedSize (UDINT): the new size that is needed
    • currentCapacity (UDINT): the current actual size of the container
  • Return type: BOOL

The method takes the requested size and the current capacity as input and determines the next suitable capacity value based on the implemented resizing strategy.…

Code​

Declaration​

INTERFACE IResizingStrategy EXTENDS CNM_AbstractObject.IObject