Xerces-C++
3.1.2
|
Public Member Functions | |
XMLDouble (const XMLCh *const strValue, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager) | |
Constructs a newly allocated XMLDouble object that represents the value represented by the string. More... | |
~XMLDouble () | |
XMLDouble (MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager) | |
![]() | |
virtual | ~XMLAbstractDoubleFloat () |
virtual XMLCh * | getRawData () const |
Return string representation of the decimal value. More... | |
virtual const XMLCh * | getFormattedString () const |
Return the original and converted value of the original data. More... | |
virtual int | getSign () const |
Returns the sign of this number. More... | |
MemoryManager * | getMemoryManager () const |
bool | isDataConverted () const |
bool | isDataOverflowed () const |
double | getValue () const |
LiteralType | getType () const |
![]() | |
virtual | ~XMLNumber () |
![]() | |
void * | operator new (size_t size) |
This method overrides operator new. More... | |
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. More... | |
void * | operator new (size_t size, void *ptr) |
This method overrides placement operator new. More... | |
void | operator delete (void *p) |
This method overrides operator delete. More... | |
void | operator delete (void *p, MemoryManager *memMgr) |
This method provides a matching delete for the custom operator new. More... | |
void | operator delete (void *p, void *ptr) |
This method provides a matching delete for the placement new. More... | |
Static Public Member Functions | |
static int | compareValues (const XMLDouble *const lValue, const XMLDouble *const rValue) |
Compares this object to the specified object. More... | |
![]() | |
static XMLCh * | getCanonicalRepresentation (const XMLCh *const rawData, MemoryManager *const memMgr=XMLPlatformUtils::fgMemoryManager) |
static void | normalizeDecimalPoint (char *const toNormal) |
![]() | |
static XMLNumber * | loadNumber (XMLNumber::NumberType numType, XSerializeEngine &serEng) |
Protected Member Functions | |
virtual void | checkBoundary (char *const strValue) |
![]() | |
XMLAbstractDoubleFloat (MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager) | |
void | init (const XMLCh *const strValue) |
void | convert (char *const strValue) |
![]() | |
XMLNumber () | |
XMLNumber (const XMLNumber &) | |
![]() | |
XMemory () | |
Protected default constructor. More... | |
Additional Inherited Members | |
![]() | |
enum | LiteralType { NegINF, PosINF, NaN, SpecialTypeNum, Normal } |
![]() | |
enum | { LESS_THAN = -1, EQUAL = 0, GREATER_THAN = 1, INDETERMINATE = 2 } |
enum | NumberType { Float, Double, BigDecimal, DateTime, UnKnown } |
![]() | |
static int | compareValues (const XMLAbstractDoubleFloat *const lValue, const XMLAbstractDoubleFloat *const rValue, MemoryManager *const manager) |
Compares this object to the specified object. More... | |
![]() | |
double | fValue |
LiteralType | fType |
bool | fDataConverted |
bool | fDataOverflowed |
XMLDouble::XMLDouble | ( | const XMLCh *const | strValue, |
MemoryManager *const | manager = XMLPlatformUtils::fgMemoryManager |
||
) |
Constructs a newly allocated XMLDouble
object that represents the value represented by the string.
strValue | the String to be converted to an XMLDouble . |
manager | Pointer to the memory manager to be used to allocate objects. |
NumberFormatException | if the String does not contain a parsable XMLDouble. |
XMLDouble::~XMLDouble | ( | ) |
XMLDouble::XMLDouble | ( | MemoryManager *const | manager = XMLPlatformUtils::fgMemoryManager | ) |
|
protectedvirtual |
Implements XMLAbstractDoubleFloat.
|
static |
Compares this object to the specified object.
The result is true
if and only if the argument is not null
and is an XMLDouble
object that contains the same int
value as this object.
lValue | the object to compare with. |
rValue | the object to compare against. |
true
if the objects are the same; false
otherwise. References XMLAbstractDoubleFloat::compareValues(), and XMLAbstractDoubleFloat::getMemoryManager().