Rtti Rt¶
| Spice | |
|---|---|
TypeInfo struct¶
TypeInfo is a type that contains the name of a type. It is used to identify types at runtime and is part of the RTTI.
Constructors¶
ctor¶
| Spice | |
|---|---|
Construct a type info holding the given type name
Parameters
| Name | Type | Description |
|---|---|---|
name |
string |
Name of the type |
Methods¶
getName¶
| Spice | |
|---|---|
Retrieve the name of the type
Returns: string — Name of the type
Operators¶
operator==¶
| Spice | |
|---|---|
Check if two type infos refer to the same type, i.e. they have the same name
Parameters
| Name | Type | Description |
|---|---|---|
a |
const TypeInfo& |
|
b |
const TypeInfo& |
Returns: bool — Equal or not equal
operator!=¶
| Spice | |
|---|---|
Check if two type infos refer to different types
Parameters
| Name | Type | Description |
|---|---|---|
a |
const TypeInfo& |
|
b |
const TypeInfo& |
Returns: bool — Not equal or equal