#include <pbrt.h>
Public Member Functions | |
MemoryArena (u_int bs=32768) | |
~MemoryArena () | |
void * | Alloc (u_int sz) |
void | FreeAll () |
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 |
Definition at line 396 of file pbrt.h.
MemoryArena::MemoryArena | ( | u_int | bs = 32768 |
) | [inline] |
MemoryArena::~MemoryArena | ( | ) | [inline] |
void* MemoryArena::Alloc | ( | u_int | sz | ) | [inline] |
Definition at line 411 of file pbrt.h.
References AllocAligned().
Referenced by KdAccelNode::initLeaf().
u_int MemoryArena::curBlockPos [private] |
u_int MemoryArena::blockSize [private] |
char * MemoryArena::currentBlock [private] |
vector< char * > MemoryArena::usedBlocks [private] |
vector< char * > MemoryArena::availableBlocks [private] |