Sign in Join
FPDoc Onlineexperiment

TFPSMap.KeyData property

Member of TFPSMappublicIn unit fgl

Access to data locations using key.

Declaration

pascal
property KeyData[Key: Pointer]: Pointer read GetKeyData write PutKeyData; default;

Description

KeyData provides access to the data items, using their key value (as pointed to by AKey) as an index. When reading a non-existent key value, Nil is returned. If the key is found, a pointer to the associated data's location is returned. When writing, the key pointed to by Key is added if it was not present, and the data data is copied from the written pointer.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.