COLLADA 1.4 DOM: daeMemorySystem Class Reference

COLLADA

daeMemorySystem Class Reference

#include <daeMemorySystem.h>

List of all members.


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.

Static Public Member Functions

static daeRawRef malloc (daeString pool, size_t n)
 Provides a wrapper malloc with pool field.
static void free (daeString pool, daeRawRef mem)
 Provides a wrapper free with pool argument.

Member Function Documentation

void daeMemorySystem::free 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.

daeRawRef daeMemorySystem::malloc 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.


The documentation for this class was generated from the following files:
  • C:/SVN_wf/COLLADA_DOM/include/dae/daeMemorySystem.h
  • C:/SVN_wf/COLLADA_DOM/src/dae/daeMemorySystem.cpp

©2005 Sony Computer Entertainment Inc.. All Rights Reserved.
Generated on Fri Feb 10 16:47:03 2006 for COLLADA 1.4 DOM by doxygen 1.4.3