TFPGInterfacedObjectList class
Generic interfaced object list.
Declaration
TFPGInterfacedObjectList<T> = class(TFPSList)Inheritance
Description
TFPGList can be used to specialize a list for any class type
T
that requires reference counting (all objects that implement
IInterface or
IUnknown)).
It will specialize to a list with the same methods as
TFPSList or
TFPList or
TFPObjectList
Classes that implement IInterface or IUnknown require
special care to maintain the reference count. The TFPGInterfacedObjectList
list provides the necessary functionality to deal with this.
See also
Properties
First | public | First non-nil object. |
Last | public | Last non- Nil object. |
Items | public | Indexed access to objects in the list. |
List | public | Internal list pointer. |
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 interfaced 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 object. |
Insert | public | Insert a new object in the list. |
Assign | public | Copy objects from Source list. |
AddList | public | Adds the elements from another list. |
Remove | public | Remove an object from the list. |
Sort | public | Sort the objects in the list. |
SortRange | public |
Fields
FOnCompare | 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.
