Contents

metaCast(const OSMetaClass *)

Casts this object is to the class managed by the given OSMetaClass.

Declaration

OSMetaClassBase * metaCast(
 const OSMetaClass *toMeta) const;

Parameters

  • toMeta:

    A pointer to a constant OSMetaClass for the desired target type.

Return Value

this if the object is derived from the class managed by toMeta, otherwise NULL.

Overview

It is far more convenient to use OSDynamicCast.

See Also

Miscellaneous