HashTable (FB)
FUNCTION_BLOCK FINAL HashTable EXTENDS FBF.InstanceBase IMPLEMENTS IMap2, IModCounter
HashTable of IElements
- InOut:
Scope
Name
Type
Comment
Input Const
paElementsPOINTER TO KeyValuePair
Array of key value pairs. This array represents the ‘hash table’. Size: udiMaxElements
paLinkedElementsPOINTER TO KeyValuePair
Array of key value pairs. This array is used to store key values pairs with collisions. Size: udiMaxElements
paIteratorElementsPOINTER TO IElement
Array of IElements for the Iterator. Size: udiMaxElements
udiMaxElementsUDINTMaximum size of paElements and paIteratorElements
Methods:
AddKeyValuePair
ContainsKey
CountKeys
ElementCompareTo
ElementEquals
ElementHashCode
GetElementByKey
Keys
RemoveAllElements
RemoveByKey
Values
Structure:
HashTable.AddKeyValuePair(METH)HashTable.ContainsKey(METH)HashTable.CountKeys(METH)HashTable.ElementCompareTo(METH)HashTable.ElementEquals(METH)HashTable.ElementHashCode(METH)HashTable.GetElementByKey(METH)HashTable.Keys(METH)HashTable.RemoveAllElements(METH)HashTable.RemoveByKey(METH)HashTable.Values(METH)