Sign in Join
FPDoc Onlineexperiment

TFPGObjectList class

In unit fgl

Generic object list.

Declaration

pascal
TFPGObjectList<T: TObject = class

Inheritance

  1. TFPGObjectList
  2. TFPSList
  3. TObject

Descends from it: TCtrlBands

Description

TFPGList can be used to specialize a list for any class 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 or TFPObjectList

See also

Properties

FirstpublicFirst non-nil item.
LastpublicLast non- Nil object.
ItemspublicIndexed access to objects in the list.
ListpublicInternal list pointer.
FreeObjectspublicDoes the list own the objects or not?

Methods

CopyItemprotected
Derefprotected
Getprotected
GetListprotected
ItemPtrCompareprotected
Putprotected
GetLastprotected
SetLastprotected
GetFirstprotected
SetFirstprotected
CreatepublicInstantiate a new object list.
AddpublicAdd new object of class T to the list.
ExtractpublicExtract an item from the list.
GetEnumeratorpublicReturn a list enumerator for T.
IndexOfpublicIndex of item.
InsertpublicInsert a new object in the list.
AddListpublicAdds the elements from another list.
AssignpublicCopy objects from Source list.
RemovepublicRemove an object from the list.
SortpublicSort the objects in the list.
SortRangepublic

Fields

FOnCompareprotected
FFreeObjectsprotected

Inherited

From TFPSList (24)

Capacity CheckIndex Clear CopyItems Count Delete DeleteRange Destroy Error Exchange Expand InsertRange InternalExchange InternalGet InternalItems InternalPut ItemIsManaged 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.