Qt 4.8
|
Creates a particular Expression instance identified by an Expression::ID. More...
#include <qoptimizerblocks_p.h>
Public Functions | |
ByIDCreator (const Expression::ID id) | |
virtual Expression::Ptr | create (const Expression::List &operands, const StaticContext::Ptr &context, const SourceLocationReflection *const r) const |
Public Functions inherited from QPatternist::ExpressionCreator | |
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... | |
Static Public Functions | |
static Expression::Ptr | create (const Expression::ID id, const Expression::List &operands, const StaticContext::Ptr &context, const SourceLocationReflection *const r) |
Properties | |
const Expression::ID | m_id |
Additional Inherited Members | |
Public Types inherited from QPatternist::ExpressionCreator | |
typedef QExplicitlySharedDataPointer< ExpressionCreator > | Ptr |
Public Variables inherited from QSharedData | |
QAtomicInt | ref |
Creates a particular Expression instance identified by an Expression::ID.
For example, if ByIDCreator() is passed Expression::IDCountFN, create() will return CountFN instances.
Definition at line 197 of file qoptimizerblocks_p.h.
ByIDCreator::ByIDCreator | ( | const Expression::ID | id | ) |
Creates a ByIDCreator that creates expressions of the type that id
identifies.
Definition at line 128 of file qoptimizerblocks.cpp.
|
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 Implements QPatternist::ExpressionCreator.
Definition at line 133 of file qoptimizerblocks.cpp.
Referenced by QPatternist::CountFN::typeCheck().
|
static |
Creates an expression by id id
with the arguments operands
.
Definition at line 140 of file qoptimizerblocks.cpp.
|
private |
Definition at line 218 of file qoptimizerblocks_p.h.
Referenced by create().