Share

AcRxObject::isEqualTo

C++

virtual ACBASE_PORT bool isEqualTo(
    const AcRxObject * other
) const;

Description

Function usage:

This function provides the ability to compare two objects to find out if they are "equal" or not. If this function determines that they are equal, then Adesk::kTrue is returned. If they are not equal, then Adesk::kFalse is returned.

Function implementation in derived classes:

There are no enforced requirements or restrictions on how this function should be implemented if it is overridden. However, the base assumption is that Adesk::kTrue will be returned if the two objects are equal and Adesk::kFalse will be returned if they are not. Each class will have it's own idea of what equality between two objects means.

Some classes may wish to override with an implementation that always returns Adesk::kFalse to indicate that comparison is not really relevant.

Default implementation: Compares the *this pointer to other. If they contain the same address, then Adesk::kTrue is returned.

Parameters

Parameters Description
other Input pointer to object to compare with

Links

AcRxObject

Was this information helpful?