3#include <lib/egg/core/eggDisposer.h>
4#include <lib/rvl/mem/MEMHeapCommon.h>
20 virtual int getHeapKind()
const = 0;
21 virtual void initAllocator(
Allocator *allocator,
long align) = 0;
22 virtual void *alloc(
size_t,
long) = 0;
23 virtual void free(
void *) = 0;
24 virtual void destroy() = 0;
26 static void *alloc(
size_t,
int,
EGG::Heap *);
29 static Heap *findContainHeap(
const void *);
42 static FrmHeap *dynamicCastToFrm(Heap *heap) {
43 if (heap !=
nullptr && heap->getHeapKind() == 2) {
49 static Heap *sCurrentHeap;
54void *
operator new(size_t,
void *);
55void *
operator new(size_t, int);
56void *
operator new(size_t,
EGG::Heap *, int);
57void *
operator new[](size_t,
EGG::Heap *, int);
Disposer()
Registers the disposer in the containing heap.
void List_Append(List *list, void *obj)
Adds an object to the end of the list.
void List_Remove(List *list, void *obj)
Deletes an object from the list.
A doubly-linked list container. See Link.