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

#include <b2_stack_allocator.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 42 of file b2_stack_allocator.h.

Constructor & Destructor Documentation

◆ b2StackAllocator()

b2StackAllocator::b2StackAllocator ( )

Definition at line 26 of file b2_stack_allocator.cpp.

◆ ~b2StackAllocator()

b2StackAllocator::~b2StackAllocator ( )

Definition at line 34 of file b2_stack_allocator.cpp.

Member Function Documentation

◆ Allocate()

void * b2StackAllocator::Allocate ( int32  size)

Definition at line 40 of file b2_stack_allocator.cpp.

◆ Free()

void b2StackAllocator::Free ( void p)

Definition at line 65 of file b2_stack_allocator.cpp.

◆ GetMaxAllocation()

int32 b2StackAllocator::GetMaxAllocation ( ) const

Definition at line 84 of file b2_stack_allocator.cpp.

Member Data Documentation

◆ m_allocation

int32 b2StackAllocator::m_allocation
private

Definition at line 58 of file b2_stack_allocator.h.

◆ m_data

char b2StackAllocator::m_data[b2_stackSize]
private

Definition at line 55 of file b2_stack_allocator.h.

◆ m_entries

b2StackEntry b2StackAllocator::m_entries[b2_maxStackEntries]
private

Definition at line 61 of file b2_stack_allocator.h.

◆ m_entryCount

int32 b2StackAllocator::m_entryCount
private

Definition at line 62 of file b2_stack_allocator.h.

◆ m_index

int32 b2StackAllocator::m_index
private

Definition at line 56 of file b2_stack_allocator.h.

◆ m_maxAllocation

int32 b2StackAllocator::m_maxAllocation
private

Definition at line 59 of file b2_stack_allocator.h.


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


mvsim
Author(s):
autogenerated on Tue Jul 4 2023 03:08:22