TypeInfo_Class

Runtime type information about a class. Can be retrieved from an object instance by using the .classinfo property.

Members

Enums

ClassFlags
enum ClassFlags
Undocumented in source.

Functions

compare
int compare(void* p1, void* p2)
Undocumented in source. Be warned that the author may not have intended to support it.
create
Object create()

Create instance of Object represented by 'this'.

equals
bool equals(void* p1, void* p2)
Undocumented in source. Be warned that the author may not have intended to support it.
getHash
size_t getHash(void* p)
Undocumented in source. Be warned that the author may not have intended to support it.
initializer
const(void)[] initializer()
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(Object o)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

flags
uint flags [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
info
auto info [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
offTi
const(OffsetTypeInfo)[] offTi [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
rtInfo
immutable(void)* rtInfo [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
tsize
size_t tsize [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
typeinfo
auto typeinfo [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

find
const(TypeInfo_Class) find(char[] classname)

Search all modules for TypeInfo_Class corresponding to classname.

Variables

base
TypeInfo_Class base;

base class

classInvariant
void function(Object) classInvariant;
Undocumented in source.
deallocator
void* deallocator;
Undocumented in source.
defaultConstructor
void function(Object) defaultConstructor;
Undocumented in source.
destructor
void* destructor;
Undocumented in source.
interfaces
Interface[] interfaces;

interfaces this class implements

m_RTInfo
immutable(void)* m_RTInfo;
Undocumented in source.
m_flags
ClassFlags m_flags;
Undocumented in source.
m_init
byte[] m_init;

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

m_offTi
OffsetTypeInfo[] m_offTi;
Undocumented in source.
name
string name;

class name

vtbl
void*[] vtbl;

virtual function pointer table

Inherited Members

From TypeInfo

toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.
toHash
size_t toHash()
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(Object o)
Undocumented in source. Be warned that the author may not have intended to support it.
getHash
size_t getHash(void* p)

Computes a hash of the instance of a type.

equals
bool equals(void* p1, void* p2)

Compares two instances for equality.

compare
int compare(void* p1, void* p2)

Compares two instances for <, ==, or >.

tsize
size_t tsize [@property getter]

Returns size of the type.

swap
void swap(void* p1, void* p2)

Swaps two instances of the type.

next
inout(TypeInfo) next [@property getter]

Get TypeInfo for 'next' type, as defined by what kind of type this is, null if none.

initializer
const(void)[] initializer()

Return default initializer. If the type should be initialized to all zeros, an array with a null ptr and a length equal to the type size will be returned. For static arrays, this returns the default initializer for a single element of the array, use tsize to get the correct size.

initializer
const(void)[] initializer()
Undocumented in source.
flags
uint flags [@property getter]

Get flags for type: 1 means GC should scan for pointers, 2 means arg of this type is passed in XMM register

offTi
const(OffsetTypeInfo)[] offTi()

Get type information on the contents of the type; null if not available

destroy
void destroy(void* p)

Run the destructor on the object and all its sub-objects

postblit
void postblit(void* p)

Run the postblit on the object and all its sub-objects

talign
size_t talign [@property getter]

Return alignment of type

argTypes
int argTypes(TypeInfo arg1, TypeInfo arg2)

Return internal info on arguments fitting into 8byte. See X86-64 ABI 3.2.3

rtInfo
immutable(void)* rtInfo [@property getter]

Return info used by the garbage collector to do precise collection.

Meta