User Documentation
RAVL, Recognition And Vision Library
DEVELOP HOME PAGE CLASS LIST CONTENTS
Ravl - Core - Stacks - StackC<class T>
 

  PUBLIC
StackC::StackC(void)
StackC::StackC(const StackC &)
StackC::~StackC(void)
StackC::Pop(void)
StackC::GetFirst(void)
StackC::Get(void)
StackC::Push(const T &)
StackC::InsFirst(const T &)
StackC::Insert(const T &)
StackC::DelTop(void)
StackC::DelFirst(void)
StackC::Empty(void)
BaseStackC::Top(void)
BaseStackC::Top(void) const
BaseStackC::First(void)
BaseStackC::First(void) const
BaseStackC::IsEmpty(void) const
BaseStackC::Size(void) const
BaseStackC::DbPrint(void)

   StackC<class T>   
 
Templated, dynamicly sized stack.
 
include "Ravl/Stack.hh"
Created:05/10/1995 
User Level:Normal
Library:RavlCore
Example:exStack.cc
In Scope:RavlN

Comments:
Complexity proportional to sqrt(N); not N! Note: This is not reference counted.

Parent Classes: Methods:
StackC()
Default constructor.
constructs an empty stack.

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

~StackC()
Destructor.

T Pop()
Pop the element from the top of the stack.

T GetFirst()
Pop the element from the top of the stack.
Same as Pop().

T Get()
Pop the element from the top of the stack.
Same as Pop().

void Push(const T &)
Push element onto stack.

void InsFirst(const T & d)
Push element onto stack.
Same as Push().

void Insert(const T & d)
Push element onto stack.
Same as Push().

void DelTop()
Remove an element from the top of the stack.
Same as Pop(), but no value returned. This may be faster then Pop

void DelFirst()
Remove an element from the top of the stack.
Same as Pop(), but no value returned. This may be faster then Pop

void Empty()
remove all elements on the stack

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.


Maintainer:George (Jiri) Matas, Created: 05/10/1995, Documentation by CxxDoc: Tue Aug 13 09:59:02 2002