ucommon::ObjectStack Class Reference

Inheritance diagram for ucommon::ObjectStack:

Inheritance graph
[legend]
Collaboration diagram for ucommon::ObjectStack:

Collaboration graph
[legend]

Public Member Functions

 ObjectStack (LinkedObject *list)
 Create a stack from an existing list of objects.
 ObjectStack ()
 Create an empty stack.
LinkedObjectpop (void)
 Pop an object from the stack.
LinkedObjectpull (void)
 Pull an object from the stack.
void push (LinkedObject *object)
 Push an object onto the stack.

Protected Attributes

LinkedObjectroot

Detailed Description

Definition at line 927 of file linked.h.


Constructor & Destructor Documentation

ucommon::ObjectStack::ObjectStack ( LinkedObject list  ) 

Create a stack from an existing list of objects.

Parameters:
list of already linked objects.


Member Function Documentation

LinkedObject* ucommon::ObjectStack::pop ( void   )  [inline]

Pop an object from the stack.

Returns:
object popped from stack or NULL if empty.

Reimplemented in ucommon::objstack< T >.

Definition at line 960 of file linked.h.

LinkedObject* ucommon::ObjectStack::pull ( void   ) 

Pull an object from the stack.

Returns:
object popped from stack or NULL if empty.

Reimplemented in ucommon::objstack< T >.

void ucommon::ObjectStack::push ( LinkedObject object  ) 

Push an object onto the stack.

Parameters:
object to push.


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