ArrayQueue


Object Hierarchy:

Gee.ArrayQueue Gee.ArrayQueue Gee.ArrayQueue Gee.AbstractQueue Gee.AbstractQueue Gee.AbstractQueue->Gee.ArrayQueue Gee.AbstractCollection Gee.AbstractCollection Gee.AbstractCollection->Gee.AbstractQueue GLib.Object GLib.Object GLib.Object->Gee.AbstractCollection Gee.Traversable Gee.Traversable Gee.Traversable->Gee.AbstractCollection Gee.Iterable Gee.Iterable Gee.Iterable->Gee.AbstractCollection Gee.Collection Gee.Collection Gee.Collection->Gee.AbstractCollection Gee.Queue Gee.Queue Gee.Queue->Gee.AbstractQueue Gee.Deque Gee.Deque Gee.Deque->Gee.ArrayQueue

Description:


public class ArrayQueue<G> : AbstractQueue<G>, Deque<G>

Resizable array implementation of the Deque interface.

The storage array grows automatically when needed.

This implementation is pretty good for lookups at the end or random. Because they are stored in an array this structure does not fit for deleting arbitrary elements. For an alternative implementation see LinkedList.

Example: Demonstrate the use of ArrayQueue:

void main () {
var queue = new Gee.ArrayQueue<string> ();
queue.offer ("hello");
queue.offer ("this");
queue.offer ("time");

foreach (string s in queue)
print ("%s\n", s);
}

valac --pkg gee-0.8 Gee.ArrayQueue.vala

See also:

LinkedList


Namespace: Gee
Package: gee-0.8

Content:

Properties:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class Gee.AbstractQueue
All known members inherited from class Gee.AbstractCollection
All known members inherited from interface Gee.Deque
All known members inherited from interface Gee.Queue
All known members inherited from interface Gee.Traversable
All known members inherited from interface Gee.Iterable