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

TStringHashList.Clear

Frees resources allocated for hash items and the storage for the list.

Declaration

Source position: stringhashlist.pas line 62

public procedure TStringHashList.Clear;

Description

Clear is a method used to free resources allocated for the hash items, and the memory allocated for the List property.

Clear calls Dispose for each of the PStringHashItem instances stored in List to free the memory allocated for the typed pointer. Clear calls FreeMem to free the memory allocated for the List property, and sets the member reference to Nil.

The value in Count is set to 0 to indicate that the List is empty.

Clear is called from the Destroy method when the class instance is freed.

See also

TStringHashList.List

  

Provides indexed access to the storage used in the container.

TStringHashList.Count

  

Number of hash items stored in the List property.

TStringHashList.Destroy

  

Destructor for the class instance.

PStringHashItemList

  

Pointer to a block of TStringHashItem instances.

PStringHashItem

  

Pointer to a TStringHashItem instance.


Version 4.0 Generated 2025-05-03 Home