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

#include <Heap.h>

Classes

struct  block_s
 
struct  element_s
 

Public Member Functions

 idBlockAlloc (void)
 
 ~idBlockAlloc (void)
 
void Shutdown (void)
 
typeAlloc (void)
 
void Free (type *element)
 
int GetTotalCount (void) const
 
int GetAllocCount (void) const
 
int GetFreeCount (void) const
 

Private Types

typedef struct
idBlockAlloc::element_s 
element_t
 
typedef struct
idBlockAlloc::block_s 
block_t
 

Private Attributes

block_tblocks
 
element_tfree
 
int total
 
int active
 

Detailed Description

template<class type, int blockSize>
class idBlockAlloc< type, blockSize >

Definition at line 154 of file Heap.h.

Member Typedef Documentation

template<class type, int blockSize>
typedef struct idBlockAlloc::block_s idBlockAlloc< type, blockSize >::block_t
private
template<class type, int blockSize>
typedef struct idBlockAlloc::element_s idBlockAlloc< type, blockSize >::element_t
private

Constructor & Destructor Documentation

template<class type , int blockSize>
idBlockAlloc< type, blockSize >::idBlockAlloc ( void  )

Definition at line 185 of file Heap.h.

template<class type , int blockSize>
idBlockAlloc< type, blockSize >::~idBlockAlloc ( void  )

Definition at line 192 of file Heap.h.

Member Function Documentation

template<class type , int blockSize>
type * idBlockAlloc< type, blockSize >::Alloc ( void  )

Definition at line 197 of file Heap.h.

template<class type, int blockSize>
void idBlockAlloc< type, blockSize >::Free ( type element)

Definition at line 216 of file Heap.h.

template<class type, int blockSize>
int idBlockAlloc< type, blockSize >::GetAllocCount ( void  ) const
inline

Definition at line 165 of file Heap.h.

template<class type, int blockSize>
int idBlockAlloc< type, blockSize >::GetFreeCount ( void  ) const
inline

Definition at line 166 of file Heap.h.

template<class type, int blockSize>
int idBlockAlloc< type, blockSize >::GetTotalCount ( void  ) const
inline

Definition at line 164 of file Heap.h.

template<class type , int blockSize>
void idBlockAlloc< type, blockSize >::Shutdown ( void  )

Definition at line 224 of file Heap.h.

Member Data Documentation

template<class type, int blockSize>
int idBlockAlloc< type, blockSize >::active
private

Definition at line 181 of file Heap.h.

template<class type, int blockSize>
block_t* idBlockAlloc< type, blockSize >::blocks
private

Definition at line 178 of file Heap.h.

template<class type, int blockSize>
element_t* idBlockAlloc< type, blockSize >::free
private

Definition at line 179 of file Heap.h.

template<class type, int blockSize>
int idBlockAlloc< type, blockSize >::total
private

Definition at line 180 of file Heap.h.


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