defalloc.h File Reference

(r1785/r751)

#include <limits.h>
#include "fixmem.h"
#include "errors.h"

Go to the source code of this file.

Classes

class  Allocator< T >
class  Allocator< void >

Defines

#define new   CAM_DEBUG_NEW

Functions

template<class T>
T * Allocate (INT32 size, T *)
template<class T>
void Deallocate (T *buffer)
template<class T>
void Destroy (T *pointer)
void Destroy (char *)
void Destroy (unsigned char *)
void Destroy (short *)
void Destroy (unsigned short *)
void Destroy (INT32 *)
void Destroy (UINT32 *)
void Destroy (float *)
void Destroy (double *)
void Destroy (char **)
void Destroy (unsigned char **)
void Destroy (short **)
void Destroy (unsigned short **)
void Destroy (INT32 **)
void Destroy (UINT32 **)
void Destroy (float **)
void Destroy (double **)
void Destroy (char *, char *)
void Destroy (unsigned char *, unsigned char *)
void Destroy (short *, short *)
void Destroy (unsigned short *, unsigned short *)
void Destroy (INT32 *, INT32 *)
void Destroy (UINT32 *, UINT32 *)
void Destroy (float *, float *)
void Destroy (double *, double *)
void Destroy (char **, char **)
void Destroy (unsigned char **, unsigned char **)
void Destroy (short **, short **)
void Destroy (unsigned short **, unsigned short **)
void Destroy (INT32 **, INT32 **)
void Destroy (UINT32 **, UINT32 **)
void Destroy (float **, float **)
void Destroy (double **, double **)
template<class T1, class T2>
void Construct (T1 *p, const T2 &value)


Define Documentation

#define new   CAM_DEBUG_NEW
 

Definition at line 127 of file defalloc.h.


Function Documentation

template<class T>
T* Allocate INT32  size,
T * 
[inline]
 

Definition at line 130 of file defalloc.h.

00131 {
00132     T* tmp = (T*)CCMalloc((UINT32)(size * sizeof(T)));
00133     ERROR2IF(tmp == 0, NULL, "Out of Memory");
00134     return tmp;
00135 }

template<class T1, class T2>
void Construct T1 *  p,
const T2 &  value
[inline]
 

Definition at line 192 of file defalloc.h.

00193 {
00194     *p = T1(value);
00195 }

template<class T>
void Deallocate T *  buffer  )  [inline]
 

Definition at line 146 of file defalloc.h.

00147 {
00148     ::operator delete(buffer);
00149 }

void Destroy double **  ,
double ** 
[inline]
 

Definition at line 189 of file defalloc.h.

00189 {}

void Destroy float **  ,
float ** 
[inline]
 

Definition at line 188 of file defalloc.h.

00188 {}

void Destroy UINT32 **  ,
UINT32 ** 
[inline]
 

Definition at line 187 of file defalloc.h.

00187 {}

void Destroy INT32 **  ,
INT32 ** 
[inline]
 

Definition at line 186 of file defalloc.h.

00186 {}

void Destroy unsigned short **  ,
unsigned short ** 
[inline]
 

Definition at line 185 of file defalloc.h.

00185 {}

void Destroy short **  ,
short ** 
[inline]
 

Definition at line 184 of file defalloc.h.

00184 {}

void Destroy unsigned char **  ,
unsigned char ** 
[inline]
 

Definition at line 183 of file defalloc.h.

00183 {}

void Destroy char **  ,
char ** 
[inline]
 

Definition at line 182 of file defalloc.h.

00182 {}

void Destroy double *  ,
double * 
[inline]
 

Definition at line 181 of file defalloc.h.

00181 {}

void Destroy float *  ,
float * 
[inline]
 

Definition at line 180 of file defalloc.h.

00180 {}

void Destroy UINT32 ,
UINT32
[inline]
 

Definition at line 179 of file defalloc.h.

00179 {}

void Destroy INT32 *  ,
INT32 * 
[inline]
 

Definition at line 178 of file defalloc.h.

00178 {}

void Destroy unsigned short *  ,
unsigned short * 
[inline]
 

Definition at line 177 of file defalloc.h.

00177 {}

void Destroy short *  ,
short * 
[inline]
 

Definition at line 176 of file defalloc.h.

00176 {}

void Destroy unsigned char *  ,
unsigned char * 
[inline]
 

Definition at line 175 of file defalloc.h.

00175 {}

void Destroy char *  ,
char * 
[inline]
 

Definition at line 174 of file defalloc.h.

00174 {}

void Destroy double **   )  [inline]
 

Definition at line 172 of file defalloc.h.

00172 {}

void Destroy float **   )  [inline]
 

Definition at line 171 of file defalloc.h.

00171 {}

void Destroy UINT32 **   )  [inline]
 

Definition at line 170 of file defalloc.h.

00170 {}

void Destroy INT32 **   )  [inline]
 

Definition at line 169 of file defalloc.h.

00169 {}

void Destroy unsigned short **   )  [inline]
 

Definition at line 168 of file defalloc.h.

00168 {}

void Destroy short **   )  [inline]
 

Definition at line 167 of file defalloc.h.

00167 {}

void Destroy unsigned char **   )  [inline]
 

Definition at line 166 of file defalloc.h.

00166 {}

void Destroy char **   )  [inline]
 

Definition at line 165 of file defalloc.h.

00165 {}

void Destroy double *   )  [inline]
 

Definition at line 164 of file defalloc.h.

00164 {}

void Destroy float *   )  [inline]
 

Definition at line 163 of file defalloc.h.

00163 {}

void Destroy UINT32  )  [inline]
 

Definition at line 162 of file defalloc.h.

00162 {}

void Destroy INT32 *   )  [inline]
 

Definition at line 161 of file defalloc.h.

00161 {}

void Destroy unsigned short *   )  [inline]
 

Definition at line 160 of file defalloc.h.

00160 {}

void Destroy short *   )  [inline]
 

Definition at line 159 of file defalloc.h.

00159 {}

void Destroy unsigned char *   )  [inline]
 

Definition at line 158 of file defalloc.h.

00158 {}

void Destroy char *   )  [inline]
 

Definition at line 157 of file defalloc.h.

00157 {}

template<class T>
void Destroy T *  pointer  )  [inline]
 

Definition at line 152 of file defalloc.h.

00153 {
00154     pointer->~T();
00155 }


Generated on Sat Nov 10 03:49:08 2007 for Camelot by  doxygen 1.4.4