Skip to content

TClassList

List of classes.

Declaration

Source position: contnrs.pp line 124

type

  TClassList = class(TList)
  public
    function Add : Integer;
    function Extract : TClass;
    function Remove : Integer;
    function IndexOf : Integer;
    function First : TClass;
    function Last : TClass;
    procedure Insert;
    property Items[Index : Integer]: TClass; {rw}
  end;

Description

TClassList is a Tlist descendent which stores class references instead of pointers. It introduces no new behaviour other than ensuring all stored pointers are class pointers.

The OwnsObjects property as found in TComponentList and TObjectList is not implemented as there are no actual instances.

Properties

Member Visibility Description
Items public Index based access to class pointers.
See all Properties

Methods

Member Visibility Description
Add public Add a new class pointer to the list.
Extract public Extract a class pointer from the list.
First public Returns the first non-nil class pointer.
IndexOf public Search for a class pointer in the list.
Insert public Insert a new class pointer in the list.
Last public Return last non-Nil class pointer.
Remove public Remove a class pointer from the list.
See all Methods

See also

Name Description
#rtl.classes.tlist
TComponentList List to manage component instances.
TObjectList List to manage object instances.