ucommon::objstack< T > Class Template Reference

Template for typesafe basic object stack container. More...

#include <linked.h>

Inheritance diagram for ucommon::objstack< T >:

Inheritance graph
[legend]
Collaboration diagram for ucommon::objstack< T >:

Collaboration graph
[legend]

Public Member Functions

void add (T *object)
 Add an object onto the object stack.
 objstack (T *list)
 Create an object stack from a list of objects.
 objstack ()
 Create a new object stack.
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<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@gnutelephony.org>

Definition at line 1152 of file linked.h.


Member Function Documentation

template<class T>
void ucommon::objstack< T >::add ( T *  object  )  [inline]

Add an object onto the object stack.

Parameters:
object of specified type to push.

Definition at line 1176 of file linked.h.

template<class T>
T* ucommon::objstack< T >::pop ( void   )  [inline]

Pull (pop) an object from the object stack.

Returns:
object of specified type or NULL if empty.

Reimplemented from ucommon::ObjectStack.

Definition at line 1190 of file linked.h.

template<class T>
T* ucommon::objstack< T >::pull ( void   )  [inline]

Pull an object from the object stack.

Returns:
object of specified type or NULL if empty.

Reimplemented from ucommon::ObjectStack.

Definition at line 1183 of file linked.h.

template<class T>
void ucommon::objstack< T >::push ( T *  object  )  [inline]

Push an object onto the object stack.

Parameters:
object of specified type to push.

Definition at line 1169 of file linked.h.


The documentation for this class was generated from the following file:
Generated on 14 Aug 2013 for UCommon by  doxygen 1.4.7