[Overview][Constants][Types][Classes][Index] Reference for unit 'fgl' (#rtl)

TFPSMap.OnKeyPtrCompare

Callback to compare 2 keys

Declaration

Source position: fgl.pp line 277

public property TFPSMap.OnKeyPtrCompare : TFPSListCompareFunc
  read FOnKeyPtrCompare
  write SetOnKeyPtrCompare;

Description

OnKeyPtrCompare is used to compare the values of 2 keys. By default it simply compares the byte values of the key memory block. It can be set to any function that performs another comparison. (e.g. a function that treats the memory blocks as a string pointer and compare the actual strings).

This function is used to sort the list or find a key.

See also

TFPSListCompareFunc

  

Compare list items callback signature

TFPSMap.OnDataPtrCompare

  

Callback to compare 2 data items

TFPSMap.Sort

  

Sort the list according to key

TFPSMap.Find

  

Find data using the associated key

TFPSMap.IndexOf

  

Index of key pointed to by AKey


Documentation generated on: Sep 28 2017