TDictionary
A container for key/value pairs where both the key and value are
TText
values.Inheritance
Level | Ancestor | Description |
---|---|---|
1 | TObject | Ultimate ancestor in a class hierarchy |
2 | TDictionary |
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
Scope | Visibility | Type | Name | Description |
---|---|---|---|---|
Instance | public | TList<TDictionaryEntry> | Entries |
Methods
Scope | Visibility | Result | Name | Description |
---|---|---|---|---|
Instance | private | TInteger32 | GetCount() | |
Instance | private | TDictionaryEntry | EntryWithKey(Key: TText) | |
Instance | public | Create() | ||
Instance | public | Destroy() | ||
Instance | public | Add(Key: TText; Value: TText) | ||
Instance | public | Add(Key: TText; Block: TMemoryBlock; Value: TText) | ||
Instance | public | Remove(Key: TText) | ||
Instance | public | TBoolean | KeyExists(Key: TText) | |
Instance | public | TText | GetTextValue(Key: TText) | |
Instance | public | TText | GetTextValueWithDefault(Key: TText; Default: TText) | |
Instance | public | TInteger32 | GetInteger32Value(Key: TText) | |
Instance | public | TInteger32 | GetInteger32ValueWithDefault(Key: TText; Default: TInteger32) | |
Instance | public | TFloatingPoint64 | GetFloatingPoint64Value(Key: TText) | |
Instance | public | TBoolean | GetBooleanValue(Key: TText) | |
Instance | public | TBoolean | GetBooleanValueWithDefault(Key: TText; Default: TBoolean) | |
Instance | public | TRgbColor | GetColorValue(Key: TText) | |
Instance | public | TRgbColor | GetColorValueWithDefault(Key: TText; Default: TRgbColor) | |
Instance | public | TMemoryBlock | GetBlock(Key: TText) |