comp • gb.data • queue

Queue (gb.data)

A Queue is a FIFO datatype: all elements follow the pattern "first in, first out".

Imagine this datatype like any other queue, e.g. in the supermarket.

This class is
Dim hQueue As Queue
creatable
.

Properties

Methods
property Read IsEmpty As Boolean Returns TRUE if the Queue is empty.
IsEmpty  
property Read Size As Integer
Size  
Sub Clear ( )
Clear  
Return a deep copy of the Queue.
Copy  
Function Deq ( ) As Variant
Deq  
Function Dequeue ( ) As Variant
Dequeue  
Sub Enq ( Value As Variant )
Enq  
Sub Enqueue ( Value As Variant )
Enqueue  
Function Peek ( ) As Variant
Peek