Qt 4.8
|
Casts a numeric
value, such as xs:double
or xs:decimal
, to xs:integer
or xs:decimal
, depending on IsInteger.
More...
#include <qatomiccasters_p.h>
Public Functions | |
virtual Item | castFrom (const Item &from, const QExplicitlySharedDataPointer< DynamicContext > &context) const |
Public Functions inherited from QPatternist::AtomicCaster | |
AtomicCaster () | |
virtual | ~AtomicCaster () |
Public Functions inherited from QPatternist::AtomicTypeVisitorResult | |
AtomicTypeVisitorResult () | |
virtual | ~AtomicTypeVisitorResult () |
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... | |
Static Public Functions | |
static QString | errorMessage () |
Additional Inherited Members | |
Public Types inherited from QPatternist::AtomicCaster | |
typedef QExplicitlySharedDataPointer< AtomicCaster > | Ptr |
Public Types inherited from QPatternist::AtomicTypeVisitorResult | |
typedef QExplicitlySharedDataPointer< AtomicTypeVisitorResult > | Ptr |
Public Variables inherited from QSharedData | |
QAtomicInt | ref |
Casts a numeric
value, such as xs:double
or xs:decimal
, to xs:integer
or xs:decimal
, depending on IsInteger.
castFrom() uses Numeric::toInteger() for doing the actual casting.
Definition at line 215 of file qatomiccasters_p.h.
|
inlinevirtual |
Casts from
to an atomic value of the type this class casts to, and returns that value. The context
is used for reporting errors in case the casting fails, and to in general access information from the dynamic context.
Implements QPatternist::AtomicCaster.
Definition at line 226 of file qatomiccasters_p.h.
|
inlinestatic |
Used by NumericToDerivedIntegerCaster in addition to this class.
Definition at line 221 of file qatomiccasters_p.h.