Qualia
0.2
|
#include <Allocator.h>
Static Public Member Functions | |
static void * | malloc (size_t size) |
static void * | calloc (size_t num, size_t size) |
static void * | realloc (void *ptr, size_t size) |
static void | free (void *ptr) |
static void | init (Allocator *alloc) |
static Allocator * | instance () |
Static Private Attributes | |
static Allocator * | inst = 0 |
Static class for memory management. In Qualia, all dynamic memory allocation calls should use the Alloc static methods instead of the ones provided in the standard library. That allows code to be easily ported to AVR platform where static allocation is usually better (see StaticAllocator).
Example use (see class StaticAllocator).
|
static |
|
static |
|
static |
|
inlinestatic |
|
static |
|
static |
|
staticprivate |