Go to the source code of this file.
|
| template<typename DerivedType, typename Type> |
| bool | sead::IsDerivedTypes (const Type *ptr) |
| template<typename DerivedType, typename Type> |
| DerivedType * | sead::DynamicCast (Type *ptr) |
| template<typename DerivedType, typename Type> |
| const DerivedType * | sead::DynamicCast (const Type *ptr) |
◆ SEAD_RTTI_BASE
| #define SEAD_RTTI_BASE |
( |
| CLASS | ) |
|
Value: private: \
\
public: \
{ \
return &sTypeInfo; \
} \
\
{ \
return type == clsTypeInfo; \
} \
\
virtual const sead::RuntimeTypeInfo::Interface* getRuntimeTypeInfo() const \
{ \
return getRuntimeTypeInfoStatic(); \
}
Definition seadRuntimeTypeInfo.h:9
Definition seadRuntimeTypeInfo.h:19
◆ SEAD_RTTI_OVERRIDE
| #define SEAD_RTTI_OVERRIDE |
( |
| CLASS, |
|
|
| BASE ) |
Value: private: \
\
public: \
{ \
return &sTypeInfo; \
} \
\
{ \
if (type == clsTypeInfo) \
return true; \
\
return BASE::checkDerivedRuntimeTypeInfo(type); \
} \
\
const sead::RuntimeTypeInfo::Interface* getRuntimeTypeInfo() const override \
{ \
return getRuntimeTypeInfoStatic(); \
}
Definition seadRuntimeTypeInfo.h:30
◆ SEAD_RTTI_OVERRIDE_INLINE
| #define SEAD_RTTI_OVERRIDE_INLINE |
( |
| CLASS, |
|
|
| BASE ) |
Value: private: \
\
public: \
{ \
return &sTypeInfo; \
} \
\
bool checkDerivedRuntimeTypeInfo(const sead::RuntimeTypeInfo::Interface* type) const override \
{ \
const sead::RuntimeTypeInfo::Interface* clsTypeInfo = CLASS::getRuntimeTypeInfoStatic(); \
if (type == clsTypeInfo) \
return true; \
\
return BASE::checkDerivedRuntimeTypeInfo(type); \
} \
\
const sead::RuntimeTypeInfo::Interface* getRuntimeTypeInfo() const override \
{ \
return getRuntimeTypeInfoStatic(); \
}
◆ SEAD_RTTI_BASE_IMPL
| #define SEAD_RTTI_BASE_IMPL |
( |
| CLASS | ) |
|
◆ SEAD_RTTI_OVERRIDE_IMPL
| #define SEAD_RTTI_OVERRIDE_IMPL |
( |
| CLASS, |
|
|
| BASE ) |