Objectively 1.0.0
Ultra-lightweight object oriented framework for GNU C.
|
#include <Class.h>
ClassDefs are passed to _initialize
via an archetype to initialize a Class.
Properties | |
void(* | destroy )(Class *clazz) |
The Class destructor (optional). This method is run for initialized Classes when your application exits. More... | |
void(* | initialize )(Class *clazz) |
The Class initializer (optional). More... | |
size_t | instanceSize |
The instance size (required). More... | |
ptrdiff_t | interfaceOffset |
The interface offset (required). More... | |
size_t | interfaceSize |
The interface size (required). More... | |
const char * | name |
The Class name (required). More... | |
Class * | superclass |
The superclass (required). e.g. _Object() . More... | |
void(* ClassDef::destroy) (Class *clazz) |
void(* ClassDef::initialize) (Class *clazz) |
The Class initializer (optional).
Objectively invokes your Class initializer the first time your Class is required; either via _alloc
, or via static method invocation. The Class initializer is responsible for populating the Class' interface
with valid method implementations:
ptrdiff_t ClassDef::interfaceOffset |
size_t ClassDef::interfaceSize |
Class* ClassDef::superclass |