gml_TQueue Class Template Reference

#include <gml_Queue.h>

Inherits gml_TQueue_Base.

Collaboration diagram for gml_TQueue:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<typename T>
class gml_TQueue< T >

A template for fixed-length, typed queue (first in, first out) containers.


Public Member Functions

gml_TError Init (UInt32 queueSize=sDefaultQueueSize, gml_TBoolean dropWhenFull=gml_cFalse)
 Allocate resources for a queue of size queueSize.
void Dispose ()
 Release resources.
gml_TError Push (const T object)
 Push an object into the queue. Will fail if the queue is full.
gml_TError Pop (T &object)
 Remove the oldest object from the queue and return it in object. Will fail if the queue is empty.
UInt32 Length ()
 Return the current queue length (number of items).

The documentation for this class was generated from the following file:
Generated on Tue Jun 12 14:03:28 2007 for gml by Doxygen 1.5.2.