#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.
|
inline |
Definition at line 31 of file b2GrowableStack.h.
|
inline |
Definition at line 38 of file b2GrowableStack.h.
|
inline |
Definition at line 72 of file b2GrowableStack.h.
|
inline |
Definition at line 65 of file b2GrowableStack.h.
|
inline |
Definition at line 47 of file b2GrowableStack.h.
|
private |
Definition at line 79 of file b2GrowableStack.h.
|
private |
Definition at line 81 of file b2GrowableStack.h.
|
private |
Definition at line 80 of file b2GrowableStack.h.
|
private |
Definition at line 78 of file b2GrowableStack.h.