ArrayQueue
Object Hierarchy:
Description:
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:
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 class GLib.Object
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
All known members inherited from interface Gee.Collection