Defines a base class for an ordered list based on TList.
Namespace: GLists
Delphi
|
type
TQOrderedList = class(TList)
end;
|
|
Name
|
Description
|
|
Create
|
Creates the ordered list.
|
Top
|
|
Name
|
Description
|
|
Empty
|
Returns true if the ordered list is empty.
|
Top
|
|
Name
|
Description
|
|
Assign(TObject)
|
Copies the input source (if it is a list) to the current ordered list.
|
|
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.
|
|
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
|