69 static inline void deallocate(
size_t,
void* p) { free(p); }
89 static constexpr bool checkSize(
size_t) {
return true; }
Contains logging functionality.
Exception thrown when not enough memory is available to execute an algorithm.
Implements a simple memory manager using malloc() and free().
static void * allocate(size_t nBytes, const char *, int)
Allocates memory of size nBytes.
static constexpr size_t memoryAllocatedInBlocks()
Always returns 0, since no blocks are allocated.
static constexpr size_t memoryInFreelist()
Always returns 0, since no blocks are allocated.
static constexpr size_t memoryInThreadFreeList()
Always returns 0, since no blocks are allocated.
static constexpr bool checkSize(size_t)
Always returns true since we simply trust malloc().
static constexpr size_t memoryInGlobalFreeList()
Always returns 0, since no blocks are allocated.
static void deallocate(size_t, void *p)
Deallocates memory at address p. We do not keep track of the size of the deallocated object.
static void deallocateList(size_t, void *pHead, void *pTail)
Deallocate a complete list starting at pHead and ending at pTail.
static void flushPool(uint16_t)
static void * allocate(size_t nBytes)
Allocates memory of size nBytes.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition of exception classes.
#define OGDF_THROW(CLASS)
Replacement for throw.
#define OGDF_UNLIKELY(x)
Specify the unlikely branch in a condition.
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.