Comparator aggregate providing compare functions. More...
Public Types | |
typedef bool(* | CompareFunction) (const Decimal &, const Decimal &) |
Comparing function signature. | |
Public Member Functions | |
DecimalComparator (const CompareFunction equalFunc, const CompareFunction nonEqualFunc, const CompareFunction lessFunc, const CompareFunction greaterFunc) | |
Constructor. | |
DecimalComparator & | operator= (const DecimalComparator &) |
bool | fixedPoint () const |
Returns true if this instance is fixed point decimal comparator. | |
bool | genericDecimal () const |
Returns true if this instance is generic decimal comparator. | |
Public Attributes | |
const CompareFunction | equal |
Comparing functions. | |
const CompareFunction | nonEqual |
const CompareFunction | less |
const CompareFunction | greater |
Comparator aggregate providing compare functions.
Such functions can be generic (slower, but able to deal with any decimal) or fixed point based (faster, but assuming that all compating values have the same exponent).