SharedPointerFactoryBase (FB)ΒΆ

FUNCTION_BLOCK PUBLIC SharedPointerFactoryBase EXTENDS FBF.FactoryBase

This is a base implementation of a factory for SharedPointer instances.

Please extend this function block and implement the prvInstPoolAdr property for realizing a factory based on static memory.

The default implementation results in a heap memory based factory with a initial capacity of 5 (prvInstCount := 5).
Overwriting prvInstCount provides the possibility to control the initial capacity of the pool.
Implementing prvInstPoolExtendsFactor provides the possibility to control the dynmic extension of the pool.
prvInstPoolExtendsFactor = 0 => No possibility for extending the pool.
prvInstPoolExtendsFactor > 0 => Extendion of the pool will be possible.
A value of e.g. prvInstPoolExtendsFactor := 50 always expands the pool by 50% of its original size.

Properties:

Methods:

Structure: