Kinoko
A reimplementation of Mario Kart Wii's physics engine in C++
Toggle main menu visibility
Loading...
Searching...
No Matches
Disposer.hh
1
#pragma once
2
3
#include <abstract/memory/List.hh>
4
5
namespace
Kinoko::EGG
{
6
7
class
Heap
;
8
11
class
Disposer {
12
friend
class
Heap;
13
14
public
:
15
[[nodiscard]]
static
constexpr
u16 getLinkOffset() {
16
return
reinterpret_cast<
uintptr_t
>
(&
reinterpret_cast<
Disposer *
>
(NULL)->m_link);
17
}
18
19
protected
:
20
Disposer();
21
virtual
~Disposer();
22
23
private
:
24
Heap *m_heap;
25
Abstract::Memory::MEMLink
m_link;
26
};
27
28
}
// namespace Kinoko::EGG
Kinoko::EGG::Heap
A high-level representation of a memory heap for managing dynamic memory allocation....
Definition
Heap.hh:24
Kinoko::EGG
EGG core library.
Definition
Archive.cc:6
Kinoko::Abstract::Memory::MEMLink
Link of an intrusive doubly-linked list.
Definition
List.hh:8
egg
core
Disposer.hh
Made by
Malleo
. Logo by
vabold
. Website generated by
Doxygen
1.17.0