API Reference > OdRx Classes > OdRxObject Class > OdRxObject Methods > OdRxObject::comparedTo Method
OdRxObject::comparedTo Method
Syntax
C++
virtual OdRx::Ordering comparedTo(const OdRxObject* pOther) const;
Parameters 
Description 
const OdRxObject* pOther 
[in] Raw pointer to the object to be compared. 

Compares another object to this one in a some meaning. 

 

This method returns one of the following: 

 

Name Value 
Description 
_kLessThan_ -1 
This object < Other Object. 
_kEqual_ 0 
This object = Other Object. 
_kGreaterThan_ 1 
This object > Other Object. 
_kNotOrderable_ 2 
This class is not orderable. 

 

The default implementation of this method returns _kNotOrderable_.

Comparing the Value of Rx Objects 

Comparing Rx-Objects

Copyright © 2002–2020. Open Design Alliance. All rights reserved.