include/MemoryFunctions.hpp File Reference

contains some template wrappers to make malloc easier and better to work with. More...

#include <new>
#include <unistd.h>

Functions

template<typename T >
T * DSOL::allocMem (const T value=T(), const uint length=1)
 a template function to allocate memory.
template<typename T >
T * DSOL::allocMemNoError (const T value=T(), const uint length=1)
 a template function to allocate memory.
template<typename T >
T * DSOL::allocRawMem (const uint length=1)
 a template function to allocate raw memory.
template<typename T >
T * DSOL::allocRawMemNoError (const uint length=1)
 a template function to allocate raw memory.
template<typename T >
void DSOL::deallocMem (T *&oldMemPointer, const uint oldLength=1)
 a template function to deallocate memory.
template<typename T >
void DSOL::deallocMemNoError (T *&oldMemPointer, const uint oldLength)
 a template function to deallocate memory.
template<typename T >
void DSOL::deallocRawMem (T *&oldMemPointer)
 a template function to deallocate raw memory.
template<typename T >
void DSOL::deallocRawMemNoError (T *&oldMemPointer)
 a template function to deallocate raw memory.
template<typename T >
T * DSOL::reallocMem (T *oldMemPointer, const uint oldLength, const uint length=1, const T value=T())
 a template function to reallocate memory.
template<typename T >
T * DSOL::reallocMemNoError (T *oldMemPointer, const uint oldLength, const T value=T(), const uint length=1)
 a template function to reallocate memory.
template<typename T >
T * DSOL::reallocRawMem (T *oldMemPointer, const uint length=1)
 a template function to reallocate raw memory.
template<typename T >
T * DSOL::reallocRawMemNoError (T *oldMemPointer, const uint length=1)
 a template function to reallocate raw memory.

Variables

u8 __eheap_end []
u8 __end__ []


Detailed Description

contains some template wrappers to make malloc easier and better to work with.


Generated on Thu Aug 6 18:17:49 2009 for DSOL by  doxygen 1.5.8