Qt 4.8
|
Compares xs:double
values for the purpose of sorting.
More...
#include <qatomiccomparators_p.h>
Public Functions | |
virtual ComparisonResult | compare (const Item &o1, const AtomicComparator::Operator op, const Item &o2) const |
Public Functions inherited from QPatternist::AbstractFloatComparator | |
virtual bool | equals (const Item &op1, const Item &op2) const |
Public Functions inherited from QPatternist::AtomicComparator | |
AtomicComparator () | |
virtual | ~AtomicComparator () |
Public Functions inherited from QPatternist::AtomicTypeVisitorResult | |
AtomicTypeVisitorResult () | |
virtual | ~AtomicTypeVisitorResult () |
Public Functions inherited from QSharedData | |
QSharedData () | |
Constructs a QSharedData object with a reference count of 0. More... | |
QSharedData (const QSharedData &) | |
Constructs a QSharedData object with reference count 0. More... | |
Compares xs:double
values for the purpose of sorting.
Definition at line 185 of file qatomiccomparators_p.h.
|
inlinevirtual |
Compares op1
and op2
and determines the relationship between the two. This is used for sorting and comparisons. The implementation performs an assert crash, and must therefore be re-implemented if comparing the relevant values should be possible.
op1 | the first operand |
op | the operator. How a comparison is carried out shouldn't depend on what the operator is, but in some cases it is of interest. |
op2 | the second operand |
Reimplemented from QPatternist::AbstractFloatComparator.
Definition at line 188 of file qatomiccomparators_p.h.