A reimplementation of Mario Kart Wii's physics engine in C++
Loading...
Searching...
No Matches
Heap.hh File Reference

Go to the source code of this file.

Classes

class  Heap
 A high-level representation of a memory heap for managing dynamic memory allocation. Interface for allocating and freeing memory blocks. More...

Namespaces

namespace  Kinoko
namespace  Kinoko::Host
 Represents the host application.
namespace  Kinoko::EGG
 EGG core library.

Macros

#define EGG_NEW_DELETE_FRIEND
 Grants Kinoko::EGG::egg_new and Kinoko::EGG::egg_delete access to a class' private constructors/destructor, without making them public.

Functions

void * egg_alloc (size_t size, s32 align, Heap *pHeap)
void egg_free (void *block, Heap *pHeap)
template<typename T, typename... Args>
T * egg_new (Args &&...args)
template<typename T>
void egg_delete (const T *ptr)
template<typename T>
T * egg_new_array (size_t count)
template<typename T>
void egg_delete_array (T *ptr, size_t count)

Macro Definition Documentation

◆ EGG_NEW_DELETE_FRIEND

#define EGG_NEW_DELETE_FRIEND
Value:
template <typename T, typename... Args> \
friend T *Kinoko::EGG::egg_new(Args &&...args); \
template <typename T> \
friend void Kinoko::EGG::egg_delete(const T *ptr);
void egg_delete(const T *ptr)
Definition Heap.hh:154
T * egg_new(Args &&...args)
Definition Heap.hh:148

Grants Kinoko::EGG::egg_new and Kinoko::EGG::egg_delete access to a class' private constructors/destructor, without making them public.

Definition at line 186 of file Heap.hh.

Referenced by Archive::Host::Context.