Blender
V3.3
|
#include <MemoryAllocator.h>
Public Member Functions | |
MemoryAllocator () | |
void | destroy () |
void * | allocate () |
void | deallocate (void *obj) |
void | printInfo () |
int | getAllocated () |
int | getAll () |
int | getBytes () |
![]() | |
virtual | ~VirtualMemoryAllocator () |
Dynamic memory allocator - allows allocation/deallocation
NOTE: there are 4 bytes overhead for each allocated yet unused object.
Definition at line 46 of file MemoryAllocator.h.
|
inline |
|
inlinevirtual |
Allocation method
Implements VirtualMemoryAllocator.
Definition at line 141 of file MemoryAllocator.h.
References HEAP_BASE.
|
inlinevirtual |
De-allocation method
Implements VirtualMemoryAllocator.
Definition at line 155 of file MemoryAllocator.h.
|
inlinevirtual |
|
inlinevirtual |
Implements VirtualMemoryAllocator.
Definition at line 187 of file MemoryAllocator.h.
Referenced by MemoryAllocator< N >::printInfo().
|
inlinevirtual |
Query methods
Implements VirtualMemoryAllocator.
Definition at line 182 of file MemoryAllocator.h.
Referenced by MemoryAllocator< N >::printInfo().
|
inlinevirtual |
Implements VirtualMemoryAllocator.
Definition at line 192 of file MemoryAllocator.h.
References N.
Referenced by MemoryAllocator< N >::printInfo().
|
inlinevirtual |
Print information
Implements VirtualMemoryAllocator.
Definition at line 170 of file MemoryAllocator.h.
References MemoryAllocator< N >::getAll(), MemoryAllocator< N >::getAllocated(), and MemoryAllocator< N >::getBytes().