TFPGObjectList class
Generic object list.
Declaration
TFPGObjectList<T: TObject = classInheritance
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
TFPObjectListSee also
Properties
First | public | First non-nil item. |
Last | public | Last non- Nil object. |
Items | public | Indexed access to objects in the list. |
List | public | Internal list pointer. |
FreeObjects | public | Does the list own the objects or not? |
Methods
CopyItem | protected | |
Deref | protected | |
Get | protected | |
GetList | protected | |
ItemPtrCompare | protected | |
Put | protected | |
GetLast | protected | |
SetLast | protected | |
GetFirst | protected | |
SetFirst | protected | |
Create | public | Instantiate a new object list. |
Add | public | Add new object of class T to the list. |
Extract | public | Extract an item from the list. |
GetEnumerator | public | Return a list enumerator for T. |
IndexOf | public | Index of item. |
Insert | public | Insert a new object in the list. |
AddList | public | Adds the elements from another list. |
Assign | public | Copy objects from Source list. |
Remove | public | Remove an object from the list. |
Sort | public | Sort the objects in the list. |
SortRange | public |
Fields
FOnCompare | protected | |
FFreeObjects | protected |
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.
