#include <DoubleSupport.hpp>
List of all members.
Classes
Static Public Member Functions
- static void initialize ()
- Perform static initialization.
- static void terminate ()
- Perform static shut down.
- static bool isNaN (double theNumber)
- Determine if target is not a number.
- static bool isPositiveInfinity (double theNumber)
- Determine if target is positive infinity.
- static bool isNegativeInfinity (double theNumber)
- Determine if target is negative infinity.
- static bool isPositiveZero (double theNumber)
- Determine if target is positive 0.
- static bool isNegativeZero (double theNumber)
- Determine if target is negative 0.
- static double getNaN ()
- Double value that represents "not a number".
- static double getPositiveInfinity ()
- Double value that represents positive infinity.
- static double getNegativeInfinity ()
- Double value that represents negative infinity.
- static bool equal (double theLHS, double theRHS)
- Compare two double values, taking into account the fact that we must support IEEE 754.
- static bool notEqual (double theLHS, double theRHS)
- Compare two double values, taking into account the fact that we must support IEEE 754.
- static bool lessThan (double theLHS, double theRHS)
- Compare two double values, taking into account the fact that we must support IEEE 754.
- static bool lessThanOrEqual (double theLHS, double theRHS)
- Compare two double values, taking into account the fact that we must support IEEE 754.
- static bool greaterThan (double theLHS, double theRHS)
- Compare two double values, taking into account the fact that we must support IEEE 754.
- static bool greaterThanOrEqual (double theLHS, double theRHS)
- Compare two double values, taking into account the fact that we must support IEEE 754.
- static double add (double theLHS, double theRHS)
- Add two double values, taking into account the fact that we must support IEEE 754.
- static double subtract (double theLHS, double theRHS)
- Subtract two double values, taking into account the fact that we must support IEEE 754.
- static double multiply (double theLHS, double theRHS)
- Multiply two double values, taking into account the fact that we must support IEEE 754.
- static double divide (double theLHS, double theRHS)
- Divide two double values, taking into account the fact that we must support IEEE 754.
- static double modulus (double theLHS, double theRHS)
- Determine the modulus two double values, taking into account the fact that we must support IEEE 754.
- static double negative (double theDouble)
- Determine the negative of a double value, taking into account the fact that we must support IEEE 754.
- static double abs (double theDouble)
- Return the absolute value of theDouble.
- static bool isValid (const XalanDOMString &theString)
- Determine whether or not a string contains a valid floating point number.
- static bool isValid (const XalanDOMChar *theString)
- Determine whether or not a string contains a valid floating point number.
- static double toDouble (const XalanDOMString &theString, MemoryManager &theManager)
- Convert a string to a double value.
- static double toDouble (const XalanDOMChar *theString, MemoryManager &theManager)
- Convert a string to a double value.
- static double round (double theValue)
- Round a number according to the XPath rules.
- static double ceiling (double theValue)
- Returns the ceiling of a number according to the XPath rules.
- static double floor (double theValue)
- Returns the floor of a number according to the XPath rules.
Detailed Description
Definition at line 49 of file DoubleSupport.hpp.
Member Function Documentation
static double DoubleSupport::abs |
( |
double |
theDouble |
) |
[static] |
Return the absolute value of theDouble.
If theDouble is NaN, NaN is returned
- Parameters:
-
| theDouble | a 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:
-
| theLHS | a number to add |
| theRHS | a number to add |
- Returns:
- the result of the addition
static double DoubleSupport::ceiling |
( |
double |
theValue |
) |
[inline, static] |
Returns the ceiling of a number according to the XPath rules.
- Parameters:
-
| theValue | The value to round. |
- Returns:
- The result of the rounding
Definition at line 593 of file DoubleSupport.hpp.
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:
-
| theLHS | a number to divide |
| theRHS | a 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:
-
| theLHS | a number to compare |
| theRHS | a number to compare |
- Returns:
- the result of the compare
static double DoubleSupport::floor |
( |
double |
theValue |
) |
[inline, static] |
Returns the floor of a number according to the XPath rules.
- Parameters:
-
| theValue | The value to round. |
- Returns:
- The result of the rounding
Definition at line 610 of file DoubleSupport.hpp.
static double DoubleSupport::getNaN |
( |
|
) |
[inline, static] |
Double value that represents "not a number".
- Returns:
- "not a number" value
Definition at line 152 of file DoubleSupport.hpp.
static double DoubleSupport::getNegativeInfinity |
( |
|
) |
[inline, static] |
Double value that represents negative infinity.
- Returns:
- negative infinity value
Definition at line 174 of file DoubleSupport.hpp.
static double DoubleSupport::getPositiveInfinity |
( |
|
) |
[inline, static] |
Double value that represents positive infinity.
- Returns:
- positive infinity value
Definition at line 163 of file DoubleSupport.hpp.
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:
-
| theLHS | a number to compare |
| theRHS | a 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:
-
| theLHS | a number to compare |
| theRHS | a number to compare |
- Returns:
- the result of the compare
static void DoubleSupport::initialize |
( |
|
) |
[static] |
static bool DoubleSupport::isNaN |
( |
double |
theNumber |
) |
[inline, static] |
Determine if target is not a number.
- Parameters:
-
- Returns:
- true if target represents the "not a number" value
Definition at line 78 of file DoubleSupport.hpp.
static bool DoubleSupport::isNegativeInfinity |
( |
double |
theNumber |
) |
[inline, static] |
Determine if target is negative infinity.
- Parameters:
-
- Returns:
- true if target represents the value for negative infinity
Definition at line 112 of file DoubleSupport.hpp.
static bool DoubleSupport::isNegativeZero |
( |
double |
theNumber |
) |
[inline, static] |
Determine if target is negative 0.
- Parameters:
-
- Returns:
- true if target represents the value for negative 0
Definition at line 136 of file DoubleSupport.hpp.
static bool DoubleSupport::isPositiveInfinity |
( |
double |
theNumber |
) |
[inline, static] |
Determine if target is positive infinity.
- Parameters:
-
- Returns:
- true if target represents the value for positive infinity
Definition at line 100 of file DoubleSupport.hpp.
static bool DoubleSupport::isPositiveZero |
( |
double |
theNumber |
) |
[inline, static] |
Determine if target is positive 0.
- Parameters:
-
- Returns:
- true if target represents the value for positive 0.
Definition at line 124 of file DoubleSupport.hpp.
static bool DoubleSupport::isValid |
( |
const XalanDOMChar * |
theString |
) |
[static] |
Determine whether or not a string contains a valid floating point number.
- Parameters:
-
| theString | The 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:
-
| theString | The 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:
-
| theLHS | a number to compare |
| theRHS | a 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:
-
| theLHS | a number to compare |
| theRHS | a 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:
-
| theLHS | a number to divide |
| theRHS | a 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:
-
| theLHS | a number to multiply |
| theRHS | a 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:
-
| theDouble | a number to negate |
- Returns:
- the result of the negation
static bool DoubleSupport::notEqual |
( |
double |
theLHS, |
|
|
double |
theRHS | |
|
) |
| | [inline, static] |
Compare two double values, taking into account the fact that we must support IEEE 754.
- Parameters:
-
| theLHS | a number to compare |
| theRHS | a number to compare |
- Returns:
- the result of the compare
Definition at line 201 of file DoubleSupport.hpp.
static double DoubleSupport::round |
( |
double |
theValue |
) |
[static] |
Round a number according to the XPath rules.
- Parameters:
-
| theValue | The 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:
-
| theLHS | a number to subtract |
| theRHS | a number to subtract |
- Returns:
- the result of the subtraction
static void DoubleSupport::terminate |
( |
|
) |
[static] |
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:
-
| theString | The string to convert. |
| theManager | The 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:
-
| theString | The string to convert. |
| theManager | The MemoryManager instance to use. |
- Returns:
- The result of the conversion
The documentation for this class was generated from the following file: