isEqualTo
Checks whether another object is equal to the receiver.
Declaration
virtual bool isEqualTo(
const OSMetaClassBase *anObject) const;Parameters
- anObject:
The object to copmare to the receiver.
Return Value
true if the objects are equal, false otherwise.
Overview
OSMetaClassBase implements this as a direct pointer comparison, since it has no other information to judge equality by. Subclasses generally override this function to do a more meaningful comparison. For example, OSString implements it to return true if anObject is derived from OSString and represents the same C string.
See Also
Miscellaneous
OSCheckTypeInstOSDynamicCastOSMemberFunctionCastOSSafeReleaseOSSafeReleaseNULLOSTypeAllocOSTypeIDOSTypeIDInstcheckTypeInstgetMetaClassgetRetainCountmetaCast(const char *)metaCast(const OSMetaClass *)metaCast(const OSString *)metaCast(const OSSymbol *)release()release(int)retainsafeMetaCastserializetaggedRelease(const void *)taggedRelease(const void *, const int)taggedRetain