Qt 4.8
|
Provides compare(), which is a high-level helper function for comparing atomic values. More...
#include <qcomparisonfactory_p.h>
Static Public Functions | |
static bool | compare (const AtomicValue::Ptr &operand1, const AtomicComparator::Operator op, const AtomicValue::Ptr &operand2, const SchemaType::Ptr &type, const ReportContext::Ptr &context, const SourceLocationReflection *const sourceLocationReflection) |
Returns the result of evaluating operator op applied to the atomic values operand1 and operand2 . More... | |
static bool | constructAndCompare (const DerivedString< TypeString >::Ptr &operand1, const AtomicComparator::Operator op, const DerivedString< TypeString >::Ptr &operand2, const SchemaType::Ptr &type, const ReportContext::Ptr &context, const SourceLocationReflection *const sourceLocationReflection) |
Returns the result of evaluating operator op applied to the atomic values operand1 and operand2 . More... | |
Provides compare(), which is a high-level helper function for comparing atomic values.
This class wraps the helper class ComparisonPlatform with a more specific, high-level API.
Definition at line 77 of file qcomparisonfactory_p.h.
|
static |
Returns the result of evaluating operator op
applied to the atomic values operand1
and operand2
.
The caller guarantees that both values are of type type
.
ComparisonFactory does not take ownership of sourceLocationReflection
.
Definition at line 115 of file qcomparisonfactory.cpp.
Referenced by QPatternist::XsdSchemaHelper::constructAndCompare().
|
static |
Returns the result of evaluating operator op
applied to the atomic values operand1
and operand2
.
In opposite to compare() it converts the operands from string type to type
and compares these constructed types.
The caller guarantees that both values are of type type
.
ComparisonFactory does not take ownership of sourceLocationReflection
.
Definition at line 133 of file qcomparisonfactory.cpp.