|
Blender V5.0
|
#include <MemoryAllocator.h>
Inherits VirtualMemoryAllocator.
Public Member Functions | |
| MemoryAllocator () | |
| void | destroy () override |
| void * | allocate () override |
| void | deallocate (void *obj) override |
| void | printInfo () override |
| int | getAllocated () override |
| int | getAll () override |
| int | getBytes () override |
| Public Member Functions inherited from VirtualMemoryAllocator | |
| virtual | ~VirtualMemoryAllocator ()=default |
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 |
|
inlineoverridevirtual |
Allocation method
Implements VirtualMemoryAllocator.
Definition at line 141 of file MemoryAllocator.h.
References HEAP_BASE.
|
inlineoverridevirtual |
De-allocation method
Implements VirtualMemoryAllocator.
Definition at line 155 of file MemoryAllocator.h.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Implements VirtualMemoryAllocator.
Definition at line 187 of file MemoryAllocator.h.
Referenced by printInfo().
|
inlineoverridevirtual |
Query methods
Implements VirtualMemoryAllocator.
Definition at line 182 of file MemoryAllocator.h.
Referenced by printInfo().
|
inlineoverridevirtual |
Implements VirtualMemoryAllocator.
Definition at line 192 of file MemoryAllocator.h.
References N.
Referenced by printInfo().
|
inlineoverridevirtual |
Print information
Implements VirtualMemoryAllocator.
Definition at line 170 of file MemoryAllocator.h.
References getAll(), getAllocated(), getBytes(), and printf.