Eneboo - Documentación para desarrolladores
|
Instantiates one instance of a class used for every malloc & free. Más...
#include <unique.h>
Métodos públicos | |
UniqueHeap (void) | |
~UniqueHeap (void) | |
Delete one reference to the unique heap. When the number of references goes to zero, delete the super heap. | |
void * | malloc (size_t sz) |
void | free (void *ptr) |
size_t | getSize (void *ptr) |
int | remove (void *ptr) |
void | clear (void) |
Instantiates one instance of a class used for every malloc & free.
UniqueHeap< SuperHeap, Child >::UniqueHeap | ( | void | ) | [inline] |
Ensure that the super heap gets created, and add a reference for every instance of unique heap.
UniqueHeap< SuperHeap, Child >::~UniqueHeap | ( | void | ) | [inline] |
Delete one reference to the unique heap. When the number of references goes to zero, delete the super heap.
void UniqueHeap< SuperHeap, Child >::clear | ( | void | ) | [inline] |
void UniqueHeap< SuperHeap, Child >::free | ( | void * | ptr | ) | [inline] |
size_t UniqueHeap< SuperHeap, Child >::getSize | ( | void * | ptr | ) | [inline] |
void* UniqueHeap< SuperHeap, Child >::malloc | ( | size_t | sz | ) | [inline] |
int UniqueHeap< SuperHeap, Child >::remove | ( | void * | ptr | ) | [inline] |