#include <Stack.h>
Public Methods | |
Stack (int s) | |
~Stack (void) | |
int | max_stack_size (void) |
return max stack size. More... | |
int | stack_size (void) |
return current stack size. More... | |
int | num (void) |
return current stack size. More... | |
int | push (const T &a) |
push a new item onto the stack. More... | |
int | dup (void) |
duplicate the top element on the stack. More... | |
T & | pop (void) |
pop an item off the stack, returning its reference. More... | |
T & | top (void) |
return reference to the top item, but do not pop the stack. More... | |
void | clear (void) |
set stack to empty. More... |
Definition at line 30 of file Stack.h.
|
|
|
|
|
set stack to empty.
|
|
duplicate the top element on the stack.
|
|
return max stack size.
|
|
return current stack size.
|
|
pop an item off the stack, returning its reference.
|
|
push a new item onto the stack.
Definition at line 57 of file Stack.h. Referenced by Stack< Matrix4 >::dup. |
|
return current stack size.
|
|
return reference to the top item, but do not pop the stack.
Definition at line 92 of file Stack.h. Referenced by Stack< Matrix4 >::dup. |