TFPGMapObject class
Generic map.
Declaration
TFPGMapObject<TKey;TData: TObject = classInheritance
Description
TFPGMapObject is a generic map class. It can be used to specialize a map for object types,
but not objects with automated reference counting: For reference counted interface objects,
TFPGMapInterfacedObjectData must be used.See also
Properties
Keys | public | Indexed access to the keys in the list. |
Data | public | Indexed access to the data in the list. |
KeyData | public | Access to data based on key. |
Methods
CopyItem | protected | |
CopyKey | protected | |
CopyData | protected | |
Deref | protected | |
InitOnPtrCompare | protected | |
GetKey | protected | |
GetKeyData | protected | |
GetData | protected | |
KeyCompare | protected | |
KeyCustomCompare | protected | |
DataCustomCompare | protected | |
PutKey | protected | |
PutKeyData | protected | |
PutData | protected | |
SetOnKeyCompare | protected | |
SetOnDataCompare | protected | |
Create | public | Create a new instance of the map. |
Add | public | Add a key and value to the map. |
Find | public | Find item based on key. |
TryGetData | public | Find data or return default. |
AddOrSetData | public | Add data with given or set value if the key already exists. |
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. |
Events
OnCompare | public | Alias for OnKeyCompare. |
OnKeyCompare | public | Compare function for key values. |
OnDataCompare | public | Compare function for data values. |
Fields
FOnKeyCompare | protected | |
FOnDataCompare | protected | |
FFreeObjects | protected |
Inherited
From TFPSMap (15)
BinaryCompareData BinaryCompareKey DataSize Duplicates Insert KeySize LinearIndexOf OnDataPtrCompare OnKeyPtrCompare OnPtrCompare SetOnDataPtrCompare SetOnKeyPtrCompare Sort Sorted SortRange
From TFPSList (37)
AddList Assign Capacity CheckIndex Clear CopyItems Count Delete DeleteRange Destroy Error Exchange Expand Extract First Get GetFirst GetLast InsertRange InternalExchange InternalGet InternalItems InternalPut ItemIsManaged Items ItemSize Last List Move Pack Put QuickSort RaiseIndexError SetCapacity SetCount SetFirst SetLast
From TObject (40)
AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
