#include <b2_growable_stack.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 34 of file b2_growable_stack.h.
|
inline |
Definition at line 37 of file b2_growable_stack.h.
|
inline |
Definition at line 44 of file b2_growable_stack.h.
|
inline |
Definition at line 78 of file b2_growable_stack.h.
|
inline |
Definition at line 71 of file b2_growable_stack.h.
|
inline |
Definition at line 53 of file b2_growable_stack.h.
|
private |
Definition at line 85 of file b2_growable_stack.h.
|
private |
Definition at line 87 of file b2_growable_stack.h.
|
private |
Definition at line 86 of file b2_growable_stack.h.
|
private |
Definition at line 84 of file b2_growable_stack.h.