Qt 4.8
|
Abstract base class for all classes that identify Expressions based on some criteria. More...
#include <qoptimizerframework_p.h>
Public Types | |
typedef QList< ExpressionIdentifier::Ptr > | List |
typedef QExplicitlySharedDataPointer< ExpressionIdentifier > | Ptr |
Public Functions | |
ExpressionIdentifier () | |
virtual bool | matches (const Expression::Ptr &expr) const =0 |
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... | |
Additional Inherited Members | |
Public Variables inherited from QSharedData | |
QAtomicInt | ref |
Abstract base class for all classes that identify Expressions based on some criteria.
ExpressionIdentifier is one of the building block of Patternist's optimizer framework. An ExpressionIdentifier sub-class has the responsibility of determining whether a particular Expression is the one an OptimizationPass should apply for.
This class and sub-classes are never used on their own, but in cooperation with OptimizationPass.
Definition at line 126 of file qoptimizerframework_p.h.
Definition at line 130 of file qoptimizerframework_p.h.
Definition at line 129 of file qoptimizerframework_p.h.
|
inline |
For some reason this constructor cannot be synthesized.
Definition at line 135 of file qoptimizerframework_p.h.
|
virtual |
Definition at line 48 of file qoptimizerframework.cpp.
|
pure 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
. Implemented in QPatternist::BooleanIdentifier, QPatternist::IntegerIdentifier, QPatternist::ComparisonIdentifier, QPatternist::BySequenceTypeIdentifier, and QPatternist::ByIDIdentifier.