lout::container::untyped::Stack Class Reference

A stack (LIFO). More...

#include <container.hh>

List of all members.

Classes

class  Node
class  StackIterator

Public Member Functions

 Stack (bool ownerOfObjects)
 ~Stack ()
void push (object::Object *object)
void pushUnder (object::Object *object)
object::ObjectgetTop ()
void pop ()
int size ()

Protected Member Functions

AbstractIteratorcreateIterator ()

Private Attributes

Nodebottom
Nodetop
bool ownerOfObjects
int numElements

Friends

class StackIterator


Detailed Description

A stack (LIFO).

Note that the iterator returns all elements in the reversed order they have been put on the stack.


Constructor & Destructor Documentation

lout::container::untyped::Stack::Stack ( bool  ownerOfObjects  ) 

References bottom, numElements, and top.

lout::container::untyped::Stack::~Stack (  ) 

References pop(), and top.


Member Function Documentation

Collection0::AbstractIterator * lout::container::untyped::Stack::createIterator (  )  [protected, virtual]

object::Object* lout::container::untyped::Stack::getTop (  )  [inline]

void lout::container::untyped::Stack::pop (  ) 

void lout::container::untyped::Stack::push ( object::Object object  ) 

void lout::container::untyped::Stack::pushUnder ( object::Object object  ) 

int lout::container::untyped::Stack::size (  )  [inline]

References numElements.


Friends And Related Function Documentation

friend class StackIterator [friend]

Referenced by createIterator().


Member Data Documentation

Referenced by pop(), push(), pushUnder(), and Stack().

Referenced by pop(), push(), pushUnder(), size(), and Stack().

Referenced by pop().


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

Generated on Wed Sep 7 02:00:38 2011 for Dillo by  doxygen 1.5.9