NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
EGG::Heap Class Referenceabstract
Inheritance diagram for EGG::Heap:
[legend]

Description

Definition at line 13 of file eggHeap.h.

Public Member Functions

 Heap (MEMiHeapHead *heapHead)
 
virtual int getHeapKind () const =0
 
virtual void initAllocator (Allocator *allocator, long align)=0
 
virtual void * alloc (size_t, long)=0
 
virtual void free (void *)=0
 
virtual void destroy ()=0
 
void appendDisposer (Disposer *disposer)
 
void removeDisposer (Disposer *disposer)
 

Static Public Member Functions

static void * alloc (size_t, int, EGG::Heap *)
 
static void free (void *, EGG::Heap *)
 
static HeapfindContainHeap (const void *)
 
static FrmHeapdynamicCastToFrm (Heap *heap)
 

Public Attributes

MEMiHeapHeadmHeapHandle
 
void * mHeapBuffer
 
HeapmParentHeap
 
u16 mFlag
 
u8 mPad1 [0xa]
 
nw4r::ut::List mChildren
 
u8 mPad2 [0x4]
 

Static Public Attributes

static HeapsCurrentHeap
 

Additional Inherited Members

- Private Member Functions inherited from EGG::Disposer
 Disposer ()
 Registers the disposer in the containing heap.
 
virtual ~Disposer ()
 Unregisters the disposer in the containing heap.
 

Constructor & Destructor Documentation

◆ Heap()

EGG::Heap::Heap ( )
inline

Definition at line 15 of file eggHeap.h.

Member Function Documentation

◆ appendDisposer()

void EGG::Heap::appendDisposer ( Disposer * disposer)
inline

Definition at line 31 of file eggHeap.h.

◆ removeDisposer()

void EGG::Heap::removeDisposer ( Disposer * disposer)
inline

Definition at line 32 of file eggHeap.h.

◆ dynamicCastToFrm()

static FrmHeap * EGG::Heap::dynamicCastToFrm ( Heap * heap)
inlinestatic

Definition at line 42 of file eggHeap.h.

Member Data Documentation

◆ mHeapHandle

MEMiHeapHead* EGG::Heap::mHeapHandle

Definition at line 34 of file eggHeap.h.

◆ mHeapBuffer

void* EGG::Heap::mHeapBuffer

Definition at line 35 of file eggHeap.h.

◆ mParentHeap

Heap* EGG::Heap::mParentHeap

Definition at line 36 of file eggHeap.h.

◆ mFlag

u16 EGG::Heap::mFlag

Definition at line 37 of file eggHeap.h.

◆ mPad1

u8 EGG::Heap::mPad1[0xa]

Definition at line 38 of file eggHeap.h.

◆ mChildren

nw4r::ut::List EGG::Heap::mChildren

Definition at line 39 of file eggHeap.h.

◆ mPad2

u8 EGG::Heap::mPad2[0x4]

Definition at line 40 of file eggHeap.h.

◆ sCurrentHeap

Heap* EGG::Heap::sCurrentHeap
static

Definition at line 49 of file eggHeap.h.