UT_SmallAlloc Class Reference

#include <UT_SmallAlloc.h>

List of all members.

Public Member Functions

 UT_SmallAlloc (size_t page_size)
 ~UT_SmallAlloc ()
void * alloc (size_t size)
void clear ()
int64 getMemoryUsage () const


Detailed Description

UT_SmallAlloc manages the allocation of small (and possibly variable sized) blocks of memory. Memory is stored in pages of a specified size with one wasted pointer at the beginning of the block storing a link to the next page. Memory is deallocated on destruction.

Definition at line 30 of file UT_SmallAlloc.h.


Constructor & Destructor Documentation

UT_SmallAlloc::UT_SmallAlloc ( size_t  page_size  ) 

UT_SmallAlloc::~UT_SmallAlloc (  ) 


Member Function Documentation

void* UT_SmallAlloc::alloc ( size_t  size  ) 

void UT_SmallAlloc::clear (  ) 

int64 UT_SmallAlloc::getMemoryUsage ( void   )  const [inline]

Definition at line 40 of file UT_SmallAlloc.h.


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

Generated on Mon Jan 28 00:30:17 2013 for HDK by  doxygen 1.5.9