7 #ifndef __core_Allocator_h__ 8 #define __core_Allocator_h__ 13 class Allocator :
public Counted
16 virtual ~Allocator(
void) {}
17 virtual void *allocate(FE_UWORD byteCount) =0;
18 virtual void deallocate(
void* pMemory) =0;
21 Allocator(
void): m_name(
"Allocator") {}
22 const String& name(
void)
const {
return m_name; }
28 class BasicAllocator :
public Allocator
31 virtual ~BasicAllocator(
void) {}
32 virtual void *allocate(FE_UWORD byteCount)
34 void *ptr = fe::allocate(byteCount);
38 virtual void deallocate(
void* pMemory)
40 fe::deallocate(pMemory);
kernel
Definition: namespace.dox:3