|
| | Guard ()=default |
| void | setPositive () noexcept |
| void | setNegative () noexcept |
| void | setDropped () noexcept |
| bool | isNegative () const noexcept |
| template<class T> |
| void | push (T d) noexcept |
| unsigned | pop () noexcept |
| template<class T> |
| void | doDropDigit (T &mantissa, int &exponent) noexcept |
| | Drop a digit from the mantissa, and increment the exponent, storing the dropped digit in this Guard.
|
| int | round () const noexcept |
| template<UnsignedMantissa T> |
| void | doRoundUp (bool &negative, T &mantissa, int &exponent, internalrep const &minMantissa, internalrep const &maxMantissa, MantissaRange::CuspRoundingFix cuspRoundingFixEnabled, std::string location) |
| template<UnsignedMantissa T> |
| void | doRoundDown (bool &negative, T &mantissa, int &exponent, internalrep const &minMantissa) |
| void | doRound (rep &drops, std::string location) const |
| template<> |
| void | doDropDigit (uint128_t &mantissa, int &exponent) noexcept |
Definition at line 167 of file Number.cpp.
◆ Guard()
| xrpl::Number::Guard::Guard |
( |
| ) |
|
|
explicitdefault |
◆ setPositive()
| void xrpl::Number::Guard::setPositive |
( |
| ) |
|
|
noexcept |
◆ setNegative()
| void xrpl::Number::Guard::setNegative |
( |
| ) |
|
|
noexcept |
◆ setDropped()
| void xrpl::Number::Guard::setDropped |
( |
| ) |
|
|
noexcept |
◆ isNegative()
| bool xrpl::Number::Guard::isNegative |
( |
| ) |
const |
|
nodiscardnoexcept |
◆ push()
template<class T>
| void xrpl::Number::Guard::push |
( |
T | d | ) |
|
|
noexcept |
◆ pop()
| unsigned xrpl::Number::Guard::pop |
( |
| ) |
|
|
noexcept |
◆ doDropDigit() [1/2]
template<class T>
| void xrpl::Number::Guard::doDropDigit |
( |
T & | mantissa, |
|
|
int & | exponent ) |
|
noexcept |
Drop a digit from the mantissa, and increment the exponent, storing the dropped digit in this Guard.
Substitute for: push(mantissa % 10); mantissa /= 10; ++exponent;
Definition at line 294 of file Number.cpp.
◆ round()
| int xrpl::Number::Guard::round |
( |
| ) |
const |
|
nodiscardnoexcept |
◆ doRoundUp()
template<UnsignedMantissa T>
◆ doRoundDown()
template<UnsignedMantissa T>
| void xrpl::Number::Guard::doRoundDown |
( |
bool & | negative, |
|
|
T & | mantissa, |
|
|
int & | exponent, |
|
|
internalrep const & | minMantissa ) |
◆ doRound()
| void xrpl::Number::Guard::doRound |
( |
rep & | drops, |
|
|
std::string | location ) const |
◆ doPush()
| void xrpl::Number::Guard::doPush |
( |
unsigned | d | ) |
|
|
privatenoexcept |
◆ bringIntoRange()
template<UnsignedMantissa T>
| void xrpl::Number::Guard::bringIntoRange |
( |
bool & | negative, |
|
|
T & | mantissa, |
|
|
int & | exponent, |
|
|
internalrep const & | minMantissa ) |
|
private |
◆ doDropDigit() [2/2]
template<>
| void xrpl::Number::Guard::doDropDigit |
( |
uint128_t & | mantissa, |
|
|
int & | exponent ) |
|
noexcept |
◆ digits_
◆ xbit_
◆ sbit_