52 #ifndef Patternist_TruthPredicate_H 53 #define Patternist_TruthPredicate_H 85 Q_ASSERT_X(
false,
Q_FUNC_INFO,
"This is practically dead code because it never gets called in GenericPredicate, " 86 "which binds to its own mapToItem for completely legitime reasons.");
96 Q_ASSERT_X(
false,
Q_FUNC_INFO,
"I don't expect this function to be called, for the same reasons as above.");
98 return makeSingletonIterator(item);
#define QT_END_NAMESPACE
This macro expands to.
virtual ExpressionVisitorResult::Ptr accept(const ExpressionVisitor::Ptr &visitor) const
virtual SequenceType::List expectedOperandTypes() const
static const EmptyIterator< Item >::Ptr emptyIterator
#define QT_BEGIN_NAMESPACE
This macro expands to.
Item::Iterator::Ptr map(const Item &item, const DynamicContext::Ptr &context) const
The namespace for the internal API of QtXmlPatterns.
A predicate that can handle all kinds of predicates and is therefore not very efficient, but can cope with all the tricky scenarios.
Item mapToItem(const Item &item, const DynamicContext::Ptr &context) const
#define Q_ASSERT_X(cond, where, what)
Represents an item in the XPath 2.0 Data Model.
TruthPredicate(const Expression::Ptr &sourceExpression, const Expression::Ptr &predicate)
A predicate which is optimized for filter expressions that are of type xs:boolean.
Expression::Ptr m_operand2
The QList class is a template class that provides lists.