ClassInfo

Runtime type information about a class. Can be retrieved for any class type or instance by using the .classinfo property. A pointer to this appears as the first entry in the class's vtbl[].

Members

Functions

create
Object create()

Create instance of Object represented by 'this'.

Static functions

find
ClassInfo find(char[] classname)

Search all modules for ClassInfo corresponding to classname.

Variables

base
ClassInfo base;

base class

classInvariant
void* classInvariant;
Undocumented in source.
deallocator
void* deallocator;
Undocumented in source.
defaultConstructor
Object function() defaultConstructor;
Undocumented in source.
destructor
void* destructor;
Undocumented in source.
flags
uint flags;
Undocumented in source.
init
byte[] init;

class static initializer (init.length gives size in bytes of class)

interfaces
Interface[] interfaces;

interfaces this class implements

name
char[] name;

class name

offTi
OffsetTypeInfo[] offTi;
Undocumented in source.
pointermap
PointerMap pointermap;
Undocumented in source.
typeinfo
TypeInfo typeinfo;
Undocumented in source.
vtbl
void*[] vtbl;

virtual function pointer table

Inherited Members

From Object

dispose
void dispose()

Override this to capture an explicit delete or an implicit delete via a scoped-instance. Unlike a dtor(), GC references are still intact when this method is invoked

toString
char[] toString()

Convert Object to a human readable string.

toHash
hash_t toHash()

Compute hash function for Object.

opCmp
int opCmp(Object o)

Compare with another Object obj.

opEquals
equals_t opEquals(Object o)

Returns !=0 if this object does have the same contents as obj.

Monitor
interface Monitor
Undocumented in source.

Meta