Public Member Functions | Private Attributes | List of all members
b2GrowableStack< T, N > Class Template Reference

#include <b2GrowableStack.h>

Public Member Functions

 b2GrowableStack ()
 
int32 GetCount ()
 
Pop ()
 
void Push (const T &element)
 
 ~b2GrowableStack ()
 

Private Attributes

m_array [N]
 
int32 m_capacity
 
int32 m_count
 
T * m_stack
 

Detailed Description

template<typename T, int32 N>
class b2GrowableStack< T, N >

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.

Constructor & Destructor Documentation

template<typename T, int32 N>
b2GrowableStack< T, N >::b2GrowableStack ( )
inline

Definition at line 31 of file b2GrowableStack.h.

template<typename T, int32 N>
b2GrowableStack< T, N >::~b2GrowableStack ( )
inline

Definition at line 38 of file b2GrowableStack.h.

Member Function Documentation

template<typename T, int32 N>
int32 b2GrowableStack< T, N >::GetCount ( )
inline

Definition at line 72 of file b2GrowableStack.h.

template<typename T, int32 N>
T b2GrowableStack< T, N >::Pop ( )
inline

Definition at line 65 of file b2GrowableStack.h.

template<typename T, int32 N>
void b2GrowableStack< T, N >::Push ( const T &  element)
inline

Definition at line 47 of file b2GrowableStack.h.

Member Data Documentation

template<typename T, int32 N>
T b2GrowableStack< T, N >::m_array[N]
private

Definition at line 79 of file b2GrowableStack.h.

template<typename T, int32 N>
int32 b2GrowableStack< T, N >::m_capacity
private

Definition at line 81 of file b2GrowableStack.h.

template<typename T, int32 N>
int32 b2GrowableStack< T, N >::m_count
private

Definition at line 80 of file b2GrowableStack.h.

template<typename T, int32 N>
T* b2GrowableStack< T, N >::m_stack
private

Definition at line 78 of file b2GrowableStack.h.


The documentation for this class was generated from the following file:


mvsim
Author(s):
autogenerated on Thu Jun 6 2019 19:36:41