Sign in Join
FPDoc Onlineexperiment

IInterfaceList interface

In unit Classes

Interface for maintaining a list of interfaces.

Declaration

pascal
IInterfaceList = class

Descends from it: IInterfaceListEx

Description

IInterfaceList is an interface for maintaining a list of interfaces, strongly resembling the standard TList class. It offers the same list of public methods as TList, with the exception that it uses interfaces instead of pointers.

All interfaces in the list should descend from IUnknown.

More detailed descriptions of how the various methods behave can be found in the TList reference.

See also

Properties

CapacityCapacity of the list.
CountCurrent number of elements in the list.
ItemsProvides Index-based, sequential, access to the interfaces in the list.

Methods

GetRetrieve an interface pointer from the list.
GetCapacityReturn the capacity of the list.
GetCountReturn the current number of elements in the list.
PutWrite an item to the list.
SetCapacitySet the capacity of the list.
SetCountSet the number of items in the list.
ClearClear the list.
DeleteRemove an interface from the list.
ExchangeExchange 2 interfaces in the list.
FirstReturn the first non-empty interface in the list.
IndexOfReturn the index of an interface.
AddAdd an interface to the list.
InsertInsert an interface in the list.
LastReturns the last non-nil interface in the list.
RemoveRemove an interface from the list.
LockLock the list.
UnlockUnlock the list.

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