![]() |
Qt 4.8
|
Abstract base class for Iterators for the AccelTree, that contains common functions and members. More...
#include <qacceliterators_p.h>
Public Functions | |
| virtual QXmlNodeModelIndex | current () const |
| Returns the current item in the sequence. More... | |
| virtual xsInteger | position () const |
| Returns the current position in the sequence represented by this. More... | |
Public Functions inherited from QAbstractXmlForwardIterator< T > | |
| virtual QAbstractXmlForwardIterator< T >::Ptr | copy () const |
| Copies this QAbstractXmlForwardIterator and returns the copy. More... | |
| virtual qint64 | count () |
| Determines the number of items this QAbstractXmlForwardIterator represents. More... | |
| virtual bool | isEmpty () |
| Returns true if the sequence is empty. More... | |
| virtual T | last () |
| Returns the item at the end of this QAbstractXmlForwardIterator. More... | |
| virtual T | next ()=0 |
| Returns the next item in the sequence, or a null object if the end has been reached. More... | |
| QAbstractXmlForwardIterator () | |
| Default constructor. More... | |
| virtual qint64 | sizeHint () const |
| Gives a hint to the size of the contained sequence. More... | |
| virtual QList< T > | toList () |
| Performs a copy of this QAbstractXmlForwardIterator(with copy()), and returns its items in a QList. More... | |
| virtual QAbstractXmlForwardIterator< T >::Ptr | toReversed () |
| Returns a reverse iterator for the sequence. More... | |
| virtual | ~QAbstractXmlForwardIterator () |
| Destructor. More... | |
Public Functions inherited from QSharedData | |
| QSharedData () | |
| Constructs a QSharedData object with a reference count of 0. More... | |
| QSharedData (const QSharedData &) | |
| Constructs a QSharedData object with reference count 0. More... | |
Protected Functions | |
| AccelIterator (const AccelTree *const doc, const AccelTree::PreNumber pre, const AccelTree::PreNumber currentPre) | |
| QXmlNodeModelIndex | closedExit () |
Protected Variables | |
| QXmlNodeModelIndex | m_current |
| AccelTree::PreNumber | m_currentPre |
| const AccelTree *const | m_document |
| xsInteger | m_position |
| const AccelTree::PreNumber | m_preNumber |
Additional Inherited Members | |
Public Types inherited from QAbstractXmlForwardIterator< T > | |
| typedef QList< QExplicitlySharedDataPointer< QAbstractXmlForwardIterator< T > > > | List |
| A QList containing QAbstractXmlForwardIterator::Ptr instances. More... | |
| typedef QExplicitlySharedDataPointer< QAbstractXmlForwardIterator< T > > | Ptr |
| A smart pointer wrapping an instance of a QAbstractXmlForwardIterator subclass. More... | |
| typedef QVector< QExplicitlySharedDataPointer< QAbstractXmlForwardIterator< T > > > | Vector |
| A QVector containing QAbstractXmlForwardIterator::Ptr instances. More... | |
Public Variables inherited from QSharedData | |
| QAtomicInt | ref |
Related Functions inherited from QAbstractXmlForwardIterator< T > | |
| template<typename TResult , typename TSource , typename TMapper > | |
| static QAbstractXmlForwardIterator< TResult >::Ptr | makeSequenceMappingIterator (const TMapper &mapper, const QExplicitlySharedDataPointer< QAbstractXmlForwardIterator< TSource > > &source, const DynamicContext::Ptr &context) |
| An object generator for SequenceMappingIterator. More... | |
| bool | qIsForwardIteratorEnd (const T &unit) |
| The Callback QAbstractXmlForwardIterator uses for determining whether unit is the end of a sequence. More... | |
Abstract base class for Iterators for the AccelTree, that contains common functions and members.
Definition at line 70 of file qacceliterators_p.h.
|
inlineprotected |
Definition at line 77 of file qacceliterators_p.h.
|
inlineprotected |
Definition at line 89 of file qacceliterators_p.h.
Referenced by QPatternist::AncestorIterator< IncludeSelf >::next(), QPatternist::ChildIterator::next(), QPatternist::SiblingIterator< IsFollowing >::next(), QPatternist::DescendantIterator< IncludeSelf >::next(), QPatternist::FollowingIterator::next(), QPatternist::PrecedingIterator::next(), and QPatternist::AttributeIterator::next().
|
virtual |
Returns the current item in the sequence.
If this function is called before the first call to next(), a null object is returned. If the end of the sequence has been reached, a null object is returned.
Implements QAbstractXmlForwardIterator< T >.
Definition at line 55 of file qacceliterators.cpp.
|
virtual |
Returns the current position in the sequence represented by this.
The first position is 1, not 0. If next() hasn't been called, 0 is returned. If this has reached the end, -1 is returned.
Implements QAbstractXmlForwardIterator< T >.
Definition at line 50 of file qacceliterators.cpp.
|
protected |
Definition at line 107 of file qacceliterators_p.h.
Referenced by closedExit(), current(), QPatternist::AncestorIterator< IncludeSelf >::next(), QPatternist::ChildIterator::next(), QPatternist::SiblingIterator< IsFollowing >::next(), QPatternist::DescendantIterator< IncludeSelf >::next(), QPatternist::FollowingIterator::next(), QPatternist::PrecedingIterator::next(), and QPatternist::AttributeIterator::next().
|
protected |
Definition at line 105 of file qacceliterators_p.h.
Referenced by QPatternist::AttributeIterator::AttributeIterator(), QPatternist::ChildIterator::ChildIterator(), QPatternist::DescendantIterator< IncludeSelf >::DescendantIterator(), QPatternist::AncestorIterator< IncludeSelf >::next(), QPatternist::ChildIterator::next(), QPatternist::SiblingIterator< IsFollowing >::next(), QPatternist::DescendantIterator< IncludeSelf >::next(), QPatternist::FollowingIterator::next(), QPatternist::PrecedingIterator::next(), and QPatternist::AttributeIterator::next().
|
protected |
We do not own it.
Definition at line 99 of file qacceliterators_p.h.
Referenced by AccelIterator(), QPatternist::AncestorIterator< IncludeSelf >::AncestorIterator(), QPatternist::AttributeIterator::AttributeIterator(), QPatternist::ChildIterator::ChildIterator(), QPatternist::AncestorIterator< IncludeSelf >::copy(), QPatternist::ChildIterator::copy(), QPatternist::SiblingIterator< IsFollowing >::copy(), QPatternist::DescendantIterator< IncludeSelf >::copy(), QPatternist::FollowingIterator::copy(), QPatternist::PrecedingIterator::copy(), QPatternist::AttributeIterator::copy(), QPatternist::DescendantIterator< IncludeSelf >::DescendantIterator(), QPatternist::AncestorIterator< IncludeSelf >::next(), QPatternist::ChildIterator::next(), QPatternist::SiblingIterator< IsFollowing >::next(), QPatternist::DescendantIterator< IncludeSelf >::next(), QPatternist::FollowingIterator::next(), QPatternist::PrecedingIterator::next(), QPatternist::AttributeIterator::next(), and QPatternist::SiblingIterator< IsFollowing >::SiblingIterator().
|
protected |
Definition at line 106 of file qacceliterators_p.h.
Referenced by closedExit(), QPatternist::AncestorIterator< IncludeSelf >::next(), QPatternist::ChildIterator::next(), QPatternist::SiblingIterator< IsFollowing >::next(), QPatternist::DescendantIterator< IncludeSelf >::next(), QPatternist::FollowingIterator::next(), QPatternist::PrecedingIterator::next(), QPatternist::AttributeIterator::next(), and position().
|
protected |
The pre number of the node that should be navigated from.
Definition at line 104 of file qacceliterators_p.h.
Referenced by AccelIterator(), QPatternist::AncestorIterator< IncludeSelf >::copy(), QPatternist::ChildIterator::copy(), QPatternist::SiblingIterator< IsFollowing >::copy(), QPatternist::DescendantIterator< IncludeSelf >::copy(), QPatternist::FollowingIterator::copy(), QPatternist::PrecedingIterator::copy(), QPatternist::AttributeIterator::copy(), and QPatternist::FollowingIterator::next().