54 const LocationHash &locations) : m_messageHandler(errHandler)
55 , m_currentDateTime(
QDateTime::currentDateTime().toTimeSpec(
Qt::
UTC))
58 , m_locations(locations)
83 Q_ASSERT_X(
false,
Q_FUNC_INFO,
"That this function is called makes no sense. A Focus should be used.");
94 Q_ASSERT_X(
false,
Q_FUNC_INFO,
"That this function is called makes no sense. A Focus should be used.");
100 Q_ASSERT_X(
false,
Q_FUNC_INFO,
"That this function is called makes no sense. A Focus should be used.");
ResourceLoader::Ptr m_resourceLoader
virtual xsInteger contextPosition() const
virtual void setFocusIterator(const Item::Iterator::Ptr &it)
A push interface for the XPath Data Model. Similar to SAX's ContentHandler.
#define QT_END_NAMESPACE
This macro expands to.
virtual Item::Iterator::Ptr focusIterator() const
virtual QAbstractXmlReceiver * outputReceiver() const
const QAbstractUriResolver * m_uriResolver
virtual const SourceLocationReflection * actualReflection() const =0
virtual void addNodeModel(const QAbstractXmlNodeModel::Ptr &nm)
const LocationHash m_locations
The QUrl class provides a convenient interface for working with URLs.
virtual QDateTime currentDateTime() const
virtual QExplicitlySharedDataPointer< TemplateMode > currentTemplateMode() const
Returns the current template mode that is in effect.
The QHash class is a template class that provides a hash-table-based dictionary.
const T value(const Key &key) const
Returns the value associated with the key.
Q_DECL_CONSTEXPR const T & qMax(const T &a, const T &b)
virtual const QAbstractUriResolver * uriResolver() const
The URI resolver in use.
void resize(int size)
Sets the size of the vector to size.
QExplicitlySharedDataPointer< QAbstractXmlForwardIterator< Item > > Ptr
A smart pointer wrapping an instance of a QAbstractXmlForwardIterator subclass.
virtual ItemSequenceCacheCell::Vector & globalItemSequenceCacheCells(const VariableSlotID slot)
virtual xsInteger contextSize()
virtual NodeBuilder::Ptr nodeBuilder(const QUrl &baseURI) const
void append(const T &t)
Inserts value at the end of the list.
The QAbstractUriResolver class is a callback interface for resolving Uniform Resource Identifiers...
#define QT_BEGIN_NAMESPACE
This macro expands to.
const QDateTime m_currentDateTime
virtual Item contextItem() const
void setResourceLoader(const ResourceLoader::Ptr &loader)
NodeBuilder::Ptr m_nodeBuilder
The namespace for the internal API of QtXmlPatterns.
ExternalVariableLoader::Ptr m_externalVariableLoader
Represents a cache entry for a single Item, as opposed to for a sequence of items.
The QSourceLocation class identifies a location in a resource by URI, line, and column.
virtual NodeBuilder::Ptr create(const QUrl &baseURI) const =0
Creates a copy of this NodeBuilder, that operates independently of this NodeBuilder.
virtual ResourceLoader::Ptr resourceLoader() const
ItemCacheCell::Vector m_globalItemCacheCells
virtual NamePool::Ptr namePool() const
virtual QExplicitlySharedDataPointer< DayTimeDuration > implicitTimezone() const
QAbstractXmlNodeModel::List m_nodeModels
QAbstractXmlReceiver * m_outputReceiver
virtual ExternalVariableLoader::Ptr externalVariableLoader() const
#define Q_ASSERT_X(cond, where, what)
void setExternalVariableLoader(const ExternalVariableLoader::Ptr &loader)
The QDateTime class provides date and time functions.
Represents an item in the XPath 2.0 Data Model.
The QAbstractMessageHandler class provides a callback interface for handling messages.
static const DayTimeDuration::Ptr DayTimeDurationZero
virtual QAbstractMessageHandler * messageHandler() const
GenericDynamicContext(const NamePool::Ptr &np, QAbstractMessageHandler *const messageHandler, const LocationHash &locations)
QExplicitlySharedDataPointer< DynamicContext > Ptr
virtual Item currentItem() const
virtual QSourceLocation locationFor(const SourceLocationReflection *const reflection) const
Returns the source location applying for reflection.
void setUriResolver(const QAbstractUriResolver *const resolver)
ItemSequenceCacheCell::Vector m_globalItemSequenceCacheCells
virtual ItemCacheCell & globalItemCacheCell(const VariableSlotID slot)
void setNodeBuilder(NodeBuilder::Ptr &builder)
void setOutputReceiver(QAbstractXmlReceiver *const receiver)
int size() const
Returns the number of items in the vector.
QAbstractMessageHandler * m_messageHandler
virtual DynamicContext::Ptr previousContext() const
Returns always null, since we're always a top-level context.
Base class for all instances that represents something at a certain location.