Open CASCADE Technology
6.9.0
|
#include <NCollection_Comparator.hxx>
Public Member Functions | |
virtual Standard_Boolean | IsEqual (const TheItemType &theLeft, const TheItemType &theRight) const |
Should return true if values are equal. More... | |
virtual Standard_Boolean | IsLower (const TheItemType &theLeft, const TheItemType &theRight) const |
Comparison functions which may be overridden for performance reasons. More... | |
virtual Standard_Boolean | IsLowerEqual (const TheItemType &theLeft, const TheItemType &theRight) const |
virtual Standard_Boolean | IsGreaterEqual (const TheItemType &theLeft, const TheItemType &theRight) const |
Data Fields | |
__pad0__: myTolerance (theTolerance) {} virtual ~NCollection_Comparator() {}public: virtual Standard_Boolean IsGreater (const TheItemType& theLeft | |
const TheItemType &theRight const return theLeft | theRight |
Protected Attributes | |
Standard_Real | myTolerance |
Class to define basic compare operations. Basic implementation use redirection to standard C++ operators. You can use standard C++ templates mechanisms to redefine these methods or to inherit basic implementation to create multiple comparators for same type with different rules.
|
inlinevirtual |
Should return true if values are equal.
|
inlinevirtual |
|
inlinevirtual |
Comparison functions which may be overridden for performance reasons.
Should return true if Left value is lower than Right
|
inlinevirtual |
NCollection_Comparator< TheItemType >::__pad0__ |
|
protected |
const TheItemType& theRight const return theLeft NCollection_Comparator< TheItemType >::theRight |