Qt 4.8
Classes | Namespaces | Typedefs | Functions | Variables
qabstractxmlnodemodel.cpp File Reference

Contains the implementation of QAbstractXmlNodeModel. More...

#include <QVector>
#include "qabstractxmlnodemodel_p.h"
#include "qabstractxmlreceiver.h"
#include "qcommonvalues_p.h"
#include "qemptyiterator_p.h"
#include "qitemmappingiterator_p.h"
#include "qitem_p.h"
#include "qnamespaceresolver_p.h"
#include "qsequencemappingiterator_p.h"
#include "qsingletoniterator_p.h"
#include "qabstractxmlnodemodel.h"

Go to the source code of this file.

Classes

class  QPatternist::IteratorVector
 
class  QPatternist::MergeIterator
 

Namespaces

 QPatternist
 The namespace for the internal API of QtXmlPatterns.
 

Typedefs

typedef QExplicitlySharedDataPointer< QAbstractXmlForwardIterator< QXmlNodeModelIndex > > QXmlNodeModelIndexIteratorPointer
 

Functions

static QXmlNodeModelIndexIteratorPointer mergeIterators (const QXmlNodeModelIndex &node, const QXmlNodeModelIndexIteratorPointer &it2)
 

Variables

static const MergeIterator QPatternist::mergeIterator
 

Detailed Description

Contains the implementation of QAbstractXmlNodeModel.

Definition in file qabstractxmlnodemodel.cpp.

Typedef Documentation

◆ QXmlNodeModelIndexIteratorPointer

Definition at line 60 of file qabstractxmlnodemodel.cpp.

Function Documentation

◆ mergeIterators()

static QXmlNodeModelIndexIteratorPointer mergeIterators ( const QXmlNodeModelIndex node,
const QXmlNodeModelIndexIteratorPointer it2 
)
inlinestatic
Warning
This function is not part of the public interface. This function is not a private member of QAbstractXmlNodeModel because it would be messy to forward declare the required types.

Definition at line 533 of file qabstractxmlnodemodel.cpp.

Referenced by QAbstractXmlNodeModel::iterate(), and QAbstractXmlNodeModel::mapToSequence().

535 {
537  iterators.append(makeSingletonIterator(node));
538  iterators.append(it2);
539 
540  return makeSequenceMappingIterator<QXmlNodeModelIndex>(&mergeIterator,
541  IteratorVector::Ptr(new IteratorVector(iterators)),
543 }
The QExplicitlySharedDataPointer class represents a pointer to an explicitly shared object...
Definition: qshareddata.h:136
The QVector class is a template class that provides a dynamic array.
Definition: qdatastream.h:64
void append(const T &t)
Inserts value at the end of the vector.
Definition: qvector.h:573
static const MergeIterator mergeIterator
SingletonIterator< T >::Ptr makeSingletonIterator(const T &item)
An object generator for SingletonIterator.