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

#include <FastAllocator.h>

Classes

struct  Chunk
 
struct  Link
 

Public Member Functions

 FastFixedAllocator (unsigned int n=0)
 
 ~FastFixedAllocator ()
 
void Init (unsigned int n)
 
void * Alloc ()
 
void Free (void *pAlloc)
 
unsigned Get_Heap_Size () const
 
unsigned Get_Allocated_Size () const
 
unsigned Get_Allocation_Count () const
 

Protected Member Functions

void grow ()
 

Protected Attributes

Chunkchunks
 
unsigned int esize
 
unsigned TotalHeapSize
 
unsigned TotalAllocatedSize
 
unsigned TotalAllocationCount
 
Linkhead
 

Detailed Description

Definition at line 211 of file FastAllocator.h.

Constructor & Destructor Documentation

◆ FastFixedAllocator()

WWINLINE FastFixedAllocator::FastFixedAllocator ( unsigned int n = 0)

Definition at line 288 of file FastAllocator.h.

◆ ~FastFixedAllocator()

WWINLINE FastFixedAllocator::~FastFixedAllocator ( )

Definition at line 301 of file FastAllocator.h.

Member Function Documentation

◆ Alloc()

WWINLINE void * FastFixedAllocator::Alloc ( )

Definition at line 255 of file FastAllocator.h.

◆ Free()

WWINLINE void FastFixedAllocator::Free ( void * pAlloc)

Definition at line 273 of file FastAllocator.h.

◆ Get_Allocated_Size()

unsigned FastFixedAllocator::Get_Allocated_Size ( ) const
inline

Definition at line 222 of file FastAllocator.h.

◆ Get_Allocation_Count()

unsigned FastFixedAllocator::Get_Allocation_Count ( ) const
inline

Definition at line 223 of file FastAllocator.h.

◆ Get_Heap_Size()

unsigned FastFixedAllocator::Get_Heap_Size ( ) const
inline

Definition at line 221 of file FastAllocator.h.

◆ grow()

WWINLINE void FastFixedAllocator::grow ( )
protected

Definition at line 328 of file FastAllocator.h.

◆ Init()

WWINLINE void FastFixedAllocator::Init ( unsigned int n)

Definition at line 317 of file FastAllocator.h.

Member Data Documentation

◆ chunks

Chunk* FastFixedAllocator::chunks
protected

Definition at line 240 of file FastAllocator.h.

◆ esize

unsigned int FastFixedAllocator::esize
protected

Definition at line 241 of file FastAllocator.h.

◆ head

Link* FastFixedAllocator::head
protected

Definition at line 245 of file FastAllocator.h.

◆ TotalAllocatedSize

unsigned FastFixedAllocator::TotalAllocatedSize
protected

Definition at line 243 of file FastAllocator.h.

◆ TotalAllocationCount

unsigned FastFixedAllocator::TotalAllocationCount
protected

Definition at line 244 of file FastAllocator.h.

◆ TotalHeapSize

unsigned FastFixedAllocator::TotalHeapSize
protected

Definition at line 242 of file FastAllocator.h.


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