Qt 4.8
|
A factory for creating Expression instances. More...
#include <qoptimizerframework_p.h>
Public Types | |
typedef QExplicitlySharedDataPointer< ExpressionCreator > | Ptr |
Public Functions | |
virtual Expression::Ptr | create (const Expression::List &operands, const StaticContext::Ptr &context, const SourceLocationReflection *const) const =0 |
ExpressionCreator () | |
virtual | ~ExpressionCreator () |
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 |
A factory for creating Expression instances.
ExpressionIdentifier is one of the building block of Patternist's optimizer framework. An ExpressionIdentifier sub-class has the responsibility of creating the Expression that should be the result of the optimization.
This class and sub-classes are never used on their own, but in cooperation with OptimizationPass.
Definition at line 79 of file qoptimizerframework_p.h.
Definition at line 82 of file qoptimizerframework_p.h.
|
inline |
For some reason this constructor cannot be synthesized.
Definition at line 87 of file qoptimizerframework_p.h.
|
virtual |
|
pure virtual |
Creates an expression that has operands
as operands.
The Expression that is returned is guaranteed, by the caller, to get a treatment identical to if the expression was created in an ordinary compilation(via the parser, and so forth). That is, Expression::typeCheck() and Expression::compress() stages will be carried out on the returned expression.
null
, valid pointer Implemented in QPatternist::ByIDCreator.
Referenced by ExpressionCreator().