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.
|
| ObjectStack () |
| Create an empty stack.
|
| ObjectStack (LinkedObject *list) |
| Create a stack from an existing list of objects.
|
LinkedObject * | pop (void) |
| Pop an object from the stack.
|
LinkedObject * | pull (void) |
| Pull an object from the stack.
|
void | push (LinkedObject *object) |
| Push an object onto the stack.
|
Detailed Description
template<class T>
class ucommon::objstack< T >
Template for typesafe basic object stack container.
The object type, T, that is contained in the stack must be derived from LinkedObject.
- Author:
- David Sugar dyfet.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org
Definition at line 1140 of file linked.h.
Member Function Documentation
Add an object onto the object stack.
- Parameters:
-
object | of specified type to push. |
Definition at line 1164 of file linked.h.
Pull (pop) an object from the object stack.
- Returns:
- object of specified type or NULL if empty.
Definition at line 1178 of file linked.h.
Pull an object from the object stack.
- Returns:
- object of specified type or NULL if empty.
Definition at line 1171 of file linked.h.
Push an object onto the object stack.
- Parameters:
-
object | of specified type to push. |
Definition at line 1157 of file linked.h.
The documentation for this class was generated from the following file: