Declaration of memory manager for allocating small pieces of memory. More...
#include <new>#include <ogdf/basic/memory/PoolMemoryAllocator.h>#include <ogdf/basic/memory/MallocMemoryAllocator.h>Go to the source code of this file.
Namespaces | |
| ogdf | |
| The namespace for all OGDF objects. | |
Macros | |
Managing memory | |
| #define | OGDF_MM(Alloc) |
| Creates new and delete operators in a class using the given memory allocator. More... | |
| #define | OGDF_ALLOCATOR ogdf::PoolMemoryAllocator |
| The used memory manager. More... | |
| #define | OGDF_NEW_DELETE OGDF_MM(OGDF_ALLOCATOR) |
| Makes the class use OGDF's memory allocator. More... | |
| #define | OGDF_MALLOC_NEW_DELETE OGDF_MM(ogdf::MallocMemoryAllocator) |
| Makes the class use malloc for memory allocation. More... | |
Declaration of memory manager for allocating small pieces of memory.
Definition in file memory.h.
| #define OGDF_ALLOCATOR ogdf::PoolMemoryAllocator |
| #define OGDF_MM | ( | Alloc | ) |
Creates new and delete operators in a class using the given memory allocator.
In other words, adding this macro in a class declaration makes that class managed by the respective memory manager. Throws an ogdf::InsufficientMemoryException if no more memory is available.