cgma
MemoryManager.hpp File Reference
#include <cstdlib>
#include <cassert>
#include "CGMUtilConfigure.h"

Go to the source code of this file.

Classes

class  MemoryManager

Defines

#define USE_DYNAMIC_MEMORY_ALLOCATION
#define SetDynamicMemoryAllocation(memManager)

Variables

const int DEFAULT_MEMORY_ALLOC_SIZE = 1024
const int STATIC_MEMORY_MANAGER = 1

Define Documentation

#define SetDynamicMemoryAllocation (   memManager)
Value:
\
  void*  operator new(std::size_t size)                                           \
         {return memManager.operator_new(size);}                             \
  void   operator delete(void *deadObject, std::size_t size)                      \
         {memManager.operator_delete(deadObject, size);}                     \
  /*  overloaded new and delete operators */                                    \
                                                                             \

Definition at line 139 of file MemoryManager.hpp.

Definition at line 12 of file MemoryManager.hpp.


Variable Documentation

const int DEFAULT_MEMORY_ALLOC_SIZE = 1024

Definition at line 17 of file MemoryManager.hpp.

const int STATIC_MEMORY_MANAGER = 1

Definition at line 20 of file MemoryManager.hpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines