doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
idDynamicAlloc< type, baseBlockSize, minBlockSize > Class Template Reference

#include <Heap.h>

Public Member Functions

 idDynamicAlloc (void)
 
 ~idDynamicAlloc (void)
 
void Init (void)
 
void Shutdown (void)
 
void SetFixedBlocks (int numBlocks)
 
void SetLockMemory (bool lock)
 
void FreeEmptyBaseBlocks (void)
 
typeAlloc (const int num)
 
typeResize (type *ptr, const int num)
 
void Free (type *ptr)
 
const char * CheckMemory (const type *ptr) const
 
int GetNumBaseBlocks (void) const
 
int GetBaseBlockMemory (void) const
 
int GetNumUsedBlocks (void) const
 
int GetUsedBlockMemory (void) const
 
int GetNumFreeBlocks (void) const
 
int GetFreeBlockMemory (void) const
 
int GetNumEmptyBaseBlocks (void) const
 

Private Member Functions

void Clear (void)
 

Private Attributes

int numUsedBlocks
 
int usedBlockMemory
 
int numAllocs
 
int numResizes
 
int numFrees
 

Detailed Description

template<class type, int baseBlockSize, int minBlockSize>
class idDynamicAlloc< type, baseBlockSize, minBlockSize >

Definition at line 248 of file Heap.h.

Constructor & Destructor Documentation

template<class type , int baseBlockSize, int minBlockSize>
idDynamicAlloc< type, baseBlockSize, minBlockSize >::idDynamicAlloc ( void  )

Definition at line 284 of file Heap.h.

template<class type , int baseBlockSize, int minBlockSize>
idDynamicAlloc< type, baseBlockSize, minBlockSize >::~idDynamicAlloc ( void  )

Definition at line 289 of file Heap.h.

Member Function Documentation

template<class type , int baseBlockSize, int minBlockSize>
type * idDynamicAlloc< type, baseBlockSize, minBlockSize >::Alloc ( const int  num)

Definition at line 303 of file Heap.h.

template<class type , int baseBlockSize, int minBlockSize>
const char * idDynamicAlloc< type, baseBlockSize, minBlockSize >::CheckMemory ( const type ptr) const

Definition at line 341 of file Heap.h.

template<class type , int baseBlockSize, int minBlockSize>
void idDynamicAlloc< type, baseBlockSize, minBlockSize >::Clear ( void  )
private

Definition at line 346 of file Heap.h.

template<class type , int baseBlockSize, int minBlockSize>
void idDynamicAlloc< type, baseBlockSize, minBlockSize >::Free ( type ptr)

Definition at line 332 of file Heap.h.

template<class type, int baseBlockSize, int minBlockSize>
void idDynamicAlloc< type, baseBlockSize, minBlockSize >::FreeEmptyBaseBlocks ( void  )
inline

Definition at line 257 of file Heap.h.

template<class type, int baseBlockSize, int minBlockSize>
int idDynamicAlloc< type, baseBlockSize, minBlockSize >::GetBaseBlockMemory ( void  ) const
inline

Definition at line 265 of file Heap.h.

template<class type, int baseBlockSize, int minBlockSize>
int idDynamicAlloc< type, baseBlockSize, minBlockSize >::GetFreeBlockMemory ( void  ) const
inline

Definition at line 269 of file Heap.h.

template<class type, int baseBlockSize, int minBlockSize>
int idDynamicAlloc< type, baseBlockSize, minBlockSize >::GetNumBaseBlocks ( void  ) const
inline

Definition at line 264 of file Heap.h.

template<class type, int baseBlockSize, int minBlockSize>
int idDynamicAlloc< type, baseBlockSize, minBlockSize >::GetNumEmptyBaseBlocks ( void  ) const
inline

Definition at line 270 of file Heap.h.

template<class type, int baseBlockSize, int minBlockSize>
int idDynamicAlloc< type, baseBlockSize, minBlockSize >::GetNumFreeBlocks ( void  ) const
inline

Definition at line 268 of file Heap.h.

template<class type, int baseBlockSize, int minBlockSize>
int idDynamicAlloc< type, baseBlockSize, minBlockSize >::GetNumUsedBlocks ( void  ) const
inline

Definition at line 266 of file Heap.h.

template<class type, int baseBlockSize, int minBlockSize>
int idDynamicAlloc< type, baseBlockSize, minBlockSize >::GetUsedBlockMemory ( void  ) const
inline

Definition at line 267 of file Heap.h.

template<class type , int baseBlockSize, int minBlockSize>
void idDynamicAlloc< type, baseBlockSize, minBlockSize >::Init ( void  )

Definition at line 294 of file Heap.h.

template<class type , int baseBlockSize, int minBlockSize>
type * idDynamicAlloc< type, baseBlockSize, minBlockSize >::Resize ( type ptr,
const int  num 
)

Definition at line 314 of file Heap.h.

template<class type, int baseBlockSize, int minBlockSize>
void idDynamicAlloc< type, baseBlockSize, minBlockSize >::SetFixedBlocks ( int  numBlocks)
inline

Definition at line 255 of file Heap.h.

template<class type, int baseBlockSize, int minBlockSize>
void idDynamicAlloc< type, baseBlockSize, minBlockSize >::SetLockMemory ( bool  lock)
inline

Definition at line 256 of file Heap.h.

template<class type , int baseBlockSize, int minBlockSize>
void idDynamicAlloc< type, baseBlockSize, minBlockSize >::Shutdown ( void  )

Definition at line 298 of file Heap.h.

Member Data Documentation

template<class type, int baseBlockSize, int minBlockSize>
int idDynamicAlloc< type, baseBlockSize, minBlockSize >::numAllocs
private

Definition at line 276 of file Heap.h.

template<class type, int baseBlockSize, int minBlockSize>
int idDynamicAlloc< type, baseBlockSize, minBlockSize >::numFrees
private

Definition at line 278 of file Heap.h.

template<class type, int baseBlockSize, int minBlockSize>
int idDynamicAlloc< type, baseBlockSize, minBlockSize >::numResizes
private

Definition at line 277 of file Heap.h.

template<class type, int baseBlockSize, int minBlockSize>
int idDynamicAlloc< type, baseBlockSize, minBlockSize >::numUsedBlocks
private

Definition at line 273 of file Heap.h.

template<class type, int baseBlockSize, int minBlockSize>
int idDynamicAlloc< type, baseBlockSize, minBlockSize >::usedBlockMemory
private

Definition at line 274 of file Heap.h.


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