|
Xerces-C++ 3.2.4
|
#include <xercesc/util/XMLAbstractDoubleFloat.hpp>
Public Types | |
| enum | LiteralType { NegINF , PosINF , NaN , SpecialTypeNum , Normal } |
| Public Types inherited from XMLNumber | |
| enum | { LESS_THAN = -1 , EQUAL = 0 , GREATER_THAN = 1 , INDETERMINATE = 2 } |
| enum | NumberType { Float , Double , BigDecimal , DateTime , UnKnown } |
Public Member Functions | |
| virtual | ~XMLAbstractDoubleFloat () |
| virtual XMLCh * | getRawData () const |
| Return string representation of the decimal value. | |
| virtual const XMLCh * | getFormattedString () const |
| Return the original and converted value of the original data. | |
| virtual int | getSign () const |
| Returns the sign of this number. | |
| MemoryManager * | getMemoryManager () const |
| bool | isDataConverted () const |
| bool | isDataOverflowed () const |
| double | getValue () const |
| LiteralType | getType () const |
| Public Member Functions inherited from XMLNumber | |
| virtual | ~XMLNumber () |
| Public Member Functions inherited from XMemory | |
| void * | operator new (size_t size) |
| This method overrides operator new. | |
| void * | operator new (size_t size, MemoryManager *memMgr) |
| This method defines a custom operator new, that will use the provided memory manager to perform the allocation. | |
| void * | operator new (size_t size, void *ptr) |
| This method overrides placement operator new. | |
| void | operator delete (void *p) |
| This method overrides operator delete. | |
| void | operator delete (void *p, MemoryManager *memMgr) |
| This method provides a matching delete for the custom operator new. | |
| void | operator delete (void *p, void *ptr) |
| This method provides a matching delete for the placement new. | |
Static Public Member Functions | |
| static XMLCh * | getCanonicalRepresentation (const XMLCh *const rawData, MemoryManager *const memMgr=XMLPlatformUtils::fgMemoryManager) |
| static void | normalizeDecimalPoint (char *const toNormal) |
| Static Public Member Functions inherited from XMLNumber | |
| static XMLNumber * | loadNumber (XMLNumber::NumberType numType, XSerializeEngine &serEng) |
Protected Member Functions | |
| XMLAbstractDoubleFloat (MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager) | |
| void | init (const XMLCh *const strValue) |
| virtual void | checkBoundary (char *const strValue)=0 |
| void | convert (char *const strValue) |
| Protected Member Functions inherited from XMLNumber | |
| XMLNumber () | |
| XMLNumber (const XMLNumber &) | |
| Protected Member Functions inherited from XMemory | |
| XMemory () | |
| Protected default constructor. | |
Static Protected Member Functions | |
| static int | compareValues (const XMLAbstractDoubleFloat *const lValue, const XMLAbstractDoubleFloat *const rValue, MemoryManager *const manager) |
| Compares this object to the specified object. | |
Protected Attributes | |
| double | fValue |
| LiteralType | fType |
| bool | fDataConverted |
| bool | fDataOverflowed |
|
virtual |
|
protected |
References XMLPlatformUtils::fgMemoryManager.
Referenced by compareValues(), XMLDouble::compareValues(), XMLFloat::compareValues(), convert(), and normalizeDecimalPoint().
|
protectedpure virtual |
|
staticprotected |
Compares this object to the specified object.
The result is true if and only if the argument is not null and is an XMLAbstractDoubleFloat object that contains the same int value as this object.
| lValue | the object to compare with. |
| rValue | the object to compare against. |
| manager | The MemoryManager to use to allocate objects |
true if the objects are the same; false otherwise. References XMLAbstractDoubleFloat().
Referenced by XMLDouble::compareValues(), and XMLFloat::compareValues().
|
protected |
References XMLAbstractDoubleFloat().
|
static |
References XMLPlatformUtils::fgMemoryManager.
|
virtual |
Return the original and converted value of the original data.
(applicable to double/float)
The internal buffer is returned directly, user is not required to delete the returned buffer
Implements XMLNumber.
| MemoryManager * XMLAbstractDoubleFloat::getMemoryManager | ( | ) | const |
Referenced by XMLDouble::compareValues(), XMLFloat::compareValues(), and getSign().
|
virtual |
Return string representation of the decimal value.
A decimal point will be included as necessary. Similar to toString above, but the internal buffer is returned directly, user is not required to delete the returned buffer
Implements XMLNumber.
|
virtual |
Returns the sign of this number.
-1 negative 0 zero 1 positive
Implements XMLNumber.
References getMemoryManager(), getType(), getValue(), isDataConverted(), and isDataOverflowed().
| XMLAbstractDoubleFloat::LiteralType XMLAbstractDoubleFloat::getType | ( | ) | const |
|
protected |
| bool XMLAbstractDoubleFloat::isDataConverted | ( | ) | const |
References fDataConverted.
Referenced by getSign().
| bool XMLAbstractDoubleFloat::isDataOverflowed | ( | ) | const |
References fDataOverflowed.
Referenced by getSign().
|
static |
References XMLAbstractDoubleFloat().
|
protected |
Referenced by isDataConverted().
|
protected |
Referenced by isDataOverflowed().
|
protected |
Referenced by getType().
|
protected |
Referenced by getValue().