50 #define implMathVisit(ownerClass, visitor, mather, validOps) \ 51 AtomicTypeVisitorResult::Ptr \ 52 ownerClass##MathematicianLocator::visit(const visitor *, const qint16 op, \ 53 const SourceLocationReflection *const r) const \ 57 if(((validOps) & AtomicMathematician::Operator(op)) == op) \ 58 return AtomicTypeVisitorResult::Ptr(new mather()); \ 60 return AtomicTypeVisitorResult::Ptr(); \ 63 #define implReportingMathVisit(ownerClass, visitor, mather, validOps) \ 64 AtomicTypeVisitorResult::Ptr \ 65 ownerClass##MathematicianLocator::visit(const visitor *, const qint16 op, \ 66 const SourceLocationReflection *const r) const \ 69 if(((validOps) & AtomicMathematician::Operator(op)) == op) \ 70 return AtomicTypeVisitorResult::Ptr(new mather(r)); \ 72 return AtomicTypeVisitorResult::Ptr(); \ 75 #define implRevReportingMathVisit(ownerClass, visitor, mather, validOps) \ 76 AtomicTypeVisitorResult::Ptr \ 77 ownerClass##MathematicianLocator::visit(const visitor *, const qint16 op, \ 78 const SourceLocationReflection *const r) const \ 81 if(((validOps) & AtomicMathematician::Operator(op)) == op) \ 82 return AtomicTypeVisitorResult::Ptr(new OperandSwitcherMathematician( \ 83 AtomicMathematician::Ptr(new mather(r)))); \ 85 return AtomicTypeVisitorResult::Ptr(); \ 165 #undef implReportingMathVisit 166 #undef implRevReportingMathVisit Base template class for Float and Double classes.
#define implReportingMathVisit(ownerClass, visitor, mather, validOps)
Implements the type xs:yearMonthDuration.
#define QT_END_NAMESPACE
This macro expands to.
static const AtomicMathematician::Operators DTOps(AtomicMathematician::Substract|AtomicMathematician::Add)
Implements the type xs:float.
Implements the type xs:time.
Implements the type xs:integer.
Implements the type xs:double.
Implements the value instance of the xs:time type.
static const AtomicMathematician::Operators DivMultiply(AtomicMathematician::Multiply|AtomicMathematician::Div)
Performs division or multiplication between either DayTimeDuration or YearMonthDuration and Double va...
Implements the type xs:dateTime.
#define implRevReportingMathVisit(ownerClass, visitor, mather, validOps)
Performs arithmetics between two AbstractDateTime values.
Implements the type xs:dayTimeDuration.
Performs arithmetics between Integer values.
static const AtomicMathematician::Operators AllMathOperators(AtomicMathematician::Add|AtomicMathematician::Div|AtomicMathematician::IDiv|AtomicMathematician::Mod|AtomicMathematician::Multiply|AtomicMathematician::Substract)
#define QT_BEGIN_NAMESPACE
This macro expands to.
The namespace for the internal API of QtXmlPatterns.
Implements the type xs:date.
Contains classes performing arithemetic operations between atomic values, such as subtracting two dat...
Implements the value instance of the xs:dayTimeDuration type.
Implements the type xs:decimal.
Performs arithmetics between AbstractFloat values (Float and Double classes).
Implements the value instance of the xs:date type.
Performs arithmetics between an AbstractDateTime value and an AbstractDuration value.
Implements the value instance of the xs:yearMonthDuration type.
Implements the value instance of the xs:decimal type.
Performs arithmetics between DayTimeDuration and DayTimeDuration, or YearMonthDuration and YearMonthD...
Implements the value instance of the xs:integer type.
Implements the value instance of the xs:dateTime type.
The QFlags class provides a type-safe way of storing OR-combinations of enum values.
#define implMathVisit(ownerClass, visitor, mather, validOps)
Base class for classes that performs arithmetic operations between atomic values. ...
static const AtomicMathematician::Operators DurationOps(AtomicMathematician::Div|AtomicMathematician::Substract|AtomicMathematician::Add)
Contains AtomicMathematicianLocator sub-classes that finds classes which can perform arithmetics betw...