Qt 4.8
|
A reference to an external variable. More...
#include <qexternalvariablereference_p.h>
Properties | |
const QXmlName | m_name |
const SequenceType::Ptr | m_seqType |
A reference to an external variable.
ExternalVariableReference does not sub-class VariableReference, because it works differently from how sub-classes of VariableReference do. This class uses DynamicContext::externalVariableLoader() for retrieving its value, while a VariableReference sub-class uses slots in the DynamicContext.
Definition at line 74 of file qexternalvariablereference_p.h.
ExternalVariableReference::ExternalVariableReference | ( | const QXmlName & | name, |
const SequenceType::Ptr & | type | ||
) |
Definition at line 49 of file qexternalvariablereference.cpp.
|
virtual |
Implements QPatternist::Expression.
Definition at line 83 of file qexternalvariablereference.cpp.
|
virtual |
Determines the Effective Boolean Value of the expression.
The Effective Boolean Value of a value is not necessarily the same as converting the value to a new value of type xs:boolean.
Note that this function cannot return the empty sequence, evaluateSingleton() must be overridden in order to be able to do that.
The default implementation results in a type error. Hence, this function must be overridden if such behavior is not of interest.
Reimplemented from QPatternist::Expression.
Definition at line 68 of file qexternalvariablereference.cpp.
|
virtual |
Evaluate this Expression by iterating over it. This is a central function for evaluating expressions.
Expressions must always always return a valid QAbstractXmlForwardIterator and may never return 0. If an empty result is of interest to be returned, the EmptyIterator should be returned.
The default implementation returns a SingletonIterator over the item returned from evaluateSingleton().
Reimplemented from QPatternist::Expression.
Definition at line 57 of file qexternalvariablereference.cpp.
|
virtual |
Reimplemented from QPatternist::Expression.
Definition at line 63 of file qexternalvariablereference.cpp.
|
virtual |
Reimplemented from QPatternist::Expression.
Definition at line 78 of file qexternalvariablereference.cpp.
|
virtual |
Implements QPatternist::Expression.
Definition at line 73 of file qexternalvariablereference.cpp.
|
private |
Definition at line 94 of file qexternalvariablereference_p.h.
Referenced by evaluateEBV(), evaluateSequence(), evaluateSingleton(), and ExternalVariableReference().
|
private |
Definition at line 95 of file qexternalvariablereference_p.h.
Referenced by ExternalVariableReference(), and staticType().