Compares features depending on their type and parameters. More...
Public Member Functions | |
| MTKBase_FeatureComparator () | |
| Constructor. | |
| MTKBase_FeatureComparator (double theDoubleParameterPrecision) | |
| Constructor. | |
| bool | operator() (const MTKBase_Feature &theA, const MTKBase_Feature &theB) const |
| Checks whether the first argument is less than the second. | |
Public Member Functions inherited from cadex::BaseObject | |
| size_t | Id () const |
| Return unique identifier of public object. | |
| internal::BaseObjectImpl * | Impl () const |
| bool | IsNull () const |
| operator bool () const | |
| template<typename T > | |
| bool | IsOfType () const |
| template<typename T > | |
| T * | Impl () const |
| Reserved for internal use. | |
Additional Inherited Members | |
Public Types inherited from cadex::BaseObject | |
| typedef std::shared_ptr< internal::BaseObjectImpl > | ImplType |
Protected Member Functions inherited from cadex::BaseObject | |
| BaseObject (const ImplType &theImpl) | |
Compares features depending on their type and parameters.
This class compares features by type and for features of the same type their parameters (length, width, radius, etc.) using less relation by already predefined rules. Therefore, this comparator can be used in ordered containers.
| cadex::MTKBase_FeatureComparator::MTKBase_FeatureComparator | ( | ) |
Constructor.
Comparision of feature parameters will occur with a default tolerance of 1.e-5.
| cadex::MTKBase_FeatureComparator::MTKBase_FeatureComparator | ( | double | theDoubleParameterPrecision | ) |
Constructor.
Comparision of feature parameters will occur with a tolerance of theDoubleParameterPrecision .