Qt 4.8
|
A function created with XQuery's declare function
declaration.
More...
#include <quserfunction_p.h>
Public Types | |
typedef QList< UserFunction::Ptr > | List |
typedef QExplicitlySharedDataPointer< UserFunction > | Ptr |
Public Functions | |
VariableDeclaration::List | argumentDeclarations () const |
const Expression::Ptr & | body () const |
VariableSlotID | expressionSlotOffset () const |
void | setBody (const Expression::Ptr &newBody) |
FunctionSignature::Ptr | signature () const |
UserFunction (const FunctionSignature::Ptr &signature, const Expression::Ptr &body, const VariableSlotID slotOffset, const VariableDeclaration::List &varDecls) | |
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... | |
Properties | |
const VariableDeclaration::List | m_argumentDeclarations |
Expression::Ptr | m_body |
const FunctionSignature::Ptr | m_signature |
const VariableSlotID | m_slotOffset |
Additional Inherited Members | |
Public Variables inherited from QSharedData | |
QAtomicInt | ref |
A function created with XQuery's declare function
declaration.
Definition at line 77 of file quserfunction_p.h.
Definition at line 81 of file quserfunction_p.h.
Definition at line 80 of file quserfunction_p.h.
UserFunction::UserFunction | ( | const FunctionSignature::Ptr & | signature, |
const Expression::Ptr & | body, | ||
const VariableSlotID | slotOffset, | ||
const VariableDeclaration::List & | varDecls | ||
) |
If slotOffset
is -1, it means this function has no arguments.
Definition at line 49 of file quserfunction.cpp.
|
inline |
Definition at line 119 of file quserfunction_p.h.
Referenced by QPatternist::UserFunctionCallsite::setSource().
|
inline |
Definition at line 104 of file quserfunction_p.h.
Referenced by QPatternist::UserFunctionCallsite::setSource(), and QPatternist::UserFunctionCallsite::typeCheck().
|
inline |
Definition at line 114 of file quserfunction_p.h.
Referenced by QPatternist::UserFunctionCallsite::setSource().
|
inline |
Definition at line 124 of file quserfunction_p.h.
|
inline |
Definition at line 109 of file quserfunction_p.h.
Referenced by QPatternist::UserFunctionCallsite::callTargetDescription(), and QPatternist::UserFunctionCallsite::expectedOperandTypes().
|
private |
Definition at line 101 of file quserfunction_p.h.
Referenced by argumentDeclarations().
|
private |
Definition at line 99 of file quserfunction_p.h.
Referenced by body(), setBody(), and UserFunction().
|
private |
Definition at line 98 of file quserfunction_p.h.
Referenced by signature(), and UserFunction().
|
private |
Definition at line 100 of file quserfunction_p.h.
Referenced by expressionSlotOffset(), and UserFunction().