TQQueue maintains a first-in first-out array, or queue, of items. Use a TQQueue object to store and maintain a first-in first-out list.
To use the class properly as a queue, use the GLists.TQQueue.Push(TRSPointerType) and GLists.TQQueue.Pop methods, not Add or Items.
Namespace: GLists
|
Name
|
Description
|
|
Assign(TObject)
|
Copies the input source (if it is a list) to the current ordered list. (Inherited from GLists.TQOrderedList.)
|
|
Clone
|
Creates a copy of the ordered list.
Note
|
It is the responsibility of the calling method to free the clone.
|
|
|
IsEmpty
|
Represents method IsEmpty. (Inherited from GLists.TQOrderedList.)
|
|
Pop
|
Removes and returns the item at the front of the ordered list. Call Pop to retrieve an item from the ordered list. Pop returns the next item from the ordered list, and shrinks the list by one.
To access the ordered list without removing an item, call GLists.TQOrderedList.Top .
|
|
Push(TRSPointerType)
|
Adds an item to the ordered list. Call Push to add an item to the queue.
To retrieve items added with Push, call GLists.TQOrderedList.Pop or GLists.TQOrderedList.Top .
|
|
Top
|
Returns the item at the front of the ordered list. Call Top to access the ordered list without removing an item. Top returns the next item in the ordered list.
To remove an item from the ordered list, call GLists.TQOrderedList.Pop.
|
Top
|