HashTable (FB)

FUNCTION_BLOCK FINAL HashTable EXTENDS ElementBase IMPLEMENTS IMap4, IModCounter, ILockable

HashTable of IElements

InOut:

Scope

Name

Type

Initial

Comment

Input Const

paElements

POINTER TO KeyValuePair

Array of key value pairs. This array represents the ‘hash table’. Size: udiMaxElements

paLinkedElements

POINTER TO KeyValuePair

Array of key value pairs. This array is used to store key values pairs with collisions. Size: udiMaxElements

paIteratorElements

POINTER TO IElement

Array of IElements for the Iterator. Size: udiMaxElements

udiMaxElements

UDINT

Maximum size of paElements and paIteratorElements

uiGrowFactor

UINT

1

uiPreAllocation

UINT

100

Properties:

Methods:

Structure: