[Overview][Types][Classes][Index] Reference for unit 'StringHashList' (#lazutils)

TStringHashList.List

Provides indexed access to the storage used in the container.

Declaration

Source position: stringhashlist.pas line 70

public property TStringHashList.List : PStringHashItemList
  read FList;

Description

List is a read-only indexed PStringHashItemList property which provides access to the storage used in the container. Resources in List are allocated and freed in methods like Add, Remove, Delete, and Clear.

The value is a Pointer to the first memory block allocated for the PHashStringItem instances stored in the container. The property values are accessed using the ordinal position for a given hash item.

Since the property value is a Pointer, it must be dereferenced to access the member values for a given hash item. For example:

// var AKey: Cardinal;
// var AHashValue: String;
// var AData: TObject;
// var AHashes: TStringHashList;

AKey := AHashes.List[2]^.Key;
AHashValue := AHashes.List[2]^.HashValue;
AData := AHashes.List[2]^.Data;

See also

PStringHashItemList

  

Pointer to a block of TStringHashItem instances.

PStringHashItem

  

Pointer to a TStringHashItem instance.


Version 4.0 Generated 2025-05-03 Home