Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

alloc.h File Reference

#include <iostream.h>
#include <stdlib.h>

Go to the source code of this file.

Defines

#define GLOBAL_VAR_FOR_ALLOCATION   my_memory_allocated
#define GLOBAL_VAR_FOR_DELETION   my_memory_deleted
#define IS_ZERO(x)   (fabs(x) < 1.0e-8)

Functions

void print_malloc (char *filename, int lineno, int mem_size)
void fatal_malloc (char *filename, int lineno, int mem_size)
void myprintf (char *fmt,...)
double TotalMemoryAllocated ()
double TotalMemoryDeleted ()
double TotalMemoryConsumed ()
template<class Etype> void MY_MALLOC (Etype **ptr, int n=1)
template<class Etype> void ALLOC1D (Etype **ptr, int m=1)
template<class Etype> void ALLOC2D (Etype ***ptr, int m, int n)
template<class Etype> void ALLOC3D (Etype ****ptr, int m, int n, int o)
template<class Etype> void ALLOC4D (Etype *****ptr, int m, int n, int o, int p)
template<class Etype> void FREE1D (Etype **ptr, int m=1)
template<class Etype> void FREE2D (Etype ***ptr, int m, int n)
template<class Etype> void FREE3D (Etype ****ptr, int m, int n, int o)
template<class Etype> void FREE4D (Etype *****ptr, int m, int n, int o, int p)

Variables

double mem_consumed


Define Documentation

#define GLOBAL_VAR_FOR_ALLOCATION   my_memory_allocated
 

#define GLOBAL_VAR_FOR_DELETION   my_memory_deleted
 

#define IS_ZERO      (fabs(x) < 1.0e-8)
 


Function Documentation

template<class Etype>
void ALLOC1D Etype **    ptr,
int    m = 1
[inline]
 

template<class Etype>
void ALLOC2D Etype ***    ptr,
int    m,
int    n
[inline]
 

template<class Etype>
void ALLOC3D Etype ****    ptr,
int    m,
int    n,
int    o
[inline]
 

template<class Etype>
void ALLOC4D Etype *****    ptr,
int    m,
int    n,
int    o,
int    p
[inline]
 

void fatal_malloc char *    filename,
int    lineno,
int    mem_size
 

template<class Etype>
void FREE1D Etype **    ptr,
int    m = 1
[inline]
 

template<class Etype>
void FREE2D Etype ***    ptr,
int    m,
int    n
[inline]
 

template<class Etype>
void FREE3D Etype ****    ptr,
int    m,
int    n,
int    o
[inline]
 

template<class Etype>
void FREE4D Etype *****    ptr,
int    m,
int    n,
int    o,
int    p
[inline]
 

template<class Etype>
void MY_MALLOC Etype **    ptr,
int    n = 1
[inline]
 

void myprintf char *    fmt,
...   
 

void print_malloc char *    filename,
int    lineno,
int    mem_size
 

double TotalMemoryAllocated   [inline]
 

double TotalMemoryConsumed   [inline]
 

double TotalMemoryDeleted   [inline]
 


Variable Documentation

double mem_consumed
 


Generated on Sun Jun 16 17:36:42 2002 for Anirudh's Vortex-Wake Simulation Code by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001