MemoryArena Class Reference

#include <memory.h>

List of all members.

Public Member Functions

 MemoryArena (u_int bs=32768)
 ~MemoryArena ()
void * Alloc (u_int sz)
void FreeAll ()

Private Attributes

u_int curBlockPos
u_int blockSize
char * currentBlock
vector< char * > usedBlocks
vector< char * > availableBlocks


Detailed Description

Definition at line 73 of file memory.h.


Constructor & Destructor Documentation

MemoryArena::MemoryArena ( u_int  bs = 32768  )  [inline]

Definition at line 76 of file memory.h.

References lux::AllocAligned(), blockSize, curBlockPos, and currentBlock.

MemoryArena::~MemoryArena (  )  [inline]

Definition at line 81 of file memory.h.

References availableBlocks, currentBlock, lux::FreeAligned(), and usedBlocks.


Member Function Documentation

void* MemoryArena::Alloc ( u_int  sz  )  [inline]

void MemoryArena::FreeAll (  )  [inline]

Definition at line 109 of file memory.h.

References availableBlocks, curBlockPos, and usedBlocks.


Member Data Documentation

vector<char *> MemoryArena::availableBlocks [private]

Definition at line 120 of file memory.h.

Referenced by Alloc(), FreeAll(), and ~MemoryArena().

Definition at line 118 of file memory.h.

Referenced by Alloc(), and MemoryArena().

Definition at line 118 of file memory.h.

Referenced by Alloc(), FreeAll(), and MemoryArena().

char* MemoryArena::currentBlock [private]

Definition at line 119 of file memory.h.

Referenced by Alloc(), MemoryArena(), and ~MemoryArena().

vector<char *> MemoryArena::usedBlocks [private]

Definition at line 120 of file memory.h.

Referenced by Alloc(), FreeAll(), and ~MemoryArena().


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

Generated on Mon May 18 07:16:14 2009 for lux by  doxygen 1.5.8