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_TStack Class Template Reference#include <gml_Stack.h>
Inherits gml_TStack_Base, and gml_TArray< T >. Collaboration diagram for gml_TStack: ![]() Detailed Descriptiontemplate<typename T>
A template for fixed-length, typed stack (last in, first out) containers.
|
|||||||||||||||||||||||
Public Member Functions | |
| gml_TError | Init (UInt32 stackSize=sDefaultStackSize) |
| Allocate resources for a stack of size stackSize. | |
| void | Dispose () |
| Release resources. | |
| gml_TError | Push (const T object) |
| Push an object into the stack. Will fail on memory exhaustion. | |
| gml_TError | Pop (T &object) |
| Remove the oldest object from the stack and return it in object. Will fail if the stack is empty. | |
| unsigned | Height () |
| Return the current stack length (number of items). | |