doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Functions
Heap.h File Reference
#include "containers/BTree.h"

Go to the source code of this file.

Classes

struct  memoryStats_t
 
class  idBlockAlloc< type, blockSize >
 
struct  idBlockAlloc< type, blockSize >::element_s
 
struct  idBlockAlloc< type, blockSize >::block_s
 
class  idDynamicAlloc< type, baseBlockSize, minBlockSize >
 
class  idDynamicBlock< type >
 
class  idDynamicBlockAlloc< type, baseBlockSize, minBlockSize >
 

Functions

void Mem_Init (void)
 
void Mem_Shutdown (void)
 
void Mem_EnableLeakTest (const char *name)
 
void Mem_ClearFrameStats (void)
 
void Mem_GetFrameStats (memoryStats_t &allocs, memoryStats_t &frees)
 
void Mem_GetStats (memoryStats_t &stats)
 
void Mem_Dump_f (const class idCmdArgs &args)
 
void Mem_DumpCompressed_f (const class idCmdArgs &args)
 
void Mem_AllocDefragBlock (void)
 
voidMem_Alloc (const int size)
 
voidMem_ClearedAlloc (const int size)
 
void Mem_Free (void *ptr)
 
char * Mem_CopyString (const char *in)
 
voidMem_Alloc16 (const int size)
 
void Mem_Free16 (void *ptr)
 

Function Documentation

void* Mem_Alloc ( const int  size)

Definition at line 1067 of file Heap.cpp.

void* Mem_Alloc16 ( const int  size)

Definition at line 1107 of file Heap.cpp.

void Mem_AllocDefragBlock ( void  )

Definition at line 1160 of file Heap.cpp.

void* Mem_ClearedAlloc ( const int  size)

Definition at line 1149 of file Heap.cpp.

void Mem_ClearFrameStats ( void  )

Definition at line 996 of file Heap.cpp.

char* Mem_CopyString ( const char *  in)

Definition at line 1169 of file Heap.cpp.

void Mem_Dump_f ( const class idCmdArgs args)
void Mem_DumpCompressed_f ( const class idCmdArgs args)
void Mem_EnableLeakTest ( const char *  name)

Definition at line 1219 of file Heap.cpp.

void Mem_Free ( void ptr)

Definition at line 1087 of file Heap.cpp.

void Mem_Free16 ( void ptr)

Definition at line 1128 of file Heap.cpp.

void Mem_GetFrameStats ( memoryStats_t allocs,
memoryStats_t frees 
)

Definition at line 1008 of file Heap.cpp.

void Mem_GetStats ( memoryStats_t stats)

Definition at line 1018 of file Heap.cpp.

void Mem_Init ( void  )

Definition at line 1198 of file Heap.cpp.

void Mem_Shutdown ( void  )

Definition at line 1208 of file Heap.cpp.