Maintains a last-in first-out (LIFO) array, or stack, of items.
Use a TQStack object to store and maintain a last-in first-out list. The TQStack object descends from GLists.TQQueue class.
Namespace: GLists
Delphi
|
type
TQStack = class(TQQueue)
end;
|
|
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
|