TIQueue maintains a first-in first-out array, or queue, of interfaces. Use a TIQueue object to store and maintain a first-in first-out list.
To use the class properly as a queue, use the RSInterfaceCollections.TIQueue.Push(IInterface) and RSInterfaceCollections.TIQueue.Pop methods, not Add or Items.
Namespace: RSInterfaceCollections
Delphi
|
type
TIQueue = class(TIList)
end;
|
|
Name
|
Description
|
|
Empty
|
Returns whether the queue is empty or not.
|
Top
|
|
Name
|
Description
|
|
Peek
|
Returns the interface at the front of the queue. Call Peek to access the queue without removing an item. Peek returns the interface of the next item in the queue (that is, the earliest item added).
To remove an item from the queue, call RSInterfaceCollections.TIQueue.Pop.
|
|
Pop
|
Removes and returns the item at the front of the queue. Call Pop to retrieve an item from the queue. Pop removes the next item from the queue (that is, the earliest item added), then returns the interface of the deleted item.
To access the queue without removing an item, call RSInterfaceCollections.TIQueue.Peek .
|
|
Push(IInterface)
|
Adds an item to the end of the queue. Call Push to add an item to the queue.
To retrieve items added with Push, call RSInterfaceCollections.TIQueue.Pop or RSInterfaceCollections.TIQueue.Peek .
|
Top
|