Class TComponentMap
Unit
Declaration
type TComponentMap = class(specialize TDictionary<String,TComponent>)
Description
Used by TCastleComponentFactory.ComponentLoadWithMap to return names of the loaded components. This is a simple String -> TComponent dictionary.
The dictionary keys cannot be '' (an empty string). The dictionary keys ignore case, just like Pascal identifiers.
The values can never be Nil.
The case-insensitivity is achieved by using a case-insensitive comparer for the dictionary keys. This means the original case of the keys is preserved (we don't lowercase them), and case-insensitive matching is done by the (still hashed, so fast) ancestor methods.
Source: base/castleclassutils.pas (line 790).
Hierarchy
- TObject
- TDictionary
- TComponentMap
Overview
Methods
| Public | constructor Create; override; |
| Public | procedure Add(const Key: String; const Value: TComponent); |
| Public | procedure AddOrSetValue(const Key: String; const Value: TComponent); |
Properties
| Public | property Items[const Key: String]: TComponent read GetItem write AddOrSetValue; default; |
Description
Methods
| Public | constructor Create; override; |
|
This item has no description. | |
| Public | procedure Add(const Key: String; const Value: TComponent); |
|
This item has no description. | |
| Public | procedure AddOrSetValue(const Key: String; const Value: TComponent); |
|
This item has no description. | |
Properties
| Public | property Items[const Key: String]: TComponent read GetItem write AddOrSetValue; default; |
|
This item has no description. | |
Generated by PasDoc 0.17.0.snapshot.