Home Page Toolkit Overview Using GML User Input Services Finger Tracker Calibrator Frame Grabber Service protocol Obtaining GML Installing GML Licence Developer Documentation Tcl/Tk API The GML Canvas Image processing Tcl Scripts Library List of Classes List of Files C/C++ API List of Classes List of Files |
gml_TQueue Class Template Reference#include <gml_Queue.h>
Inherits gml_TQueue_Base. Collaboration diagram for gml_TQueue: Detailed Descriptiontemplate<typename 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). |