amino::EBStack< T > Class Template Reference

This a implementation of ebstack... More...

#include <ebstack.h>

List of all members.

Public Member Functions

 EBStack (int num=8)
 Constructor with size of collision array.
 ~EBStack ()
 Destructor.
void push (const T d)
 Push data onto Stack.
bool pop (T &ret)
 Pop data from the Stack.
bool empty ()
 Check to see if Stack is empty.
int size ()
 Get the size of stack.
bool peekTop (T &ret)
 Get the topmost element in the stack. If the stack is empty, it will return false. else return true and assign the topmost element to the parameter.


Detailed Description

template<typename T>
class amino::EBStack< T >

This a implementation of ebstack...

Template Parameters:
T Type of element stored in it

Constructor & Destructor Documentation

template<typename T>
amino::EBStack< T >::EBStack ( int  num = 8  )  [inline]

Constructor with size of collision array.

Parameters:
num size of collision array

template<typename T>
amino::EBStack< T >::~EBStack (  )  [inline]

Destructor.


Member Function Documentation

template<typename T>
void amino::EBStack< T >::push ( const T  d  )  [inline]

Push data onto Stack.

Parameters:
d data to be pushed into the stack.

template<typename T>
bool amino::EBStack< T >::pop ( T &  ret  )  [inline]

Pop data from the Stack.

Parameters:
ret topmost element of the stack. It is valid if the return value is true.
Returns:
If the value exists in the list, remove it and return true. else return false.

template<typename T>
bool amino::EBStack< T >::empty (  )  [inline]

Check to see if Stack is empty.

Returns:
true if stack is empty.

template<typename T>
int amino::EBStack< T >::size (  )  [inline]

Get the size of stack.

Returns:
The size of stack

template<typename T>
bool amino::EBStack< T >::peekTop ( T &  ret  )  [inline]

Get the topmost element in the stack. If the stack is empty, it will return false. else return true and assign the topmost element to the parameter.

Parameters:
ret The topmost element in the stack. It is valid if the return value is true.
Returns:
If the stack is empty return false, else return true.


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

Generated on Tue Dec 9 13:39:39 2008 for Amino by  doxygen 1.5.6