TDictionary

A container for key/value pairs where both the key and value are TText values.

Inheritance

LevelAncestorDescription
1TObjectUltimate ancestor in a class hierarchy
2TDictionary

Source

Dictionary.pas (52)

Description

A TDictionary provides functions to retrieve values by key as various types by converting the text value to the requested type. A TDictionary can optionally store a TMemoryBlock associated with the key and value.

Fields

ScopeVisibilityTypeNameDescription
InstancepublicTList<TDictionaryEntry>Entries

Methods

ScopeVisibilityResultNameDescription
InstanceprivateTInteger32GetCount()
InstanceprivateTDictionaryEntryEntryWithKey(Key: TText)
InstancepublicCreate()
InstancepublicDestroy()
InstancepublicAdd(Key: TText; Value: TText)
InstancepublicAdd(Key: TText; Block: TMemoryBlock; Value: TText)
InstancepublicRemove(Key: TText)
InstancepublicTBooleanKeyExists(Key: TText)
InstancepublicTTextGetTextValue(Key: TText)
InstancepublicTTextGetTextValueWithDefault(Key: TText; Default: TText)
InstancepublicTInteger32GetInteger32Value(Key: TText)
InstancepublicTInteger32GetInteger32ValueWithDefault(Key: TText; Default: TInteger32)
InstancepublicTFloatingPoint64GetFloatingPoint64Value(Key: TText)
InstancepublicTBooleanGetBooleanValue(Key: TText)
InstancepublicTBooleanGetBooleanValueWithDefault(Key: TText; Default: TBoolean)
InstancepublicTRgbColorGetColorValue(Key: TText)
InstancepublicTRgbColorGetColorValueWithDefault(Key: TText; Default: TRgbColor)
InstancepublicTMemoryBlockGetBlock(Key: TText)