View source code
Display the source code in object.d from which this page was generated on
github.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using
local clone.
Page wiki
View or edit the community-maintained wiki page associated with this page.
Class object.TypeInfo_Class
Runtime type information about a class.
Can be retrieved from an object
instance by using the
.classinfo property.
Inherits from
-
(base class)TypeInfo
Fields
Name | Type | Description |
---|---|---|
base
|
TypeInfo_Class |
base class
|
interfaces
|
Interface[] |
interfaces this class implements
|
m_init
|
byte[] |
class static initializer (init.length gives size in bytes of class) |
name
|
string |
class name
|
vtbl
|
void*[] |
virtual function pointer table |
Properties
Name | Type | Description |
---|---|---|
flags
[get]
|
uint |
Get flags for type: 1 means GC should scan for pointers,
|
next
[get]
|
inout(TypeInfo) |
Get TypeInfo for 'next ' type, as defined by what kind of type this is,
|
rtInfo
[get]
|
immutable(void)* |
Return info used by the garbage collector to do precise collection. |
talign
[get]
|
ulong |
Return alignment of type |
tsize
[get]
|
ulong |
Returns size of the type. |
Methods
Name | Description |
---|---|
create
|
Create instance of Object represented by 'this'.
|
find
|
Search all modules for TypeInfo_Class corresponding to classname .
|
argTypes
|
Return internal info on arguments fitting into 8byte. See X86-64 ABI 3.2.3 |
compare
|
Compares two instances for <, ==, or >. |
destroy
|
Run the destructor on the object and all its sub-objects
|
equals
|
Compares two instances for equality. |
factory
|
Create instance of class specified by the fully qualified name
classname .
The class must either have no constructors or have
a default constructor.
|
getHash
|
Returns a hash of the instance of a type. |
init
|
Return default initializer. If the type should be initialized to all zeros, |
offTi
|
Get type information on the contents of the type; null if not available |
opCmp
|
Compare with another Object obj.
|
opEquals
|
Returns !=0 if this object does have the same contents as obj.
|
postblit
|
Run the postblit on the object and all its sub-objects
|
swap
|
Swaps two instances of the type. |
toHash
|
Compute hash function for Object .
|
toString
|
Convert Object to a human readable string.
|
Authors
Walter Bright, Sean Kelly