Qt 4.8
|
Carries information and facilities used at runtime, and hence provides a state for that stage in a thread-safe manner. More...
#include <qdynamiccontext_p.h>
Additional Inherited Members | |
Static Public Functions inherited from QPatternist::ReportContext | |
static QString | codeFromURI (const QString &typeURI, QString &uri) |
static QString | codeToString (const ReportContext::ErrorCode errorCode) |
Public Variables inherited from QSharedData | |
QAtomicInt | ref |
Related Functions inherited from QPatternist::ReportContext | |
typedef bool | Exception |
This is the class type that is being thrown when a query error occur. More... | |
Carries information and facilities used at runtime, and hence provides a state for that stage in a thread-safe manner.
Definition at line 88 of file qdynamiccontext_p.h.
Definition at line 98 of file qdynamiccontext_p.h.
typedef QHash<QXmlName, QExplicitlySharedDataPointer<Expression> > QPatternist::DynamicContext::TemplateParameterHash |
Carries template parameters at runtime.
The key is the name of the parameter, and the value the Expression which supplies the value.
Definition at line 97 of file qdynamiccontext_p.h.
|
inlinevirtual |
Definition at line 100 of file qdynamiccontext_p.h.
|
pure virtual |
Whenever a tree gets built, this function is called. DynamicContext has the responsibility of keeping a copy of nm
, such that it doesn't go out of scope, since no one else will reference nm
.
I think this is currently only used for temporary node trees. In other cases they are stored in the ExternalResourceLoader.
The caller guarantees that nm
is not null
.
Implemented in QPatternist::GenericDynamicContext, QPatternist::TemporaryTreesRedirectingContext, and QPatternist::DelegatingDynamicContext.
Referenced by QPatternist::DelegatingDynamicContext::addNodeModel(), QPatternist::CommentConstructor::evaluateSingleton(), QPatternist::TextNodeConstructor::evaluateSingleton(), QPatternist::ProcessingInstructionConstructor::evaluateSingleton(), QPatternist::AttributeConstructor::evaluateSingleton(), QPatternist::DocumentConstructor::evaluateSingleton(), QPatternist::ElementConstructor::evaluateSingleton(), and ~DynamicContext().
|
pure virtual |
Implemented in QPatternist::GenericDynamicContext, QPatternist::Focus, and QPatternist::DelegatingDynamicContext.
Referenced by QPatternist::DelegatingDynamicContext::contextItem(), QPatternist::CurrentItemStore::createContext(), QPatternist::AxisStep::evaluateSequence(), QPatternist::ApplyTemplate::evaluateSequence(), QPatternist::UnparsedEntityPublicIDFN::evaluateSingleton(), QPatternist::UnparsedEntityURIFN::evaluateSingleton(), QPatternist::ParentNodeAxis::evaluateSingleton(), QPatternist::AxisStep::evaluateSingleton(), QPatternist::ContextItem::evaluateSingleton(), and ~DynamicContext().
|
pure virtual |
|
pure virtual |
DynamicContext::Ptr DynamicContext::createFocus | ( | ) |
Definition at line 52 of file qdynamiccontext.cpp.
Referenced by QPatternist::ApplyTemplate::evaluateSequence(), QPatternist::GenericPredicate::evaluateSequence(), QPatternist::Path::evaluateSequence(), QPatternist::Path::evaluateSingleton(), QPatternist::GenericPredicate::evaluateSingleton(), QPatternist::Path::evaluateToSequenceReceiver(), and ~DynamicContext().
DynamicContext::Ptr DynamicContext::createReceiverContext | ( | QAbstractXmlReceiver *const | receiver | ) |
Definition at line 62 of file qdynamiccontext.cpp.
Referenced by QPatternist::DocumentConstructor::evaluateSingleton(), QPatternist::ElementConstructor::evaluateSingleton(), QPatternist::DocumentConstructor::evaluateToSequenceReceiver(), QPatternist::ElementConstructor::evaluateToSequenceReceiver(), and ~DynamicContext().
DynamicContext::Ptr DynamicContext::createStack | ( | ) |
Definition at line 57 of file qdynamiccontext.cpp.
Referenced by QPatternist::UserFunctionCallsite::bindVariables(), QPatternist::Template::createContext(), and ~DynamicContext().
|
pure virtual |
Implemented in QPatternist::DelegatingDynamicContext, and QPatternist::GenericDynamicContext.
Referenced by QPatternist::DelegatingDynamicContext::currentDateTime(), QPatternist::CurrentDateTimeFN::evaluateSingleton(), QPatternist::CurrentDateFN::evaluateSingleton(), QPatternist::CurrentTimeFN::evaluateSingleton(), and ~DynamicContext().
|
pure virtual |
Returns the item that fn:current()
returns.
Hence, this is not the focus, and very different from the focus.
Implemented in QPatternist::GenericDynamicContext, QPatternist::DelegatingDynamicContext, QPatternist::Focus, and QPatternist::CurrentItemContext.
Referenced by QPatternist::Focus::currentItem(), QPatternist::DelegatingDynamicContext::currentItem(), QPatternist::CurrentFN::evaluateSingleton(), and ~DynamicContext().
|
pure virtual |
Returns the current template mode that is in effect.
If null
is returned, it means that the default mode should be used as the current mode.
Implemented in QPatternist::GenericDynamicContext, and QPatternist::DelegatingDynamicContext.
Referenced by QPatternist::DelegatingDynamicContext::currentTemplateMode(), QPatternist::ApplyTemplate::effectiveMode(), and ~DynamicContext().
|
pure virtual |
Implemented in QPatternist::StackContextBase< DynamicContext >, and QPatternist::DelegatingDynamicContext.
Referenced by QPatternist::ArgumentReference::evaluateEBV(), QPatternist::ExpressionVariableReference::evaluateEBV(), QPatternist::ArgumentReference::evaluateSequence(), QPatternist::ExpressionVariableReference::evaluateSequence(), QPatternist::ArgumentReference::evaluateSingleton(), QPatternist::ExpressionVariableReference::evaluateSingleton(), QPatternist::DelegatingDynamicContext::expressionVariable(), and ~DynamicContext().
|
pure virtual |
Implemented in QPatternist::GenericDynamicContext, and QPatternist::DelegatingDynamicContext.
Referenced by QPatternist::ExternalVariableReference::evaluateEBV(), QPatternist::ExternalVariableReference::evaluateSequence(), QPatternist::ExternalVariableReference::evaluateSingleton(), QPatternist::DelegatingDynamicContext::externalVariableLoader(), and ~DynamicContext().
|
pure virtual |
|
pure virtual |
Same as itemCacheCell(), but is only used for global varibles. This is needed because sometimes stack frames needs to be created for other kinds of variables(such as in the case of user function calls), while the global variable(s) needs to continue to use the same cache, instead of one for each new stack frame, typically an instance of StackContextBase.
This has two effects:
Implemented in QPatternist::GenericDynamicContext, and QPatternist::DelegatingDynamicContext.
Referenced by QPatternist::DelegatingDynamicContext::globalItemCacheCell(), and ~DynamicContext().
|
pure virtual |
Same as itemSequenceCacheCells() but applies only for global variables.
Implemented in QPatternist::GenericDynamicContext, and QPatternist::DelegatingDynamicContext.
Referenced by QPatternist::DelegatingDynamicContext::globalItemSequenceCacheCells(), and ~DynamicContext().
|
pure virtual |
|
pure virtual |
This function intentionally returns by reference.
Implemented in QPatternist::StackContextBase< DynamicContext >, and QPatternist::DelegatingDynamicContext.
Referenced by QPatternist::DelegatingDynamicContext::itemCacheCell(), and ~DynamicContext().
|
pure virtual |
This function intentionally returns by reference.
Implemented in QPatternist::StackContextBase< DynamicContext >, and QPatternist::DelegatingDynamicContext.
Referenced by QPatternist::DelegatingDynamicContext::itemSequenceCacheCells(), and ~DynamicContext().
|
pure virtual |
Implements QPatternist::ReportContext.
Implemented in QPatternist::GenericDynamicContext, and QPatternist::DelegatingDynamicContext.
Referenced by QPatternist::DocumentContentValidator::attribute(), QPatternist::OutputValidator::attribute(), QPatternist::DurationNumericMathematician::calculate(), QPatternist::StringToHexBinaryCaster::castFrom(), QPatternist::ContextNodeChecker::checkTargetNode(), QPatternist::Template::createContext(), QPatternist::AtomicValue::evaluateEBV(), QPatternist::InScopePrefixesFN::evaluateSequence(), QPatternist::FunctionAvailableFN::evaluateSingleton(), QPatternist::AttributeNameValidator::evaluateSingleton(), QPatternist::NodeNameFN::evaluateSingleton(), QPatternist::NameFN::evaluateSingleton(), QPatternist::QNameFN::evaluateSingleton(), QPatternist::QNameConstructor::evaluateSingleton(), QPatternist::ErrorFN::evaluateSingleton(), QPatternist::LocalNameFN::evaluateSingleton(), QPatternist::NamespaceURIFN::evaluateSingleton(), QPatternist::PrefixFromQNameFN::evaluateSingleton(), QPatternist::LocalNameFromQNameFN::evaluateSingleton(), QPatternist::NamespaceURIFromQNameFN::evaluateSingleton(), QPatternist::NamespaceURIForPrefixFN::evaluateSingleton(), QPatternist::ProcessingInstructionConstructor::evaluateTardata(), QPatternist::ComputedNamespaceConstructor::evaluateToSequenceReceiver(), QPatternist::TraceCallback::mapToItem(), QPatternist::DelegatingDynamicContext::namePool(), QPatternist::ItemVerifier::verifyItem(), and ~DynamicContext().
|
pure virtual |
Implemented in QPatternist::DelegatingDynamicContext, and QPatternist::GenericDynamicContext.
Referenced by QPatternist::CommentConstructor::evaluateSingleton(), QPatternist::TextNodeConstructor::evaluateSingleton(), QPatternist::AttributeConstructor::evaluateSingleton(), QPatternist::ProcessingInstructionConstructor::evaluateSingleton(), QPatternist::DocumentConstructor::evaluateSingleton(), QPatternist::ElementConstructor::evaluateSingleton(), QPatternist::DelegatingDynamicContext::nodeBuilder(), and ~DynamicContext().
|
pure virtual |
Implemented in QPatternist::DelegatingDynamicContext, QPatternist::GenericDynamicContext, and QPatternist::ReceiverDynamicContext.
Referenced by QPatternist::NamespaceConstructor::evaluateToSequenceReceiver(), QPatternist::CommentConstructor::evaluateToSequenceReceiver(), QPatternist::TextNodeConstructor::evaluateToSequenceReceiver(), QPatternist::AttributeConstructor::evaluateToSequenceReceiver(), QPatternist::ProcessingInstructionConstructor::evaluateToSequenceReceiver(), QPatternist::DocumentConstructor::evaluateToSequenceReceiver(), QPatternist::ElementConstructor::evaluateToSequenceReceiver(), QPatternist::Literal::evaluateToSequenceReceiver(), QPatternist::CopyOf::evaluateToSequenceReceiver(), QPatternist::Expression::evaluateToSequenceReceiver(), QPatternist::DelegatingDynamicContext::outputReceiver(), and ~DynamicContext().
|
pure virtual |
|
pure virtual |
Returns the previous DynamicContext. If this context is the top-level one, null
is returned.
Implemented in QPatternist::GenericDynamicContext, and QPatternist::DelegatingDynamicContext.
Referenced by ~DynamicContext().
|
pure virtual |
Implemented in QPatternist::StackContextBase< DynamicContext >, and QPatternist::DelegatingDynamicContext.
Referenced by QPatternist::RangeVariableReference::evaluateEBV(), QPatternist::RangeVariableReference::evaluateSingleton(), QPatternist::DelegatingDynamicContext::rangeVariable(), and ~DynamicContext().
|
pure virtual |
Implemented in QPatternist::GenericDynamicContext, and QPatternist::DelegatingDynamicContext.
Referenced by QPatternist::UnparsedTextAvailableFN::evaluateEBV(), QPatternist::DocAvailableFN::evaluateEBV(), QPatternist::UnparsedTextFN::evaluateSingleton(), QPatternist::DocFN::evaluateSingleton(), QPatternist::DelegatingDynamicContext::resourceLoader(), and ~DynamicContext().
|
pure virtual |
|
pure virtual |
Referenced by QPatternist::ApplyTemplate::evaluateSequence(), QPatternist::GenericPredicate::evaluateSequence(), QPatternist::Path::evaluateSequence(), QPatternist::Path::evaluateSingleton(), QPatternist::GenericPredicate::evaluateSingleton(), QPatternist::Path::evaluateToSequenceReceiver(), QPatternist::DelegatingDynamicContext::setFocusIterator(), and ~DynamicContext().
|
pure virtual |
|
pure virtual |
Implemented in QPatternist::StackContextBase< DynamicContext >, and QPatternist::DelegatingDynamicContext.
Referenced by QPatternist::ForClause::evaluateToSequenceReceiver(), QPatternist::ForClause::mapToItem(), QPatternist::QuantifiedExpression::mapToItem(), QPatternist::ForClause::mapToSequence(), QPatternist::DelegatingDynamicContext::setRangeVariable(), and ~DynamicContext().
|
pure virtual |
When a template is called, this member carries the template parameters.
Hence this is similar to the other variable stack functions such as rangeVariable() and expressionVariable(), the difference being that the order of template parameters as well as its arguments can appear in arbitrary order. Hence the name is used to make the order insignificant.
Implemented in QPatternist::DelegatingDynamicContext, and QPatternist::StackContextBase< DynamicContext >.
Referenced by QPatternist::TemplateParameterReference::evaluateEBV(), QPatternist::TemplateParameterReference::evaluateSequence(), QPatternist::TemplateParameterReference::evaluateSingleton(), QPatternist::DelegatingDynamicContext::templateParameterStore(), and ~DynamicContext().