|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
59 static inline void*
allocate(
size_t nBytes,
const char*,
int) {
return allocate(nBytes); }
63 void* p = malloc(nBytes);
72 static inline void deallocate(
size_t,
void* p) { free(p); }
80 while (pHead != pStop) {
92 static constexpr
bool checkSize(
size_t) {
return true; }
The namespace for all OGDF objects.
static constexpr size_t memoryInGlobalFreeList()
Always returns 0, since no blocks are allocated.
Definition of exception classes.
Exception thrown when not enough memory is available to execute an algorithm.
static void deallocateList(size_t, void *pHead, void *pTail)
Deallocate a complete list starting at pHead and ending at pTail.
static constexpr size_t memoryInFreelist()
Always returns 0, since no blocks are allocated.
static constexpr size_t memoryAllocatedInBlocks()
Always returns 0, since no blocks are allocated.
static constexpr bool checkSize(size_t)
Always returns true since we simply trust malloc().
#define OGDF_THROW(CLASS)
Replacement for throw.
Implements a simple memory manager using malloc() and free().
#define OGDF_UNLIKELY(x)
Specify the unlikely branch in a condition.
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 * allocate(size_t nBytes, const char *, int)
Allocates memory of size nBytes.
static void flushPool(uint16_t)
Basic declarations, included by all source files.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
static void * allocate(size_t nBytes)
Allocates memory of size nBytes.
static constexpr size_t memoryInThreadFreeList()
Always returns 0, since no blocks are allocated.