Sign in Join
FPDoc Onlineexperiment

TFPGList class

In unit fgl

Generic list.

Declaration

pascal
TFPGList<T> = class(TFPSList)

Inheritance

  1. TFPGList
  2. TFPSList
  3. TObject

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 TFPList

See also

Properties

FirstpublicFirst non-empty item.
LastpublicLast non-empty item.
ItemspublicIndexed access to items in the list.
ListpublicInternal list object.

Methods

CopyItemprotected
Derefprotected
Getprotected
GetListprotected
ItemPtrCompareprotected
Putprotected
GetLastprotected
SetLastprotected
GetFirstprotected
SetFirstprotected
CreatepublicInstantiate a new list.
ItemIsManagedpublicIndicates whether the list item is a managed type or not.
AddpublicAdd new item of type T to the list.
ExtractpublicExtract an item from the list.
GetEnumeratorpublicReturn a list enumerator for T.
IndexOfpublicIndex of item.
InsertpublicInsert a new item in the list.
AssignpublicCopy elements from Source list.
AddListpublicAdds the elements from another list.
RemovepublicRemove an item from the list.
SortpublicSort the list.
SortRangepublic

Fields

FOnCompareprotected

Types and constants

TFPGListEnumeratorSpecpublic

Inherited

From TFPSList (23)

Capacity CheckIndex Clear CopyItems Count Delete DeleteRange Destroy Error Exchange Expand InsertRange InternalExchange InternalGet InternalItems InternalPut ItemSize Move Pack QuickSort RaiseIndexError SetCapacity SetCount

From TObject (40)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.