UCommon
Public Member Functions
ucommon::objstack Class Reference

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.

Detailed Description

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@gnutelephony.org>

Member Function Documentation

void ucommon::objstack::add ( T *  object) [inline]

Add an object onto the object stack.

Parameters:
objectof specified type to push.

Definition at line 1164 of file linked.h.

Here is the call graph for this function:

T* ucommon::objstack::pop ( void  ) [inline]

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.

Here is the call graph for this function:

T* ucommon::objstack::pull ( void  ) [inline]

Pull an object from the object stack.

Returns:
object of specified type or NULL if empty.

Definition at line 1171 of file linked.h.

Here is the call graph for this function:

void ucommon::objstack::push ( T *  object) [inline]

Push an object onto the object stack.

Parameters:
objectof specified type to push.

Definition at line 1157 of file linked.h.

Here is the call graph for this function:


The documentation for this class was generated from the following file: