Xerces-C++: XMLAbstractDoubleFloat Class Reference (original) (raw)
#include <[xercesc/util/XMLAbstractDoubleFloat.hpp](XMLAbstractDoubleFloat%5F8hpp%5Fsource.html)>

| 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. | |
| Protected Attributes | |
|---|---|
| double | fValue |
| LiteralType | fType |
| bool | fDataConverted |
| bool | fDataOverflowed |
◆ LiteralType
| Enumerator |
|---|
| NegINF |
| PosINF |
| NaN |
| SpecialTypeNum |
| Normal |
| virtual XMLAbstractDoubleFloat::~XMLAbstractDoubleFloat ( ) | virtual |
|---|
◆ XMLAbstractDoubleFloat()
◆ checkBoundary()
| virtual void XMLAbstractDoubleFloat::checkBoundary ( char *const strValue) | protectedpure virtual |
|---|
◆ compareValues()
Compares this object to the specified object.
The result is true if and only if the argument is not null and is an [XMLAbstractDoubleFloat](classXMLAbstractDoubleFloat.html) object that contains the same int value as this object.
Parameters
| lValue | the object to compare with. |
|---|---|
| rValue | the object to compare against. |
| manager | The MemoryManager to use to allocate objects |
Returns
true if the objects are the same; false otherwise.
Referenced by XMLDouble::compareValues(), and XMLFloat::compareValues().
◆ convert()
| void XMLAbstractDoubleFloat::convert ( char *const strValue) | protected |
|---|
◆ getCanonicalRepresentation()
◆ getFormattedString()
| virtual const XMLCh * XMLAbstractDoubleFloat::getFormattedString ( ) const | 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.
◆ getMemoryManager()
| MemoryManager * XMLAbstractDoubleFloat::getMemoryManager | ( | ) | const |
|---|
◆ getRawData()
| virtual XMLCh * XMLAbstractDoubleFloat::getRawData ( ) const | 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.
◆ getSign()
| virtual int XMLAbstractDoubleFloat::getSign ( ) const | virtual |
|---|
Returns the sign of this number.
-1 negative 0 zero 1 positive
Implements XMLNumber.
◆ getType()
| XMLAbstractDoubleFloat::LiteralType XMLAbstractDoubleFloat::getType | ( | ) | const |
|---|
References fType.
◆ getValue()
| double XMLAbstractDoubleFloat::getValue | ( | ) | const |
|---|
References fValue.
◆ init()
| void XMLAbstractDoubleFloat::init ( const XMLCh *const strValue) | protected |
|---|
◆ isDataConverted()
| bool XMLAbstractDoubleFloat::isDataConverted | ( | ) | const |
|---|
References fDataConverted.
◆ isDataOverflowed()
| bool XMLAbstractDoubleFloat::isDataOverflowed | ( | ) | const |
|---|
References fDataOverflowed.
◆ normalizeDecimalPoint()
| static void XMLAbstractDoubleFloat::normalizeDecimalPoint ( char *const toNormal) | static |
|---|
◆ fDataConverted
| bool XMLAbstractDoubleFloat::fDataConverted | protected |
|---|
Referenced by isDataConverted().
◆ fDataOverflowed
| bool XMLAbstractDoubleFloat::fDataOverflowed | protected |
|---|
Referenced by isDataOverflowed().
◆ fType
| LiteralType XMLAbstractDoubleFloat::fType | protected |
|---|
Referenced by getType().
◆ fValue
| double XMLAbstractDoubleFloat::fValue | protected |
|---|
Referenced by getValue().
The documentation for this class was generated from the following file:
Public Types inherited from