Blender V2.61 - r43446
Public Member Functions | Public Attributes | Protected Attributes

MemArena Class Reference

#include <util_memarena.h>

List of all members.

Public Member Functions

 MemArena (bool use_calloc=true, size_t buffer_size=(1<< 14))
 ~MemArena ()
void * alloc (size_t size)

Public Attributes

unsigned char * curbuf
int bufsize
int cursize
const char * name
int use_calloc
int align
LinkNodebufs

Protected Attributes

bool use_calloc
size_t buffer_size
list< uint8_t * > buffers
uint8_t * last_buffer
size_t last_left

Detailed Description

Definition at line 40 of file BLI_memarena.c.


Constructor & Destructor Documentation

CCL_NAMESPACE_BEGIN MemArena::MemArena ( bool  use_calloc = true,
size_t  buffer_size = (1<<14) 
)

Definition at line 25 of file util_memarena.cpp.

References buffer_size, last_buffer, last_left, NULL, and use_calloc.

MemArena::~MemArena ( )

Definition at line 34 of file util_memarena.cpp.

References buffers.


Member Function Documentation

void * MemArena::alloc ( size_t  size)

Definition at line 40 of file util_memarena.cpp.

References buffer_size, buffers, last_buffer, last_left, size(), and use_calloc.


Member Data Documentation

Definition at line 46 of file BLI_memarena.c.

Referenced by BLI_memarena_alloc(), BLI_memarena_new(), and BLI_memarena_use_align().

size_t MemArena::buffer_size [protected]

Definition at line 38 of file util_memarena.h.

Referenced by alloc(), and MemArena().

list<uint8_t*> MemArena::buffers [protected]

Definition at line 40 of file util_memarena.h.

Referenced by alloc(), and ~MemArena().

Definition at line 48 of file BLI_memarena.c.

Referenced by BLI_memarena_alloc(), and BLI_memarena_free().

Definition at line 42 of file BLI_memarena.c.

Referenced by BLI_memarena_alloc(), and BLI_memarena_new().

unsigned char* MemArena::curbuf

Definition at line 41 of file BLI_memarena.c.

Referenced by BLI_memarena_alloc().

Definition at line 42 of file BLI_memarena.c.

Referenced by BLI_memarena_alloc().

uint8_t* MemArena::last_buffer [protected]

Definition at line 41 of file util_memarena.h.

Referenced by alloc(), and MemArena().

size_t MemArena::last_left [protected]

Definition at line 42 of file util_memarena.h.

Referenced by alloc(), and MemArena().

const char* MemArena::name

Definition at line 43 of file BLI_memarena.c.

Referenced by BLI_memarena_alloc(), and BLI_memarena_new().

bool MemArena::use_calloc [protected]

Definition at line 37 of file util_memarena.h.


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