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 |