47 template <const
bool isDouble>
55 template <const
bool isDouble>
62 template <const
bool isDouble>
68 bool tempDouble = isDouble;
69 if(from.template as<AtomicValue>()->evaluateEBV(context))
70 return tempDouble ?
toItem(CommonValues::DoubleOne) :
toItem(CommonValues::FloatOne);
72 return tempDouble ?
toItem(CommonValues::DoubleZero) :
toItem(CommonValues::FloatZero);
Base template class for Float and Double classes.
Casts a string value, xs:string or xs:untypedAtomic, to xs:double or xs:float.
Item toItem(const QExplicitlySharedDataPointer< T > atomicValue)
Casts a value of type xs:boolean to xs:double or xs:float.
QString stringValue() const
Returns the string value of this Item.
Casts a numeric value, such as xs:integer or xs:float, to xs:double or xs:float.
Represents an item in the XPath 2.0 Data Model.