Qt 4.8
|
Identifies Expression instances by their Expression::id(). More...
#include <qoptimizerblocks_p.h>
Public Functions | |
ByIDIdentifier (const Expression::ID id) | |
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 Expression::ID | m_id |
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 by their Expression::id().
Definition at line 71 of file qoptimizerblocks_p.h.
ByIDIdentifier::ByIDIdentifier | ( | const Expression::ID | id | ) |
Definition at line 57 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 61 of file qoptimizerblocks.cpp.
|
private |
Definition at line 77 of file qoptimizerblocks_p.h.
Referenced by matches().