Declaration
Source position: fgl.pp line 320
Description
TFPGMap is a generic map class. It can be used to specialize a map for any key type and data type that do not require manual reference counting: For reference counted interface objects, TFPGMapInterfacedObjectData must be used.
Properties
| Member |
Visibility |
Description |
| Data |
public |
Indexed access to the data in the list. |
| KeyData |
public |
Access to data based on key. |
| Keys |
public |
Indexed access to the keys in the list. |
See all PropertiesMethods
| Member |
Visibility |
Description |
| Add |
public |
Add a key and value to the map. |
| AddOrSetData |
public |
Add data with given or set value if the key already exists. |
| Create |
public |
Create a new instance of the map. |
| Find |
public |
Find item based on key. |
| IndexOf |
public |
Find index of a key in the list. |
| IndexOfData |
public |
Find index of data value in the list. |
| InsertKey |
public |
Insert a new key in the list. |
| InsertKeyData |
public |
Insert a new key with associated data in the list. |
| Remove |
public |
Remove a key from the list. |
| TryGetData |
public |
Find data or return default. |
See all Methods