Qt 4.8
|
Represents a value and its sort keys in FLOWR's order by
clause.
More...
#include <qsorttuple_p.h>
Public Types | |
typedef QExplicitlySharedDataPointer< SortTuple > | Ptr |
Public Types inherited from QPatternist::AtomicValue | |
typedef QList< AtomicValue::Ptr > | List |
typedef QExplicitlySharedDataPointer< AtomicValue > | Ptr |
Public Functions | |
virtual bool | hasError () const |
Always asserts. More... | |
virtual bool | isAtomicValue () const |
Always asserts. More... | |
virtual bool | isNode () const |
Always asserts. More... | |
const Item::Vector & | sortKeys () const |
SortTuple (const Item::Iterator::Ptr &aValue, const Item::Vector &aSortKeys) | |
virtual QString | stringValue () const |
virtual ItemType::Ptr | type () const |
virtual Item::Iterator::Ptr | typedValue () const |
Always asserts. More... | |
const Item::Iterator::Ptr & | value () const |
Public Functions inherited from QPatternist::AtomicValue | |
virtual bool | evaluateEBV (const QExplicitlySharedDataPointer< DynamicContext > &context) const |
virtual | ~AtomicValue () |
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... | |
Public Functions inherited from QPatternist::CppCastingHelper< AtomicValue > | |
const TCastTarget * | as () const |
TCastTarget * | as () |
Properties | |
const Item::Vector | m_sortKeys |
const Item::Iterator::Ptr | m_value |
Additional Inherited Members | |
Static Public Functions inherited from QPatternist::AtomicValue | |
static ItemType::Ptr | qtToXDMType (const QXmlItem &item) |
static QVariant | toQt (const AtomicValue *const value) |
static QVariant | toQt (const AtomicValue::Ptr &value) |
static Item | toXDM (const QVariant &value) |
Public Variables inherited from QSharedData | |
QAtomicInt | ref |
Protected Functions inherited from QPatternist::AtomicValue | |
AtomicValue () | |
Protected Functions inherited from QPatternist::CppCastingHelper< AtomicValue > | |
CppCastingHelper () | |
Represents a value and its sort keys in FLOWR's order by
clause.
SortTuple doesn't correspond to anything in the XPath Data Model and can therefore well be described as an exotic implementation detail. Most of its functions asserts because it makes no sense to call them.
SortTuple exclusively exists for use with the expressions OrderBy and ReturnOrderBy, and acts as a carrier between those two for sort keys and source values.
Definition at line 81 of file qsorttuple_p.h.
A smart pointer wrapping SortTuple instances.
Definition at line 98 of file qsorttuple_p.h.
|
inline |
aSortKeys
may be empty.
Definition at line 87 of file qsorttuple_p.h.
|
virtual |
Always asserts.
Reimplemented from QPatternist::AtomicValue.
Definition at line 70 of file qsorttuple.cpp.
|
virtual |
|
virtual |
|
inline |
|
virtual |
This function is sometimes called by Literal::description(). This function simply returns "SortTuple".
Implements QPatternist::AtomicValue.
Definition at line 58 of file qsorttuple.cpp.
|
virtual |
Implements QPatternist::AtomicValue.
Definition at line 84 of file qsorttuple.cpp.
|
virtual |
Always asserts.
Definition at line 77 of file qsorttuple.cpp.
|
inline |
Definition at line 133 of file qsorttuple_p.h.
|
private |
Definition at line 139 of file qsorttuple_p.h.
Referenced by sortKeys(), and SortTuple().
|
private |
Definition at line 140 of file qsorttuple_p.h.
Referenced by SortTuple(), and value().