Public Member Functions | Private Attributes | List of all members
b2StackAllocator Class Reference

#include <b2StackAllocator.h>

Public Member Functions

voidAllocate (int32 size)
 
 b2StackAllocator ()
 
void Free (void *p)
 
int32 GetMaxAllocation () const
 
 ~b2StackAllocator ()
 

Private Attributes

int32 m_allocation
 
char m_data [b2_stackSize]
 
b2StackEntry m_entries [b2_maxStackEntries]
 
int32 m_entryCount
 
int32 m_index
 
int32 m_maxAllocation
 

Detailed Description

Definition at line 37 of file b2StackAllocator.h.

Constructor & Destructor Documentation

b2StackAllocator::b2StackAllocator ( )

Definition at line 22 of file b2StackAllocator.cpp.

b2StackAllocator::~b2StackAllocator ( )

Definition at line 30 of file b2StackAllocator.cpp.

Member Function Documentation

void * b2StackAllocator::Allocate ( int32  size)

Definition at line 36 of file b2StackAllocator.cpp.

void b2StackAllocator::Free ( void p)

Definition at line 61 of file b2StackAllocator.cpp.

int32 b2StackAllocator::GetMaxAllocation ( ) const

Definition at line 80 of file b2StackAllocator.cpp.

Member Data Documentation

int32 b2StackAllocator::m_allocation
private

Definition at line 53 of file b2StackAllocator.h.

char b2StackAllocator::m_data[b2_stackSize]
private

Definition at line 50 of file b2StackAllocator.h.

b2StackEntry b2StackAllocator::m_entries[b2_maxStackEntries]
private

Definition at line 56 of file b2StackAllocator.h.

int32 b2StackAllocator::m_entryCount
private

Definition at line 57 of file b2StackAllocator.h.

int32 b2StackAllocator::m_index
private

Definition at line 51 of file b2StackAllocator.h.

int32 b2StackAllocator::m_maxAllocation
private

Definition at line 54 of file b2StackAllocator.h.


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


mvsim
Author(s):
autogenerated on Fri May 7 2021 03:05:52