Qt 4.8
|
A reference to an argument declared in a UserFunction. More...
#include <qargumentreference_p.h>
Properties | |
const SequenceType::Ptr | m_type |
A reference to an argument declared in a UserFunction.
This is in other words a variable reference in side a function body, that references a function argument.
Definition at line 72 of file qargumentreference_p.h.
ArgumentReference::ArgumentReference | ( | const SequenceType::Ptr & | sourceType, |
const VariableSlotID | slot | ||
) |
Definition at line 49 of file qargumentreference.cpp.
|
virtual |
Implements QPatternist::Expression.
Definition at line 76 of file qargumentreference.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 56 of file qargumentreference.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 66 of file qargumentreference.cpp.
|
virtual |
Reimplemented from QPatternist::Expression.
Definition at line 61 of file qargumentreference.cpp.
|
virtual |
This property, which has no setter, returns an enum value that uniquely identifies this Expression. Patternist makes no use of C++'s dynamic_cast feature, but uses this polymorphic function instead.
Reimplemented from QPatternist::Expression.
Definition at line 81 of file qargumentreference.cpp.
|
virtual |
Implements QPatternist::Expression.
Definition at line 71 of file qargumentreference.cpp.
|
private |
Definition at line 86 of file qargumentreference_p.h.
Referenced by ArgumentReference(), and staticType().