TInterfaceList

[Properties (by Name)][Methods (by Name)][Events (by Name)]

Standard implementation of the IInterfaceList interface.

Declaration

Source position: classesh.inc line 2245

Type
  TInterfaceList = class (TInterfacedObject, IInterfaceList)
  private
    FList : TThreadList;
  protected
    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);
  public
    constructor Create;
    destructor Destroy;  Override;
    procedure Clear;
    procedure Delete(index: Integer);
    procedure Exchange(index1: Integer; index2: Integer);
    function First : IUnknown;
    function GetEnumerator : TInterfaceListEnumerator;
    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;
    function Expand : TInterfaceList;
    Capacity : Integer;
    Count : Integer;
    Items[Index: Integer]: IUnknown; default;
  end
  ;

Description

TInterfaceList is a standard implementation of the IInterfaceList interface. It uses a TThreadList instance to store the list of interfaces.

Members

Member Type Visibility Description
Add Method public Add an interface to the list
Capacity Property public The current capacity of the list.
Clear Method public Removes all interfaces from the list.
Count Property public The current number of elements in the list.
Create Method public Create a new instance of TInterfaceList
Delete Method public Delete an interface from the list.
Destroy Method public Destroys the list of interfaces
Exchange Method public Exchange 2 interfaces in the list
Expand Method public Expands the list
First Method public Returns the first non-Nil element in the list.
FList Field private
Get Method protected
GetCapacity Method protected
GetCount Method protected
GetEnumerator Method public Create an IEnumerator instance
IndexOf Method public Returns the index of an interface.
Insert Method public Insert an interface to the list
Items Property public Array-based access to the list's items.
Last Method public Returns the last non-Nil element in the list.
Lock Method public Lock the list
Put Method protected
Remove Method public Remove an interface from the list
SetCapacity Method protected
SetCount Method protected
Unlock Method public UnLocks a locked list

Inheritance

Class Description
TInterfaceList(IInterfaceList) Standard implementation of the IInterfaceList interface.

See also

Name Description
IInterfaceList Interface for maintaining a list of interfaces.
Integer A signed 16-bits integer
Integer A signed 16-bits integer
IUnknown IUnknown Interface
TList Class to manage collections of pointers.
TThreadList Thread-safe list object

results matching ""

    No results matching ""