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

TFPGList

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Generic list

Declaration

Source position: fgl.pp line 110

type generic TFPGList <T>= class(TFPSList) end;

public

  constructor Create;

  

Instantiate a new list

  function Add();

  

Add new item of type T to the list.

  function Extract();

  

Extract an item from the list

  property First: T; [rw]

  

First non-empty item

  function GetEnumerator;

  

Return a list enumerator for T.

  function IndexOf();

  

Index of item

  procedure Insert();

  

Insert a new item in the list

  property Last: T; [rw]

  

Last non-empty item

  procedure Assign();

  

Copy elements from Source list

  function Remove();

  

Remove an item from the list.

  procedure Sort();

  

Sort the list

  property Items: T; default; [rw]

  

Indexed access to items in the list

  property List: PTypeList; [r]

  

Internal list object

Inheritance

TFPGList

  

Generic list

TFPSList

  

Basic list of memory blocks

TObject

  

Base class of all classes.

Description

TFPGList can be used to specialize a list for any type T that does not require reference counting (such as interfaced objects). It will specialize to a list with the same methods as TFPSList or classes.TFPList

See also

TFPSList

  

Basic list of memory blocks

classes.TFPList

  

Class to manage collections of pointers.


Documentation generated on: Nov 16 2015