Base interface
function Contains(AObject: IInterface): Boolean;
function Dequeue: IInterface;
function Empty: Boolean;
procedure Enqueue(AObject: IInterface);
function Size: Integer;
function Contains(const AString: string): Boolean;
function Dequeue: string;
function Empty: Boolean;
procedure Enqueue(const AString: string);
function Size: Integer;
function Contains(AObject: TObject): Boolean;
function Dequeue: TObject;
function Empty: Boolean;
procedure Enqueue(AObject: TObject);
A queue is a FIFO (Firt In / First Out) container.
Method | Description |
---|---|
Contains | Return True if AObject is contained in the queue. |
Dequeue | Return the head object of the queue. |
Empty | Return True the queue contained no object. |
Enqueue | Add AObject at the end of the queue. |
Size | Return the number of objects in the queue. |