daeMemorySystem Class Reference

#include <daeMemorySystem.h>

List of all members.

Static Public Member Functions

static DLLSPEC daeRawRef alloc (daeString pool, size_t n)
static DLLSPEC void dealloc (daeString pool, daeRawRef mem)

Detailed Description

The daeMemorySystem class is a simple wrapper for memory operations. Every allocation passes a string pool name such that in the future different pools can be used based on allocation type. Currently the system is just a pass-through to system malloc.

Definition at line 20 of file daeMemorySystem.h.


Member Function Documentation

static DLLSPEC daeRawRef daeMemorySystem::alloc ( daeString  pool,
size_t  n 
) [static]

Provides a wrapper malloc with pool field.

Parameters:
pool String name of the pool to use for this allocation.
n Number of bytes to allocate.
Returns:
Returns the memory allocated if successful, or NULL if not.
static DLLSPEC void daeMemorySystem::dealloc ( daeString  pool,
daeRawRef  mem 
) [static]

Provides a wrapper free with pool argument.

Parameters:
pool Pool the memory should be freed from.
mem Memory to be freed.

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


colladadom
Author(s): Du Hung Hou, Khronos.org, Marcus Barnes, Greg Corson, Herbert Law, Sebastian Schwarz, Steven Thomas, John Hsu (ros package), Tim Field (ros package)
autogenerated on Fri Jan 11 09:29:14 2013