Qt 4.8
|
Base class for dynamic contexts that are created from an existing one. More...
#include <qdelegatingdynamiccontext_p.h>
Protected Functions | |
DelegatingDynamicContext (const DynamicContext::Ptr &prevContext) | |
Protected Variables | |
const DynamicContext::Ptr | m_prevContext |
Base class for dynamic contexts that are created from an existing one.
In some cases multiple DynamicContext instances must be used in order to maintain somekind of scope. This class delegates the DynamicContext interface onto another DynamicContext instance, allowing the sub-class to only implement what it needs to.
Definition at line 75 of file qdelegatingdynamiccontext_p.h.
|
protected |
Definition at line 53 of file qdelegatingdynamiccontext.cpp.
|
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
.
Implements QPatternist::DynamicContext.
Reimplemented in QPatternist::TemporaryTreesRedirectingContext.
Definition at line 172 of file qdelegatingdynamiccontext.cpp.
|
virtual |
Implements QPatternist::DynamicContext.
Reimplemented in QPatternist::Focus.
Definition at line 74 of file qdelegatingdynamiccontext.cpp.
|
virtual |
Implements QPatternist::DynamicContext.
Reimplemented in QPatternist::Focus.
Definition at line 69 of file qdelegatingdynamiccontext.cpp.
|
virtual |
Implements QPatternist::DynamicContext.
Reimplemented in QPatternist::Focus.
Definition at line 79 of file qdelegatingdynamiccontext.cpp.
|
virtual |
Implements QPatternist::DynamicContext.
Definition at line 137 of file qdelegatingdynamiccontext.cpp.
|
virtual |
Returns the item that fn:current()
returns.
Hence, this is not the focus, and very different from the focus.
Implements QPatternist::DynamicContext.
Reimplemented in QPatternist::Focus, and QPatternist::CurrentItemContext.
Definition at line 192 of file qdelegatingdynamiccontext.cpp.
|
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.
Implements QPatternist::DynamicContext.
Definition at line 207 of file qdelegatingdynamiccontext.cpp.
|
virtual |
Implements QPatternist::DynamicContext.
Definition at line 122 of file qdelegatingdynamiccontext.cpp.
|
virtual |
Implements QPatternist::DynamicContext.
Definition at line 157 of file qdelegatingdynamiccontext.cpp.
|
virtual |
Implements QPatternist::DynamicContext.
Reimplemented in QPatternist::Focus.
Definition at line 106 of file qdelegatingdynamiccontext.cpp.
|
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:
Implements QPatternist::DynamicContext.
Definition at line 182 of file qdelegatingdynamiccontext.cpp.
|
virtual |
Same as itemSequenceCacheCells() but applies only for global variables.
Implements QPatternist::DynamicContext.
Definition at line 187 of file qdelegatingdynamiccontext.cpp.
|
virtual |
Implements QPatternist::DynamicContext.
Definition at line 132 of file qdelegatingdynamiccontext.cpp.
|
virtual |
This function intentionally returns by reference.
Implements QPatternist::DynamicContext.
Definition at line 59 of file qdelegatingdynamiccontext.cpp.
|
virtual |
This function intentionally returns by reference.
Implements QPatternist::DynamicContext.
Definition at line 64 of file qdelegatingdynamiccontext.cpp.
|
virtual |
Returns the source location applying for reflection
.
Implements QPatternist::ReportContext.
Definition at line 167 of file qdelegatingdynamiccontext.cpp.
|
virtual |
null
; a valid QAbstractMessageHandler pointer must always be returned. Implements QPatternist::ReportContext.
Definition at line 127 of file qdelegatingdynamiccontext.cpp.
|
virtual |
Implements QPatternist::DynamicContext.
Definition at line 162 of file qdelegatingdynamiccontext.cpp.
|
virtual |
Implements QPatternist::DynamicContext.
Definition at line 147 of file qdelegatingdynamiccontext.cpp.
|
virtual |
Implements QPatternist::DynamicContext.
Reimplemented in QPatternist::ReceiverDynamicContext.
Definition at line 142 of file qdelegatingdynamiccontext.cpp.
|
virtual |
Implements QPatternist::DynamicContext.
Definition at line 89 of file qdelegatingdynamiccontext.cpp.
|
virtual |
Returns the previous DynamicContext. If this context is the top-level one, null
is returned.
Implements QPatternist::DynamicContext.
Definition at line 202 of file qdelegatingdynamiccontext.cpp.
|
virtual |
Implements QPatternist::DynamicContext.
Definition at line 111 of file qdelegatingdynamiccontext.cpp.
|
virtual |
Implements QPatternist::DynamicContext.
Definition at line 152 of file qdelegatingdynamiccontext.cpp.
|
virtual |
Definition at line 116 of file qdelegatingdynamiccontext.cpp.
|
virtual |
Reimplemented in QPatternist::Focus.
Definition at line 84 of file qdelegatingdynamiccontext.cpp.
|
virtual |
Definition at line 94 of file qdelegatingdynamiccontext.cpp.
|
virtual |
Implements QPatternist::DynamicContext.
Definition at line 100 of file qdelegatingdynamiccontext.cpp.
|
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.
Implements QPatternist::DynamicContext.
Definition at line 197 of file qdelegatingdynamiccontext.cpp.
|
virtual |
The URI resolver in use.
If no URI resolver is in use, a null
pointer is returned.
null
. Implements QPatternist::ReportContext.
Definition at line 177 of file qdelegatingdynamiccontext.cpp.
|
protected |
Definition at line 122 of file qdelegatingdynamiccontext_p.h.
Referenced by addNodeModel(), contextItem(), contextPosition(), contextSize(), currentDateTime(), QPatternist::Focus::currentItem(), currentItem(), currentTemplateMode(), DelegatingDynamicContext(), expressionVariable(), externalVariableLoader(), focusIterator(), globalItemCacheCell(), globalItemSequenceCacheCells(), implicitTimezone(), itemCacheCell(), itemSequenceCacheCells(), locationFor(), messageHandler(), namePool(), nodeBuilder(), outputReceiver(), positionIterator(), previousContext(), rangeVariable(), resourceLoader(), setExpressionVariable(), setFocusIterator(), setPositionIterator(), setRangeVariable(), templateParameterStore(), and uriResolver().