Qt 4.8
|
Implements the value instance of the xs:integer
type.
More...
#include <qinteger_p.h>
Public Types | |
typedef Numeric::Ptr | Ptr |
Public Types inherited from QPatternist::Numeric | |
typedef QExplicitlySharedDataPointer< Numeric > | Ptr |
Public Types inherited from QPatternist::AtomicValue | |
typedef QList< AtomicValue::Ptr > | List |
typedef QExplicitlySharedDataPointer< AtomicValue > | Ptr |
Public Functions | |
virtual Numeric::Ptr | abs () const |
virtual Numeric::Ptr | ceiling () const |
bool | evaluateEBV (const QExplicitlySharedDataPointer< DynamicContext > &) const |
virtual Numeric::Ptr | floor () const |
virtual bool | isInf () const |
virtual bool | isNaN () const |
virtual bool | isSigned () const |
Returns always true . More... | |
virtual Numeric::Ptr | round () const |
virtual Numeric::Ptr | roundHalfToEven (const xsInteger scale) const |
virtual QString | stringValue () const |
virtual xsDecimal | toDecimal () const |
virtual xsDouble | toDouble () const |
virtual xsFloat | toFloat () const |
virtual xsInteger | toInteger () const |
virtual Item | toNegated () const |
virtual qulonglong | toUnsignedInteger () const |
virtual ItemType::Ptr | type () const |
Public Functions inherited from QPatternist::AtomicValue | |
virtual bool | hasError () 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 () |
Static Public Functions | |
static AtomicValue::Ptr | fromLexical (const QString &strNumeric) |
static Item | fromValue (const xsInteger num) |
Static Public Functions inherited from QPatternist::Numeric | |
static AtomicValue::Ptr | fromLexical (const QString &number) |
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) |
Protected Functions | |
Integer (const xsInteger num) | |
Protected Functions inherited from QPatternist::AtomicValue | |
AtomicValue () | |
Protected Functions inherited from QPatternist::CppCastingHelper< AtomicValue > | |
CppCastingHelper () | |
Properties | |
const xsInteger | m_value |
Additional Inherited Members | |
Public Variables inherited from QSharedData | |
QAtomicInt | ref |
Static Protected Functions inherited from QPatternist::Numeric | |
static xsDouble | roundFloat (const xsDouble val) |
Implements fn:round() for types implemented with floating point. More... | |
Implements the value instance of the xs:integer
type.
Definition at line 70 of file qinteger_p.h.
Definition at line 74 of file qinteger_p.h.
|
protected |
|
virtual |
Performs the algorithm specified for the function fn:abs on this Numeric, and whose result is returned.
Implements QPatternist::Numeric.
Definition at line 128 of file qinteger.cpp.
|
virtual |
Performs the algorithm specified for the function fn:ceiling on this Numeric, and whose result is returned.
Implements QPatternist::Numeric.
Definition at line 123 of file qinteger.cpp.
|
virtual |
Determines the Effective Boolean Value of this number.
false
if the number is 0, otherwise true
. Reimplemented from QPatternist::AtomicValue.
Definition at line 72 of file qinteger.cpp.
|
virtual |
Performs the algorithm specified for the function fn:floor on this Numeric, and whose result is returned.
Implements QPatternist::Numeric.
Definition at line 118 of file qinteger.cpp.
|
static |
Constructs an instance from the lexical representation strNumeric
.
Definition at line 57 of file qinteger.cpp.
Referenced by QPatternist::StringToIntegerCaster::castFrom(), and QPatternist::Numeric::fromLexical().
Definition at line 52 of file qinteger.cpp.
Referenced by QPatternist::DerivedInteger< DerivedType >::abs(), QPatternist::DecimalMathematician::calculate(), QPatternist::IntegerMathematician::calculate(), QPatternist::NumericToDecimalCaster< IsInteger >::castFrom(), QPatternist::DerivedInteger< DerivedType >::ceiling(), QPatternist::CountFN::compress(), QPatternist::PositionalVariableReference::evaluateSingleton(), QPatternist::PositionFN::evaluateSingleton(), QPatternist::CountFN::evaluateSingleton(), QPatternist::LastFN::evaluateSingleton(), QPatternist::AvgFN::evaluateSingleton(), QPatternist::StringLengthFN::evaluateSingleton(), QPatternist::DerivedInteger< DerivedType >::floor(), QPatternist::ToCodepointsIterator::next(), QPatternist::IndexOfIterator::next(), QPatternist::RangeIterator::next(), QPatternist::DerivedInteger< DerivedType >::round(), QPatternist::DerivedInteger< DerivedType >::roundHalfToEven(), toNegated(), QPatternist::DerivedInteger< DerivedType >::toNegated(), and QPatternist::AtomicValue::toXDM().
|
virtual |
false
, xs:integer
doesn't have infinity in its value space. Implements QPatternist::Numeric.
Definition at line 142 of file qinteger.cpp.
|
virtual |
false
, xs:integer
doesn't have not-a-number in its value space. Implements QPatternist::Numeric.
Definition at line 137 of file qinteger.cpp.
|
virtual |
|
virtual |
Performs the algorithm specified for the function fn:round on this Numeric, and whose result is returned.
Implements QPatternist::Numeric.
Definition at line 107 of file qinteger.cpp.
|
virtual |
Performs rounding as defined for the fn:round-half-to-even on this Numeric, and whose result is returned.
Implements QPatternist::Numeric.
Definition at line 113 of file qinteger.cpp.
|
virtual |
Implements QPatternist::AtomicValue.
Definition at line 77 of file qinteger.cpp.
|
virtual |
Implements QPatternist::Numeric.
Definition at line 102 of file qinteger.cpp.
|
virtual |
Implements QPatternist::Numeric.
Definition at line 87 of file qinteger.cpp.
|
virtual |
Implements QPatternist::Numeric.
Definition at line 97 of file qinteger.cpp.
|
virtual |
Implements QPatternist::Numeric.
Definition at line 92 of file qinteger.cpp.
|
virtual |
Unary minus.
Implements QPatternist::Numeric.
Definition at line 147 of file qinteger.cpp.
|
virtual |
Implements QPatternist::Numeric.
Definition at line 157 of file qinteger.cpp.
|
virtual |
Implements QPatternist::AtomicValue.
Definition at line 82 of file qinteger.cpp.
|
private |
Definition at line 133 of file qinteger_p.h.
Referenced by abs(), evaluateEBV(), stringValue(), toDecimal(), toDouble(), toFloat(), toInteger(), and toNegated().