Qt 4.8
|
Baseclass for classes being references to variables. More...
#include <qvariablereference_p.h>
Public Functions | |
virtual Properties | properties () const |
VariableSlotID | slot () const |
VariableReference (const VariableSlotID slot) | |
Public Functions inherited from QPatternist::EmptyContainer | |
virtual Expression::List | operands () const |
virtual void | setOperands (const Expression::List &) |
Public Functions inherited from QPatternist::Expression | |
virtual ExpressionVisitorResult::Ptr | accept (const ExpressionVisitor::Ptr &visitor) const =0 |
virtual const SourceLocationReflection * | actualReflection () const |
Returns this . More... | |
virtual void | announceFocusType (const ItemType::Ptr &itemType) |
virtual Expression::Ptr | compress (const StaticContext::Ptr &context) |
Properties | deepProperties () const |
Computes the union of properties for this Expression and all its descending children. More... | |
virtual Properties | dependencies () const |
virtual QString | description () const |
virtual bool | evaluateEBV (const DynamicContext::Ptr &context) const |
virtual Item::Iterator::Ptr | evaluateSequence (const DynamicContext::Ptr &context) const |
virtual Item | evaluateSingleton (const DynamicContext::Ptr &context) const |
virtual void | evaluateToSequenceReceiver (const DynamicContext::Ptr &context) const |
virtual ItemType::Ptr | expectedContextItemType () const |
Expression () | |
bool | has (const Property prop) const |
bool | hasDependency (const Property prop) const |
virtual ID | id () const |
bool | is (const ID id) const |
bool | isEvaluated () const |
virtual ItemType::Ptr | newFocusType () const |
virtual QList< QExplicitlySharedDataPointer< OptimizationPass > > | optimizationPasses () const |
virtual PatternPriority | patternPriority () const |
const Expression::Ptr & | rewrite (const Expression::Ptr &to, const StaticContext::Ptr &context) const |
Rewrites this Expression to to , and return to . More... | |
virtual SequenceType::Ptr | staticType () const =0 |
virtual Expression::Ptr | typeCheck (const StaticContext::Ptr &context, const SequenceType::Ptr &reqType) |
virtual | ~Expression () |
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... | |
Public Functions inherited from QPatternist::CppCastingHelper< Expression > | |
const TCastTarget * | as () const |
TCastTarget * | as () |
Public Functions inherited from QPatternist::SourceLocationReflection | |
virtual QSourceLocation | sourceLocation () const |
SourceLocationReflection () | |
virtual | ~SourceLocationReflection () |
Properties | |
const VariableSlotID | m_varSlot |
Additional Inherited Members | |
Static Public Functions inherited from QPatternist::Expression | |
static void | rewrite (Expression::Ptr &old, const Expression::Ptr &New, const StaticContext::Ptr &context) |
Public Variables inherited from QSharedData | |
QAtomicInt | ref |
Protected Functions inherited from QPatternist::EmptyContainer | |
virtual bool | compressOperands (const StaticContext::Ptr &context) |
virtual SequenceType::List | expectedOperandTypes () const |
Protected Functions inherited from QPatternist::Expression | |
void | typeCheckOperands (const StaticContext::Ptr &context) |
Protected Functions inherited from QPatternist::CppCastingHelper< Expression > | |
CppCastingHelper () | |
Baseclass for classes being references to variables.
Definition at line 71 of file qvariablereference_p.h.
Definition at line 75 of file qvariablereference_p.h.
Definition at line 74 of file qvariablereference_p.h.
VariableReference::VariableReference | ( | const VariableSlotID | slot | ) |
Creates a VariableReference.
slot | must be a valid slot. That is, zero or larger. |
Definition at line 48 of file qvariablereference.cpp.
|
virtual |
Reimplemented from QPatternist::Expression.
Reimplemented in QPatternist::PositionalVariableReference, and QPatternist::RangeVariableReference.
Definition at line 53 of file qvariablereference.cpp.
|
inline |
This is a slot in the DynamicContext. Which one, depends on the type, which this VariableReference does not have information about. For instance, it could DynamicContext::expressionVariable() or DynamicContext::rangeVariable().
Definition at line 110 of file qvariablereference_p.h.
Referenced by QPatternist::checkVariableCircularity(), QPatternist::ArgumentReference::evaluateEBV(), QPatternist::RangeVariableReference::evaluateEBV(), QPatternist::ExpressionVariableReference::evaluateEBV(), QPatternist::ArgumentReference::evaluateSequence(), QPatternist::ExpressionVariableReference::evaluateSequence(), QPatternist::PositionalVariableReference::evaluateSingleton(), QPatternist::ArgumentReference::evaluateSingleton(), QPatternist::RangeVariableReference::evaluateSingleton(), and QPatternist::ExpressionVariableReference::evaluateSingleton().
|
private |
The slot. Same as returned by slot().
This variable is not called m_slot, because that creates a weird compiler error on hpuxi-acc. See the preprocessor output. EvaluationCache::m_varSlot is a similar workaround.
Definition at line 107 of file qvariablereference_p.h.
Referenced by slot(), and VariableReference().