IInterfaceList
[Properties (by Name)][Methods (by Name)][Events (by Name)]
Interface for maintaining a list of interfaces.
Declaration
Source position: classesh.inc line 2209
Type
IInterfaceList = interface ['{285DEA8A-B865-11D1-AAA7-00C04FB17A72}']
function Get(i: Integer) : IUnknown;
function GetCapacity : Integer;
function GetCount : Integer;
procedure Put(i: Integer; item: IUnknown);
procedure SetCapacity(NewCapacity: Integer);
procedure SetCount(NewCount: Integer);
procedure Clear;
procedure Delete(index: Integer);
procedure Exchange(index1: Integer; index2: Integer);
function First : IUnknown;
function IndexOf(const item: IUnknown) : Integer;
function Add(item: IUnknown) : Integer;
procedure Insert(i: Integer; item: IUnknown);
function Last : IUnknown;
function Remove(item: IUnknown) : Integer;
procedure Lock;
procedure Unlock;
Capacity : Integer;
Count : Integer;
Items[index: Integer]: IUnknown; default;
end
;
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.
Members
Member | Type | Visibility | Description |
---|---|---|---|
Add | Method | default | Add an interface to the list |
Capacity | Property | default | Capacity of the list |
Clear | Method | default | Clear the list |
Count | Property | default | Current number of elements in the list. |
Delete | Method | default | Remove an interface from the list |
Exchange | Method | default | Exchange 2 interfaces in the list |
First | Method | default | Return the first non-empty interface in the list. |
Get | Method | default | Retrieve an interface pointer from the list. |
GetCapacity | Method | default | Return the capacity of the list. |
GetCount | Method | default | Return the current number of elements in the list. |
IndexOf | Method | default | Return the index of an interface. |
Insert | Method | default | Insert an interface in the list. |
Items | Property | default | Provides Index-based, sequential, access to the interfaces in the list. |
Last | Method | default | Returns the last non-nil interface in the list. |
Lock | Method | default | Lock the list |
Put | Method | default | Write an item to the list |
Remove | Method | default | Remove an interface from the list |
SetCapacity | Method | default | Set the capacity of the list |
SetCount | Method | default | Set the number of items in the list |
Unlock | Method | default | Unlock the list. |
Inheritance
Class | Description |
---|---|
IInterfaceList | Interface for maintaining a list of interfaces. |
See also
Name | Description |
---|---|
Integer | A signed 16-bits integer |
Integer | A signed 16-bits integer |
IUnknown | IUnknown Interface |
TList | Class to manage collections of pointers. |