![]() |
Qt 4.8
|
Identifies Expression instances based on their static type. More...
#include <qoptimizerblocks_p.h>
Public Functions | |
| BySequenceTypeIdentifier (const SequenceType::Ptr &seqType) | |
| virtual bool | matches (const Expression::Ptr &expr) const |
Public Functions inherited from QPatternist::ExpressionIdentifier | |
| ExpressionIdentifier () | |
| virtual | ~ExpressionIdentifier () |
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... | |
Properties | |
| const SequenceType::Ptr | m_seqType |
Additional Inherited Members | |
Public Types inherited from QPatternist::ExpressionIdentifier | |
| typedef QList< ExpressionIdentifier::Ptr > | List |
| typedef QExplicitlySharedDataPointer< ExpressionIdentifier > | Ptr |
Public Variables inherited from QSharedData | |
| QAtomicInt | ref |
Identifies Expression instances based on their static type.
BySequenceTypeIdentifier identifies Expression instances if their Expression::staticType() matches the requested one, regardless of whether the Expression is a particular one, such as AndExpression.
For example, constructing a BySequenceTypeIdentifier while passing CommonSequenceTypes::EBV in its constructor will create a ExpressionIdentifier that returns true for a static type with item type xs:string, but returns false for a static type involving xs:date.
Definition at line 97 of file qoptimizerblocks_p.h.
| BySequenceTypeIdentifier::BySequenceTypeIdentifier | ( | const SequenceType::Ptr & | seqType | ) |
Definition at line 94 of file qoptimizerblocks.cpp.
|
virtual |
true, if the static type of expr is matches the SequenceType passed in the BySequenceTypeIdentifier() constructor, otherwise false. Implements QPatternist::ExpressionIdentifier.
Definition at line 99 of file qoptimizerblocks.cpp.
|
private |
Definition at line 110 of file qoptimizerblocks_p.h.
Referenced by matches().