#include <ebstack.h>
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. |
T | Type of element stored in it |
amino::EBStack< T >::EBStack | ( | int | num = 8 |
) | [inline] |
Constructor with size of collision array.
num | size of collision array |
amino::EBStack< T >::~EBStack | ( | ) | [inline] |
Destructor.
void amino::EBStack< T >::push | ( | const T | d | ) | [inline] |
Push data onto Stack.
d | data to be pushed into the stack. |
bool amino::EBStack< T >::pop | ( | T & | ret | ) | [inline] |
bool amino::EBStack< T >::empty | ( | ) | [inline] |
Check to see if Stack is empty.
int amino::EBStack< T >::size | ( | ) | [inline] |
Get the size of stack.
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.
ret | The topmost element in the stack. It is valid if the return value is true. |