lifetime.class_

Undocumented in source.

Members

Functions

_d_allocclass
Object _d_allocclass(TypeInfo_Class ti)

Allocate and initialise a class

_d_delclass
void _d_delclass(Object* o)

Finalize and deallocate a class

_d_dynamic_cast
void* _d_dynamic_cast(Object o, ClassInfo c)

Cast an Object from one representation to another

_d_interface_cast
void* _d_interface_cast(void* p, ClassInfo c)

Attempts to cast Object o to class c. Returns o if successful, null if not.

_d_isbaseof
int _d_isbaseof(ClassInfo oc, ClassInfo c)

Check if c is base of oc

_d_isbaseof2
int _d_isbaseof2(ClassInfo oc, ClassInfo c, size_t offset)

Check if c is base of oc

_d_newclass
Object _d_newclass(TypeInfo_Class ti)

Allocate and initialise a class

_d_toObject
Object _d_toObject(void* p)

Given a pointer: If it is an Object, return that Object. If it is an interface, return the Object implementing the interface. If it is null, return null. Else, undefined crash

Meta