Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
ObjectPoolClass< T, BLOCK_SIZE > Class Template Reference

#include <mempool.h>

Public Member Functions

 ObjectPoolClass (void)
 
 ~ObjectPoolClass (void)
 
T * Allocate_Object (void)
 
void Free_Object (T *obj)
 
T * Allocate_Object_Memory (void)
 
void Free_Object_Memory (T *obj)
 

Protected Attributes

T * FreeListHead
 
uint32BlockListHead
 
int FreeObjectCount
 
int TotalObjectCount
 
FastCriticalSectionClass ObjectPoolCS
 

Detailed Description

template<class T, int BLOCK_SIZE = 64>
class ObjectPoolClass< T, BLOCK_SIZE >

Definition at line 78 of file mempool.h.

Constructor & Destructor Documentation

◆ ObjectPoolClass()

template<class T, int BLOCK_SIZE>
ObjectPoolClass< T, BLOCK_SIZE >::ObjectPoolClass ( void )

Definition at line 178 of file mempool.h.

◆ ~ObjectPoolClass()

template<class T, int BLOCK_SIZE>
ObjectPoolClass< T, BLOCK_SIZE >::~ObjectPoolClass ( void )

Definition at line 200 of file mempool.h.

Member Function Documentation

◆ Allocate_Object()

template<class T, int BLOCK_SIZE>
T * ObjectPoolClass< T, BLOCK_SIZE >::Allocate_Object ( void )

Definition at line 233 of file mempool.h.

◆ Allocate_Object_Memory()

template<class T, int BLOCK_SIZE>
T * ObjectPoolClass< T, BLOCK_SIZE >::Allocate_Object_Memory ( void )

Definition at line 277 of file mempool.h.

◆ Free_Object()

template<class T, int BLOCK_SIZE>
void ObjectPoolClass< T, BLOCK_SIZE >::Free_Object ( T * obj)

Definition at line 255 of file mempool.h.

◆ Free_Object_Memory()

template<class T, int BLOCK_SIZE>
void ObjectPoolClass< T, BLOCK_SIZE >::Free_Object_Memory ( T * obj)

Definition at line 321 of file mempool.h.

Member Data Documentation

◆ BlockListHead

template<class T, int BLOCK_SIZE = 64>
uint32* ObjectPoolClass< T, BLOCK_SIZE >::BlockListHead
protected

Definition at line 94 of file mempool.h.

◆ FreeListHead

template<class T, int BLOCK_SIZE = 64>
T* ObjectPoolClass< T, BLOCK_SIZE >::FreeListHead
protected

Definition at line 93 of file mempool.h.

◆ FreeObjectCount

template<class T, int BLOCK_SIZE = 64>
int ObjectPoolClass< T, BLOCK_SIZE >::FreeObjectCount
protected

Definition at line 95 of file mempool.h.

◆ ObjectPoolCS

template<class T, int BLOCK_SIZE = 64>
FastCriticalSectionClass ObjectPoolClass< T, BLOCK_SIZE >::ObjectPoolCS
protected

Definition at line 97 of file mempool.h.

◆ TotalObjectCount

template<class T, int BLOCK_SIZE = 64>
int ObjectPoolClass< T, BLOCK_SIZE >::TotalObjectCount
protected

Definition at line 96 of file mempool.h.


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