Qt 4.8
|
Helper class for IdFN. More...
Public Functions | |
virtual QString | current () const |
Returns the current item in the sequence. More... | |
virtual QString | next () |
Returns the next item in the sequence, or a null object if the end has been reached. More... | |
virtual qint64 | position () const |
Returns the current position in the sequence represented by this. More... | |
StringSplitter (const Item::Iterator::Ptr &source) | |
Public Functions inherited from QAbstractXmlForwardIterator< QString > | |
virtual QAbstractXmlForwardIterator< QString >::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 QString | last () |
Returns the item at the end of this QAbstractXmlForwardIterator. More... | |
QAbstractXmlForwardIterator () | |
Default constructor. More... | |
virtual qint64 | sizeHint () const |
Gives a hint to the size of the contained sequence. More... | |
virtual QList< QString > | toList () |
Performs a copy of this QAbstractXmlForwardIterator(with copy()), and returns its items in a QList. More... | |
virtual QAbstractXmlForwardIterator< QString >::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... | |
Private Functions | |
QString | loadNext () |
Properties | |
QStack< QString > | m_buffer |
QString | m_current |
qint64 | m_position |
const Item::Iterator::Ptr | m_source |
bool | m_sourceAtEnd |
Related Functions | |
(Note that these are not member functions.) | |
template<> | |
bool | qIsForwardIteratorEnd (const QString &unit) |
Helper class for StringSplitter. More... | |
Related Functions inherited from QAbstractXmlForwardIterator< QString > | |
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 QString &unit) |
The Callback QAbstractXmlForwardIterator uses for determining whether unit is the end of a sequence. More... | |
Additional Inherited Members | |
Public Types inherited from QAbstractXmlForwardIterator< QString > | |
typedef QList< QExplicitlySharedDataPointer< QAbstractXmlForwardIterator< QString > > > | List |
A QList containing QAbstractXmlForwardIterator::Ptr instances. More... | |
typedef QExplicitlySharedDataPointer< QAbstractXmlForwardIterator< QString > > | Ptr |
A smart pointer wrapping an instance of a QAbstractXmlForwardIterator subclass. More... | |
typedef QVector< QExplicitlySharedDataPointer< QAbstractXmlForwardIterator< QString > > > | Vector |
A QVector containing QAbstractXmlForwardIterator::Ptr instances. More... | |
Public Variables inherited from QSharedData | |
QAtomicInt | ref |
Helper class for IdFN.
StringSplitter takes an Iterator which delivers strings of this kind:
"a", "b c", "%invalidNCName", " ", "d"
and we deliver instead:
"a", "b", "c", "d"
That is, we:
NCName
Definition at line 89 of file qsequencegeneratingfns.cpp.
StringSplitter::StringSplitter | ( | const Item::Iterator::Ptr & | source | ) |
Definition at line 105 of file qsequencegeneratingfns.cpp.
Referenced by QPatternist::IdFN::evaluateSequence().
|
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< QString >.
Definition at line 158 of file qsequencegeneratingfns.cpp.
|
private |
Definition at line 132 of file qsequencegeneratingfns.cpp.
Referenced by next(), and StringSplitter().
|
virtual |
Returns the next item in the sequence, or a null object if the end has been reached.
Implements QAbstractXmlForwardIterator< QString >.
Definition at line 113 of file qsequencegeneratingfns.cpp.
Referenced by loadNext().
|
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< QString >.
Definition at line 163 of file qsequencegeneratingfns.cpp.
|
related |
Helper class for StringSplitter.
Needed by the QAbstractXmlForwardIterator sub-class.
Definition at line 85 of file qabstractxmlforwarditerator_p.h.
Definition at line 99 of file qsequencegeneratingfns.cpp.
Referenced by loadNext(), next(), and StringSplitter().
|
private |
Definition at line 100 of file qsequencegeneratingfns.cpp.
|
private |
Definition at line 101 of file qsequencegeneratingfns.cpp.
Referenced by next(), and position().
|
private |
Definition at line 98 of file qsequencegeneratingfns.cpp.
Referenced by loadNext(), and StringSplitter().
|
private |
Definition at line 102 of file qsequencegeneratingfns.cpp.
Referenced by loadNext(), and next().