Qt 4.8
|
Matches numeric literals that are of type xs:integer and has a specific value. More...
#include <qoptimizerblocks_p.h>
Public Functions | |
IntegerIdentifier (const xsInteger num) | |
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 xsInteger | m_num |
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 |
Matches numeric literals that are of type xs:integer and has a specific value.
For example IntegerIdentifier(4) would match the former but not the latter operand in this expression: "4 + 5".
Definition at line 159 of file qoptimizerblocks_p.h.
IntegerIdentifier::IntegerIdentifier | ( | const xsInteger | num | ) |
Definition at line 108 of file qoptimizerblocks.cpp.
|
virtual |
expr | the Expression to be tested. This is guranteed to always be a non null , valid pointer. |
true
if expr
matches as according to this ExpressionIdentifier, otherwise false
. Implements QPatternist::ExpressionIdentifier.
Definition at line 112 of file qoptimizerblocks.cpp.
|
private |
Definition at line 166 of file qoptimizerblocks_p.h.
Referenced by matches().