Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
FastAllocatorGeneral Class Reference

#include <FastAllocator.h>

Public Member Functions

 FastAllocatorGeneral ()
 
void * Alloc (unsigned int n)
 
void Free (void *pAlloc)
 
void * Realloc (void *pAlloc, unsigned int n)
 
unsigned Get_Total_Heap_Size ()
 
unsigned Get_Total_Allocated_Size ()
 
unsigned Get_Total_Allocation_Count ()
 
unsigned Get_Total_Actual_Memory_Usage ()
 

Static Public Member Functions

static FastAllocatorGeneralGet_Allocator ()
 

Protected Attributes

FastFixedAllocator allocators [MAX_ALLOC_SIZE/ALLOC_STEP]
 
FastCriticalSectionClass CriticalSections [MAX_ALLOC_SIZE/ALLOC_STEP]
 
bool MemoryLeakLogEnabled
 
unsigned AllocatedWithMalloc
 
unsigned AllocatedWithMallocCount
 
unsigned ActualMemoryUsage
 

Detailed Description

Definition at line 358 of file FastAllocator.h.

Constructor & Destructor Documentation

◆ FastAllocatorGeneral()

FastAllocatorGeneral::FastAllocatorGeneral ( )

Definition at line 34 of file FastAllocator.cpp.

Member Function Documentation

◆ Alloc()

WWINLINE void * FastAllocatorGeneral::Alloc ( unsigned int n)

Definition at line 424 of file FastAllocator.h.

◆ Free()

WWINLINE void FastAllocatorGeneral::Free ( void * pAlloc)

Definition at line 470 of file FastAllocator.h.

◆ Get_Allocator()

FastAllocatorGeneral * FastAllocatorGeneral::Get_Allocator ( )
static

Definition at line 24 of file FastAllocator.cpp.

◆ Get_Total_Actual_Memory_Usage()

unsigned FastAllocatorGeneral::Get_Total_Actual_Memory_Usage ( )
inline

Definition at line 373 of file FastAllocator.h.

◆ Get_Total_Allocated_Size()

WWINLINE unsigned FastAllocatorGeneral::Get_Total_Allocated_Size ( )

Definition at line 398 of file FastAllocator.h.

◆ Get_Total_Allocation_Count()

WWINLINE unsigned FastAllocatorGeneral::Get_Total_Allocation_Count ( )

Definition at line 408 of file FastAllocator.h.

◆ Get_Total_Heap_Size()

WWINLINE unsigned FastAllocatorGeneral::Get_Total_Heap_Size ( )

Definition at line 388 of file FastAllocator.h.

◆ Realloc()

WWINLINE void * FastAllocatorGeneral::Realloc ( void * pAlloc,
unsigned int n )

Definition at line 500 of file FastAllocator.h.

Member Data Documentation

◆ ActualMemoryUsage

unsigned FastAllocatorGeneral::ActualMemoryUsage
protected

Definition at line 384 of file FastAllocator.h.

◆ AllocatedWithMalloc

unsigned FastAllocatorGeneral::AllocatedWithMalloc
protected

Definition at line 382 of file FastAllocator.h.

◆ AllocatedWithMallocCount

unsigned FastAllocatorGeneral::AllocatedWithMallocCount
protected

Definition at line 383 of file FastAllocator.h.

◆ allocators

FastFixedAllocator FastAllocatorGeneral::allocators[MAX_ALLOC_SIZE/ALLOC_STEP]
protected

Definition at line 378 of file FastAllocator.h.

◆ CriticalSections

FastCriticalSectionClass FastAllocatorGeneral::CriticalSections[MAX_ALLOC_SIZE/ALLOC_STEP]
protected

Definition at line 379 of file FastAllocator.h.

◆ MemoryLeakLogEnabled

bool FastAllocatorGeneral::MemoryLeakLogEnabled
protected

Definition at line 380 of file FastAllocator.h.


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