Class used to build new class dynamically.
More...
|
bool | __alloc__ (void *class, void **instance) |
| Allocate memory for new instance. More...
|
|
void * | __constructor__ (void *self, va_list *app) |
| Build new instance. More...
|
|
void * | __destructor__ (void *self) |
| Destroy instance. More...
|
|
void * | ref (void *self) |
| Increment object's reference counter. More...
|
|
void | unref (void *self) |
| Decrement object's reference counter, if equals 0, delete the object. More...
|
|
bool | equal (const void *self, const void *other) |
| Check objects equality. More...
|
|
Class used to build new class dynamically.
bool __alloc__ |
( |
void * |
class, |
|
|
void ** |
instance |
|
) |
| |
Allocate memory for new instance.
- Parameters
-
class | Object class. |
instance | Address to store newly allocated object |
- Returns
TRUE
if allocation was done, FALSE
otherwise.
void * __constructor__ |
( |
void * |
self, |
|
|
va_list * |
app |
|
) |
| |
Build new instance.
- Parameters
-
self | Object instance. |
app | Constructor parameters. |
- Returns
- Initialized instance.
void * __destructor__ |
( |
void * |
self | ) |
|
Destroy instance.
- Parameters
-
- Returns
- Instance.