UCommon
|
Template for typesafe basic object stack container. More...
#include <linked.h>
Inherits ucommon::ObjectStack.
Public Member Functions | |
void | add (T *object) |
Add an object onto the object stack. | |
objstack () | |
Create a new object stack. | |
objstack (T *list) | |
Create an object stack from a list of objects. | |
T * | pop (void) |
Pull (pop) an object from the object stack. | |
T * | pull (void) |
Pull an object from the object stack. | |
void | push (T *object) |
Push an object onto the object stack. |
Template for typesafe basic object stack container.
The object type, T, that is contained in the stack must be derived from LinkedObject.
void ucommon::objstack::add | ( | T * | object | ) | [inline] |
T* ucommon::objstack::pop | ( | void | ) | [inline] |
T* ucommon::objstack::pull | ( | void | ) | [inline] |
void ucommon::objstack::push | ( | T * | object | ) | [inline] |