checkTypeInst
Checks whether an object instance is of the same class as another object instance (or a subclass of that class).
Declaration
static bool checkTypeInst(
const OSMetaClassBase *inst,
const OSMetaClassBase *typeinst);Parameters
- inst:
A pointer to the object to check.
- typeinst:
A pointer to an object of the class being checked.
Return Value
true if the object is derived from the class of typeinst or a subclass of that class, otherwise false.
Overview
It is far more convenient to use OSCheckTypeInst.
See Also
Miscellaneous
OSCheckTypeInstOSDynamicCastOSMemberFunctionCastOSSafeReleaseOSSafeReleaseNULLOSTypeAllocOSTypeIDOSTypeIDInstgetMetaClassgetRetainCountisEqualTometaCast(const char *)metaCast(const OSMetaClass *)metaCast(const OSString *)metaCast(const OSSymbol *)release()release(int)retainsafeMetaCastserializetaggedRelease(const void *)taggedRelease(const void *, const int)taggedRetain