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

#include <FastAllocator.h>

Public Member Functions

 StackAllocator ()
 
 ~StackAllocator ()
 
T * New (unsigned nCount)
 
void Delete (T *pT)
 

Protected Attributes

int mnAllocCount
 
T * mpTHeap
 
char mTArray [nStackCount *sizeof(T)]
 

Detailed Description

template<class T, int nStackCount, int bConstruct = 1>
class StackAllocator< T, nStackCount, bConstruct >

Definition at line 137 of file FastAllocator.h.

Constructor & Destructor Documentation

◆ StackAllocator()

template<class T, int nStackCount, int bConstruct = 1>
StackAllocator< T, nStackCount, bConstruct >::StackAllocator ( )
inline

Definition at line 139 of file FastAllocator.h.

◆ ~StackAllocator()

template<class T, int nStackCount, int bConstruct = 1>
StackAllocator< T, nStackCount, bConstruct >::~StackAllocator ( )
inline

Definition at line 140 of file FastAllocator.h.

Member Function Documentation

◆ Delete()

template<class T, int nStackCount, int bConstruct = 1>
void StackAllocator< T, nStackCount, bConstruct >::Delete ( T * pT)
inline

Definition at line 177 of file FastAllocator.h.

◆ New()

template<class T, int nStackCount, int bConstruct = 1>
T * StackAllocator< T, nStackCount, bConstruct >::New ( unsigned nCount)
inline

Definition at line 157 of file FastAllocator.h.

Member Data Documentation

◆ mnAllocCount

template<class T, int nStackCount, int bConstruct = 1>
int StackAllocator< T, nStackCount, bConstruct >::mnAllocCount
protected

Definition at line 199 of file FastAllocator.h.

◆ mpTHeap

template<class T, int nStackCount, int bConstruct = 1>
T* StackAllocator< T, nStackCount, bConstruct >::mpTHeap
protected

Definition at line 200 of file FastAllocator.h.

◆ mTArray

template<class T, int nStackCount, int bConstruct = 1>
char StackAllocator< T, nStackCount, bConstruct >::mTArray[nStackCount *sizeof(T)]
protected

Definition at line 201 of file FastAllocator.h.


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