User Documentation
Centre for Vision, Speech & Signal Processing
DEVELOP IN NAMESPACE AMMA TREE ROOT AMMA SEARCH AMMA HOME
 

  PUBLIC
BaseStackG::BaseStackG(void)
BaseStackG::BaseStackG(const BaseStackG &)
BaseStackG::Top(void)
BaseStackG::Top(void) const
BaseStackG::First(void)
BaseStackG::First(void) const
BaseStackG::IsEmpty(void) const
BaseStackG::Size(void) const
BaseStackG::DbPrint(void)
BaseStackG<class T>
 
Base stack.
 
include "amma/Stack.hh"
User Level:Default
Library:Mstack
Example:exStack.cc
Section:Containers.Stacks
In Scope:std

Comments:
Complexity proportional to sqrt(N); not N!

Parent Classes: Derived Classes: Child Classes:
Variables:
Methods:
BaseStackG()
Default constructor
create an empty stack.

BaseStackG(const BaseStackG<T> &)
Copy constructor.

T & Top()
Access element at the top of the stack.
i.e. the next one returned if Pop() is called.

const T & Top() const
Access element at the top of the stack.
i.e. the next one returned if Pop() is called.

T & First()
Access element at the top of the stack.
i.e. the next one returned if Pop() is called. Same as Top().

const T & First() const
Access element at the top of the stack.
i.e. the next one returned if Pop() is called. Same as Top().

bool IsEmpty() const
Test if stack is empty.
Returns true if it is empty.

long Size() const
Get the number of elements in the stack.

void DbPrint()
Usefull for debuging the stack
Not usefull for normal users.


Programmer:George (Jiri) Matas, Documentation by CxxDoc: Tue Mar 20 10:48:08 2001