zeus::TStack< T > Class Template Reference

#include <Stack.hpp>

Inheritance diagram for zeus::TStack< T >:

zeus::IStack< T > zeus::IValueType zeus::TManagedStack< T >

List of all members.

Public Member Functions

 TStack ()
 TStack (const T &rEmptyObject)
virtual ~TStack ()
virtual void MQUALIFIER copyToStack (IStack< T > &rStack) const
virtual void MQUALIFIER copyToList (IList< T > &rList) const
virtual void MQUALIFIER flush ()
virtual Int MQUALIFIER getCount () const
virtual bool MQUALIFIER isEmpty () const
virtual void MQUALIFIER push (const T &rData)
virtual T MQUALIFIER pop ()
virtual T &MQUALIFIER peek ()
TStack< T > & operator= (const TStack< T > &rStack)
TStack< T > & operator= (const IStack< T > &rStack)

Protected Member Functions

getItem (Int iIndex) const


Detailed Description

template<class T>
class zeus::TStack< T >

Implementation of the abstract datatype of Pushdown-Stack

Constructor & Destructor Documentation

template<class T>
zeus::TStack< T >::TStack (  )  [inline]

Creates an empty stack

template<class T>
zeus::TStack< T >::TStack ( const T &  rEmptyItem  )  [inline]

Creates an empty stack with a different empty item. The empty item is returned as error object

Parameters:
rEmptyItem : new empty item

template<class T>
zeus::TStack< T >::~TStack (  )  [inline, virtual]

Destroys the stack


Member Function Documentation

template<class T>
void MQUALIFIER zeus::TStack< T >::copyToStack ( IStack< T > &  rStack  )  const [inline, virtual]

See also:
IStack::copyToStack

Implements zeus::IStack< T >.

template<class T>
void MQUALIFIER zeus::TStack< T >::copyToList ( IList< T > &  rList  )  const [inline, virtual]

See also:
IStack::copyToList

Implements zeus::IStack< T >.

template<class T>
void MQUALIFIER zeus::TStack< T >::flush (  )  [inline, virtual]

See also:
IStack::flush

Implements zeus::IStack< T >.

template<class T>
Int MQUALIFIER zeus::TStack< T >::getCount (  )  const [inline, virtual]

See also:
IStack::getSize

Implements zeus::IStack< T >.

template<class T>
bool MQUALIFIER zeus::TStack< T >::isEmpty (  )  const [inline, virtual]

See also:
IStack::isEmpty

Implements zeus::IStack< T >.

template<class T>
void MQUALIFIER zeus::TStack< T >::push ( const T &  data  )  [inline, virtual]

See also:
IStack::push

Implements zeus::IStack< T >.

template<class T>
T MQUALIFIER zeus::TStack< T >::pop (  )  [inline, virtual]

See also:
IStack::pop

Implements zeus::IStack< T >.

template<class T>
T &MQUALIFIER zeus::TStack< T >::peek (  )  [inline, virtual]

See also:
IStack::peek

Implements zeus::IStack< T >.

template<class T>
TStack< T > & zeus::TStack< T >::operator= ( const TStack< T > &  rStack  )  [inline]

Copies a stack into an other stack

Parameters:
rStack : Stack to copy from

template<class T>
TStack< T > & zeus::TStack< T >::operator= ( const IStack< T > &  rStack  )  [inline]

Copies a stack into an other stack

Parameters:
rStack : Stack to copy from

template<class T>
T zeus::TStack< T >::getItem ( Int  iIndex  )  const [inline, protected]

This returns the indexed value of the queue. Used internaly for coping stacks.

Returns:
Element: indexed value


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


Written by Benjamin Hadorn http://www.xatlantis.ch.
Last change made on Wed Oct 28 21:42:35 2009