|
Add(IInterface)
|
Adds an interface to the list.
Call Add to add an interface to the list. For multithreading purposes, the list is locked before the adding operation begins and unlocked afterwards.
The function returns the index at which the newly added interface is found.
|
|
Assign(IInterface)
|
Overloaded. Copies the input List interfaces to the current list. The current list is cleared.
|
|
Assign(TPersistent)
|
Overloaded. Copies the input List interfaces to the current list. The current list is cleared.
|
|
Clear
|
Clears the interface list.
Call Clear to remove all the interfaces from the list.
Note
|
The interface list only stores pointers to the interfaces. Clearing the interface does not delete the interfaces; it only decreases the reference count by 1. The interfaces are freed when there are no more references to them.
|
|
|
Clone
|
Creates a copy of the list.
|
|
Delete(Integer)
|
Deletes an interface from the list.
Call Delete to delete an interface from the list.
|
|
Equals(IInterface)
|
Overloaded. Returns true if the input AValue equals the current list.
|
|
Exchange(Integer,Integer)
|
Swaps the position of two interfaces in the list.
Call Exchange to move the interface at position Index1 so that it appears at position Index2 and move the interface at position Index2 so that it appears at position Index1. Index1 and Index2 identify two positions (zero offset) in the Items property array.
|
|
Expand
|
Increases the capacity of the interface list.
If Capacity is greater than 64, then Capacity is increased by Capacity / 4. If Capacity is between eight and 64, Capacity is increased by 16. If Capacity is less than eight, Capacity is increased by four.
|
|
First
|
Returns the first interface in the list.
Call First to obtain the first interface in the list.
|
|
Get(Integer)
|
Accessor method for the Items property.
|
|
GetCapacity
|
Accessor method for the RSInterfaceCollections.TInterfaceListPersistent.Capacity property.
|
|
GetCount
|
Accessor method for the RSInterfaceCollections.TInterfaceListPersistent.Count property.
|
|
GetEnumerator
|
Returns a TInterfaceList enumerator.
GetEnumerator returns a TInterfaceListIterator reference, which enumerates all IInterfaces in the Interface list.
To do so, call the TInterfaceListIterator GetCurrent method within a While MoveNext do loop.
|
|
GetTag
|
Accessor method for the RSInterfaceCollections.TInterfaceListPersistent.Tag property.
|
|
get_Tag
|
Accessor method for the RSInterfaceCollections.TInterfaceListPersistent.Tag property.
|
|
IndexOf(IInterface)
|
Returns the index of an interface.
Call IndexOf to obtain the index of an interface.
Note
|
Unlike IndexOfItem, this method only goes forward through the list from index 0 to index Count-1.
|
|
|
IndexOfItem(IInterface,TDirection)
|
Returns the index of an interface. The Direction parameter controls which direction the search should go: forward from 0 or backwards from Count-1.
Call IndexOfItem to obtain the index of an interface.
|
|
Insert(Integer,IInterface)
|
Inserts an interface into the list at a specified position.
Call Insert to insert an interface into the list. Item is the interface to insert, and Index indicates the position (zero-offset) where the interface should be added.
|
|
Last
|
Returns the last interface in the list.
Call Last to obtain the last interface in the list.
|
|
Lock
|
Prevents other threads from accessing the list.
Call Lock to lock the list, preventing other threads from accessing the list.
|
|
Move(Integer,Integer)
|
Moves the interface at CurIndex to the NewIndex location.
|
|
Notify(IInterface,TListNotification)
|
Called when an interface is added, removed, or extracted from the list
|
|
Put(Integer,IInterface)
|
Accessor method for the Items property.
|
|
QueryInterface(TGUID,Void)
|
Represents method QueryInterface(TGUID,Void).
|
|
Remove(IInterface)
|
Removes an interface from the list.
Call Remove to remove an interface from the list. For multithreading purposes, the list is locked before the removing operation begins and unlocked afterwards.
Remove returns either the index of the removed interface or –1, if the interface was not found.
Note
|
The interface list only stores pointers to the interfaces. Removing an interface from the list decreases the interfaces reference count by 1. The interface is freed only if there are no more references to it.
|
Note
|
Unlike RemoveItem, this method only goes forward through the list from index 0 to index Count-1.
|
|
|
RemoveItem(IInterface,TDirection)
|
Removes an interface from the list. The Direction parameter controls which direction the search should go: forward from 0 or backwards from Count-1.
Call RemoveItem to remove an interface from the list. For multithreading purposes, the list is locked before the removing operation begins and unlocked afterwards.
RemoveItem returns either the index of the removed interface or –1, if the interface was not found.
Note
|
The interface list only stores pointers to the interfaces. Removing an interface from the list decreases the interfaces reference count by 1. The interface is freed only if there are no more references to it.
|
|
|
SetCapacity(Integer)
|
Accessor method for the RSInterfaceCollections.TInterfaceListPersistent.Capacity property.
|
|
SetCount(Integer)
|
Accessor method for the RSInterfaceCollections.TInterfaceListPersistent.Count property.
|
|
SetTag(TRSTag)
|
Accessor method for the RSInterfaceCollections.TInterfaceListPersistent.Tag property.
|
|
set_Tag(TRSTag)
|
Accessor method for the RSInterfaceCollections.TInterfaceListPersistent.Tag property.
|
|
Sort
|
Overloaded. Performs a QuickSort on the list.
Call Sort to sort the items in the Items array.
|
|
Sort(IComparer)
|
Overloaded. Performs a QuickSort on the list based on the comparison function Compare.
Call Sort to sort the items in the Items array. AComparer is a comparison function that indicates how the items are to be ordered.
|
|
Unlock
|
Unlocks the list, allowing other threads to access it.
Call Unlock to unlock the list so that other threads can have access to the interfaces it contains.
|
|
_AddRef
|
Represents method _AddRef.
|
|
_Release
|
Represents method _Release.
|