Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

Classes | Static Public Member Functions
DoubleSupport Class Reference

List of all members.

Classes

Static Public Member Functions


Member Function Documentation

static double DoubleSupport::abs ( double  theDouble) [static]

Return the absolute value of theDouble.

If theDouble is NaN, NaN is returned

Parameters:
theDoublea number to fabs
Returns:
the result of the fabs
static double DoubleSupport::add ( double  theLHS,
double  theRHS 
) [static]

Add two double values, taking into account the fact that we must support IEEE 754.

Parameters:
theLHSa number to add
theRHSa number to add
Returns:
the result of the addition
static double DoubleSupport::ceiling ( double  theValue) [static]

Returns the ceiling of a number according to the XPath rules.

Parameters:
theValueThe value to round.
Returns:
The result of the rounding
static double DoubleSupport::divide ( double  theLHS,
double  theRHS 
) [static]

Divide two double values, taking into account the fact that we must support IEEE 754.

Parameters:
theLHSa number to divide
theRHSa number to divide
Returns:
the result of the division
static bool DoubleSupport::equal ( double  theLHS,
double  theRHS 
) [static]

Compare two double values, taking into account the fact that we must support IEEE 754.

Parameters:
theLHSa number to compare
theRHSa number to compare
Returns:
the result of the compare
static double DoubleSupport::floor ( double  theValue) [static]

Returns the floor of a number according to the XPath rules.

Parameters:
theValueThe value to round.
Returns:
The result of the rounding
static double DoubleSupport::getNaN ( ) [static]

Double value that represents "not a number".

Returns:
"not a number" value
static double DoubleSupport::getNegativeInfinity ( ) [static]

Double value that represents negative infinity.

Returns:
negative infinity value
static double DoubleSupport::getPositiveInfinity ( ) [static]

Double value that represents positive infinity.

Returns:
positive infinity value
static bool DoubleSupport::greaterThan ( double  theLHS,
double  theRHS 
) [static]

Compare two double values, taking into account the fact that we must support IEEE 754.

Parameters:
theLHSa number to compare
theRHSa number to compare
Returns:
the result of the compare
static bool DoubleSupport::greaterThanOrEqual ( double  theLHS,
double  theRHS 
) [static]

Compare two double values, taking into account the fact that we must support IEEE 754.

Parameters:
theLHSa number to compare
theRHSa number to compare
Returns:
the result of the compare
static void DoubleSupport::initialize ( ) [static]

Perform static initialization.

See class PlatformSupportInit.

static bool DoubleSupport::isNaN ( double  theNumber) [static]

Determine if target is not a number.

Parameters:
theNumbertarget number
Returns:
true if target represents the "not a number" value
static bool DoubleSupport::isNegativeInfinity ( double  theNumber) [static]

Determine if target is negative infinity.

Parameters:
theNumbertarget number
Returns:
true if target represents the value for negative infinity
static bool DoubleSupport::isNegativeZero ( double  theNumber) [static]

Determine if target is negative 0.

Parameters:
theNumbertarget number
Returns:
true if target represents the value for negative 0
static bool DoubleSupport::isPositiveInfinity ( double  theNumber) [static]

Determine if target is positive infinity.

Parameters:
theNumbertarget number
Returns:
true if target represents the value for positive infinity
static bool DoubleSupport::isPositiveZero ( double  theNumber) [static]

Determine if target is positive 0.

Parameters:
theNumbertarget number
Returns:
true if target represents the value for positive 0.
static bool DoubleSupport::isValid ( const XalanDOMChar *  theString) [static]

Determine whether or not a string contains a valid floating point number.

Parameters:
theStringThe string to check.
Returns:
true if the string is valid, false if not.
static bool DoubleSupport::isValid ( const XalanDOMString theString) [static]

Determine whether or not a string contains a valid floating point number.

Parameters:
theStringThe string to check.
Returns:
true if the string is valid, false if not.
static bool DoubleSupport::lessThan ( double  theLHS,
double  theRHS 
) [static]

Compare two double values, taking into account the fact that we must support IEEE 754.

Parameters:
theLHSa number to compare
theRHSa number to compare
Returns:
the result of the compare
static bool DoubleSupport::lessThanOrEqual ( double  theLHS,
double  theRHS 
) [static]

Compare two double values, taking into account the fact that we must support IEEE 754.

Parameters:
theLHSa number to compare
theRHSa number to compare
Returns:
the result of the compare
static double DoubleSupport::modulus ( double  theLHS,
double  theRHS 
) [static]

Determine the modulus two double values, taking into account the fact that we must support IEEE 754.

Parameters:
theLHSa number to divide
theRHSa number to divide
Returns:
the result of the modulus
static double DoubleSupport::multiply ( double  theLHS,
double  theRHS 
) [static]

Multiply two double values, taking into account the fact that we must support IEEE 754.

Parameters:
theLHSa number to multiply
theRHSa number to multiply
Returns:
the result of the multiplication
static double DoubleSupport::negative ( double  theDouble) [static]

Determine the negative of a double value, taking into account the fact that we must support IEEE 754.

Parameters:
theDoublea number to negate
Returns:
the result of the negation
static bool DoubleSupport::notEqual ( double  theLHS,
double  theRHS 
) [static]

Compare two double values, taking into account the fact that we must support IEEE 754.

Parameters:
theLHSa number to compare
theRHSa number to compare
Returns:
the result of the compare
static double DoubleSupport::round ( double  theValue) [static]

Round a number according to the XPath rules.

Parameters:
theValueThe value to round.
Returns:
The result of the rounding
static double DoubleSupport::subtract ( double  theLHS,
double  theRHS 
) [static]

Subtract two double values, taking into account the fact that we must support IEEE 754.

Parameters:
theLHSa number to subtract
theRHSa number to subtract
Returns:
the result of the subtraction
static void DoubleSupport::terminate ( ) [static]

Perform static shut down.

See class PlatformSupportInit.

static double DoubleSupport::toDouble ( const XalanDOMChar *  theString,
MemoryManager &  theManager 
) [static]

Convert a string to a double value.

Returns NaN if the string is not a valid floating point number.

Parameters:
theStringThe string to convert.
theManagerThe MemoryManager instance to use.
Returns:
The result of the conversion
static double DoubleSupport::toDouble ( const XalanDOMString theString,
MemoryManager &  theManager 
) [static]

Convert a string to a double value.

Returns NaN if the string is not a valid floating point number.

Parameters:
theStringThe string to convert.
theManagerThe MemoryManager instance to use.
Returns:
The result of the conversion

The documentation for this class was generated from the following file:

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

dot

Xalan-C++ XSLT Processor Version 1.10
Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.

Apache Logo