207 const Item attribute(index);
225 const Item attribute(index);
The QVariant class acts like a union for the most common Qt data types.
The QXmlNodeModelIndex class identifies a node in an XML node model subclassed from QAbstractXmlNodeM...
#define QT_END_NAMESPACE
This macro expands to.
bool isNull() const
Returns true if this QXmlNodeModelIndex is a default constructed value, otherwise false...
#define it(className, varName)
QXmlNodeModelIndex index() const
Due to strong interdependencies, this file contains the definitions for the classes Item...
The QXmlItem class contains either an XML node or an atomic value.
The QExplicitlySharedDataPointer class represents a pointer to an explicitly shared object...
QSourceLocation sourceLocation() const
The QString class provides a Unicode character string.
bool isNode() const
Determines whether this item is an atomic value, or a node.
iterator insert(const Key &key, const T &value)
Inserts a new item with the key and a value of value.
virtual QHash< QXmlName, QXmlItem > attributeItems()
T pop()
Removes the top item from the stack and returns it.
#define QT_BEGIN_NAMESPACE
This macro expands to.
Base class for all classes representing atomic values.
The namespace for the internal API of QtXmlPatterns.
The QSourceLocation class identifies a location in a resource by URI, line, and column.
virtual Event next()
Advances this AbstractXmlPullProvider, and returns the new event.
IteratorStack m_iterators
virtual QHash< QXmlName, QString > attributes()
If the current() is Element, the attributes of the element are returned, an empty list of attributes ...
const QAbstractXmlNodeModel * model() const
Returns the QAbstractXmlNodeModel that this node index refers to.
void push(const T &t)
Adds element t to the top of the stack.
virtual QVariant atomicValue() const
bool isAtomicValue() const
Determines whether this item is an atomic value, or a node.
#define Q_ASSERT_X(cond, where, what)
virtual QString stringValue() const
If current() is Text, the text node's value is returned.
The QXmlName class represents the name of an XML node, in an efficient, namespace-aware way...
Represents an item in the XPath 2.0 Data Model.
Q_OUTOFLINE_TEMPLATE QPair< T1, T2 > qMakePair(const T1 &x, const T2 &y)
QExplicitlySharedDataPointer< QAbstractXmlForwardIterator< QXmlNodeModelIndex > > iterate(const Axis axis) const
virtual QXmlName name() const
If the current event is StartElement, EndElement, ProcessingInstruction, Attribute, or Namespace, the node's name is returned.
QSourceLocation sourceLocation(const QXmlNodeModelIndex &index) const
Returns the source location for the object with the given index or a default constructed QSourceLocat...
virtual Event current() const
Returns the event that next() returned the last time it was called.
bool isEmpty() const
Returns true if the vector has size 0; otherwise returns false.
QString stringValue() const
QXmlNodeModelIndex m_index
T & top()
Returns a reference to the stack's top item.