Qt 4.8
|
A DynamicContext supplying basic information that always is used. More...
#include <qgenericdynamiccontext_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 |
Protected Functions inherited from QPatternist::StackContextBase< DynamicContext > | |
void | setSlotVariable (const VariableSlotID slot, const UnitType &newValue, VectorType &container) const |
Related Functions inherited from QPatternist::ReportContext | |
typedef bool | Exception |
This is the class type that is being thrown when a query error occur. More... | |
A DynamicContext supplying basic information that always is used.
This DynamicContext is the first DynamicContext used during a run and is always used. In addition, more contexts, such as a Focus can be created.
Definition at line 77 of file qgenericdynamiccontext_p.h.
Definition at line 80 of file qgenericdynamiccontext_p.h.
GenericDynamicContext::GenericDynamicContext | ( | const NamePool::Ptr & | np, |
QAbstractMessageHandler *const | messageHandler, | ||
const LocationHash & | locations | ||
) |
Definition at line 52 of file qgenericdynamiccontext.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.
Definition at line 159 of file qgenericdynamiccontext.cpp.
|
virtual |
null
, the focus is always undefined when an GenericDynamicContext is used. Implements QPatternist::DynamicContext.
Definition at line 87 of file qgenericdynamiccontext.cpp.
|
virtual |
Implements QPatternist::DynamicContext.
Definition at line 81 of file qgenericdynamiccontext.cpp.
|
virtual |
Implements QPatternist::DynamicContext.
Definition at line 92 of file qgenericdynamiccontext.cpp.
|
virtual |
Implements QPatternist::DynamicContext.
Definition at line 76 of file qgenericdynamiccontext.cpp.
|
virtual |
We return a null item, we have no focus.
Implements QPatternist::DynamicContext.
Definition at line 190 of file qgenericdynamiccontext.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 200 of file qgenericdynamiccontext.cpp.
|
virtual |
Implements QPatternist::DynamicContext.
Definition at line 138 of file qgenericdynamiccontext.cpp.
|
virtual |
Implements QPatternist::DynamicContext.
Definition at line 103 of file qgenericdynamiccontext.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 169 of file qgenericdynamiccontext.cpp.
|
virtual |
Same as itemSequenceCacheCells() but applies only for global variables.
Implements QPatternist::DynamicContext.
Definition at line 177 of file qgenericdynamiccontext.cpp.
|
virtual |
Implements QPatternist::DynamicContext.
Definition at line 65 of file qgenericdynamiccontext.cpp.
|
virtual |
Returns the source location applying for reflection
.
Implements QPatternist::ReportContext.
Definition at line 153 of file qgenericdynamiccontext.cpp.
|
virtual |
null
; a valid QAbstractMessageHandler pointer must always be returned. Implements QPatternist::ReportContext.
Definition at line 71 of file qgenericdynamiccontext.cpp.
|
virtual |
Implements QPatternist::DynamicContext.
Definition at line 148 of file qgenericdynamiccontext.cpp.
|
virtual |
Implements QPatternist::DynamicContext.
Definition at line 123 of file qgenericdynamiccontext.cpp.
|
virtual |
Implements QPatternist::DynamicContext.
Definition at line 108 of file qgenericdynamiccontext.cpp.
|
virtual |
Returns always null
, since we're always a top-level context.
Implements QPatternist::DynamicContext.
Definition at line 195 of file qgenericdynamiccontext.cpp.
|
virtual |
Implements QPatternist::DynamicContext.
Definition at line 128 of file qgenericdynamiccontext.cpp.
void GenericDynamicContext::setExternalVariableLoader | ( | const ExternalVariableLoader::Ptr & | loader | ) |
Definition at line 143 of file qgenericdynamiccontext.cpp.
|
virtual |
Definition at line 98 of file qgenericdynamiccontext.cpp.
void GenericDynamicContext::setNodeBuilder | ( | NodeBuilder::Ptr & | builder | ) |
Definition at line 118 of file qgenericdynamiccontext.cpp.
void GenericDynamicContext::setOutputReceiver | ( | QAbstractXmlReceiver *const | receiver | ) |
Definition at line 113 of file qgenericdynamiccontext.cpp.
void GenericDynamicContext::setResourceLoader | ( | const ResourceLoader::Ptr & | loader | ) |
Definition at line 133 of file qgenericdynamiccontext.cpp.
void GenericDynamicContext::setUriResolver | ( | const QAbstractUriResolver *const | resolver | ) |
Definition at line 185 of file qgenericdynamiccontext.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 164 of file qgenericdynamiccontext.cpp.
|
private |
Definition at line 136 of file qgenericdynamiccontext_p.h.
Referenced by currentDateTime().
|
private |
Definition at line 140 of file qgenericdynamiccontext_p.h.
Referenced by externalVariableLoader(), and setExternalVariableLoader().
|
private |
Definition at line 146 of file qgenericdynamiccontext_p.h.
Referenced by globalItemCacheCell().
|
private |
Definition at line 147 of file qgenericdynamiccontext_p.h.
Referenced by globalItemSequenceCacheCells().
|
private |
Definition at line 143 of file qgenericdynamiccontext_p.h.
Referenced by locationFor().
|
private |
Definition at line 135 of file qgenericdynamiccontext_p.h.
Referenced by GenericDynamicContext(), and messageHandler().
|
private |
Definition at line 142 of file qgenericdynamiccontext_p.h.
Referenced by GenericDynamicContext(), and namePool().
|
mutableprivate |
Definition at line 139 of file qgenericdynamiccontext_p.h.
Referenced by nodeBuilder(), and setNodeBuilder().
|
private |
Definition at line 144 of file qgenericdynamiccontext_p.h.
Referenced by addNodeModel().
|
private |
Definition at line 138 of file qgenericdynamiccontext_p.h.
Referenced by outputReceiver(), and setOutputReceiver().
|
private |
Definition at line 141 of file qgenericdynamiccontext_p.h.
Referenced by resourceLoader(), and setResourceLoader().
|
private |
Definition at line 145 of file qgenericdynamiccontext_p.h.
Referenced by setUriResolver(), and uriResolver().
|
private |
Definition at line 137 of file qgenericdynamiccontext_p.h.