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

  PUBLIC
BlkStackC::BlkStackC(int)
BlkStackC::~BlkStackC(void)
BlkStackC::Top(void)
BlkStackC::Top(void) const
BlkStackC::IsEmpty(void) const
BlkStackC::Push(const DataT &)
BlkStackC::Pop(void)
BlkStackC::DelTop(void)
BlkStackC::DelFirst(void)
BlkStackC::InsFirst(const DataT &)
BlkStackC::Insert(const DataT &)
BlkStackC::Empty(void)

   BlkStackC<class DataT>   
 
Block stack.
 
include "Ravl/BlkStack.hh"
Created:26/08/2001 
User Level:Advanced
Library:RavlCore
In Scope:RavlN

Comments:
This is a small object

This is designed to handle simple data types efficiently. It has some draw backs however, there is no garantee when the data held on the stack will have its destructor called, nor are there any garantees in what order they well happen. If this is a problem use StackC instead as it handles these cases properly.

Child Classes:
Variables:
Methods:
BlkStackC(int sizeEst = 32)
Constructor.
Give an estimate of the maximum size of the stack.

~BlkStackC()
Destructor.

DataT & Top()
Access top of stack.

const DataT & Top() const
Access top of stack.

bool IsEmpty() const
Test if stack is empty.

void Push(const DataT & data)
Push item onto stack.

DataT & Pop()
Pop item from stack.

void DelTop()
Remove an element from the top of the stack.
Same as Pop(), but no value returned. This is slightly faster than 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 InsFirst(const DataT & d)
Push element onto stack.
Same as Push().

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

void Empty()
Empty stack of all contents.


Maintainer:Charles Galambos, Created: 26/08/2001, Documentation by CxxDoc: Tue Aug 13 09:59:02 2002