#include <b2GrowableStack.h>
Public Member Functions | |
b2GrowableStack () | |
int32 | GetCount () |
T | Pop () |
void | Push (const T &element) |
~b2GrowableStack () | |
Private Attributes | |
T | m_array [N] |
int32 | m_capacity |
int32 | m_count |
T * | m_stack |
This is a growable LIFO stack with an initial capacity of N. If the stack size exceeds the initial capacity, the heap is used to increase the size of the stack.
Definition at line 28 of file b2GrowableStack.h.
b2GrowableStack< T, N >::b2GrowableStack | ( | ) | [inline] |
Definition at line 31 of file b2GrowableStack.h.
b2GrowableStack< T, N >::~b2GrowableStack | ( | ) | [inline] |
Definition at line 38 of file b2GrowableStack.h.
int32 b2GrowableStack< T, N >::GetCount | ( | ) | [inline] |
Definition at line 72 of file b2GrowableStack.h.
T b2GrowableStack< T, N >::Pop | ( | ) | [inline] |
Definition at line 65 of file b2GrowableStack.h.
void b2GrowableStack< T, N >::Push | ( | const T & | element | ) | [inline] |
Definition at line 47 of file b2GrowableStack.h.
T b2GrowableStack< T, N >::m_array[N] [private] |
Definition at line 79 of file b2GrowableStack.h.
int32 b2GrowableStack< T, N >::m_capacity [private] |
Definition at line 81 of file b2GrowableStack.h.
int32 b2GrowableStack< T, N >::m_count [private] |
Definition at line 80 of file b2GrowableStack.h.
T* b2GrowableStack< T, N >::m_stack [private] |
Definition at line 78 of file b2GrowableStack.h.