|
rippled
|
#include <XRPAmount.h>


Public Types | |
| using | unit_type = unit::dropTag |
| using | value_type = std::int64_t |
Public Member Functions | |
| XRPAmount ()=default | |
| constexpr | XRPAmount (XRPAmount const &other)=default |
| constexpr XRPAmount & | operator= (XRPAmount const &other)=default |
| XRPAmount (Number const &x) | |
| constexpr | XRPAmount (beast::Zero) |
| constexpr XRPAmount & | operator= (beast::Zero) |
| constexpr | XRPAmount (value_type drops) |
| XRPAmount & | operator= (value_type drops) |
| constexpr XRPAmount | operator* (value_type const &rhs) const |
| XRPAmount & | operator+= (XRPAmount const &other) |
| XRPAmount & | operator-= (XRPAmount const &other) |
| XRPAmount & | operator+= (value_type const &rhs) |
| XRPAmount & | operator-= (value_type const &rhs) |
| XRPAmount & | operator*= (value_type const &rhs) |
| XRPAmount | operator- () const |
| bool | operator== (XRPAmount const &other) const |
| bool | operator== (value_type other) const |
| bool | operator< (XRPAmount const &other) const |
| constexpr | operator bool () const noexcept |
| Returns true if the amount is not zero. | |
| operator Number () const noexcept | |
| constexpr int | signum () const noexcept |
| Return the sign of the amount. | |
| constexpr value_type | drops () const |
| Returns the number of drops. | |
| constexpr double | decimalXRP () const |
| template<class Dest > | |
| std::optional< Dest > | dropsAs () const |
| template<class Dest > | |
| Dest | dropsAs (Dest defaultValue) const |
| template<class Dest > | |
| Dest | dropsAs (XRPAmount defaultValue) const |
| Json::Value | jsonClipped () const |
| constexpr value_type | value () const |
| Returns the underlying value. | |
Static Public Member Functions | |
| static XRPAmount | minPositiveAmount () |
Private Attributes | |
| value_type | drops_ |
Friends | |
| constexpr XRPAmount | operator* (value_type lhs, XRPAmount const &rhs) |
| std::istream & | operator>> (std::istream &s, XRPAmount &val) |
Definition at line 20 of file XRPAmount.h.
| using ripple::XRPAmount::unit_type = unit::dropTag |
Definition at line 26 of file XRPAmount.h.
Definition at line 27 of file XRPAmount.h.
|
default |
|
constexprdefault |
|
explicit |
Definition at line 39 of file XRPAmount.h.
|
constexpr |
Definition at line 43 of file XRPAmount.h.
|
explicitconstexpr |
Definition at line 54 of file XRPAmount.h.
|
constexpr |
Definition at line 48 of file XRPAmount.h.
| XRPAmount & ripple::XRPAmount::operator= | ( | value_type | drops | ) |
Definition at line 59 of file XRPAmount.h.
|
constexpr |
Definition at line 66 of file XRPAmount.h.
Definition at line 79 of file XRPAmount.h.
Definition at line 86 of file XRPAmount.h.
| XRPAmount & ripple::XRPAmount::operator+= | ( | value_type const & | rhs | ) |
Definition at line 93 of file XRPAmount.h.
| XRPAmount & ripple::XRPAmount::operator-= | ( | value_type const & | rhs | ) |
Definition at line 100 of file XRPAmount.h.
| XRPAmount & ripple::XRPAmount::operator*= | ( | value_type const & | rhs | ) |
Definition at line 107 of file XRPAmount.h.
| XRPAmount ripple::XRPAmount::operator- | ( | ) | const |
Definition at line 114 of file XRPAmount.h.
| bool ripple::XRPAmount::operator== | ( | XRPAmount const & | other | ) | const |
Definition at line 120 of file XRPAmount.h.
| bool ripple::XRPAmount::operator== | ( | value_type | other | ) | const |
Definition at line 126 of file XRPAmount.h.
| bool ripple::XRPAmount::operator< | ( | XRPAmount const & | other | ) | const |
Definition at line 131 of file XRPAmount.h.
|
explicitconstexprnoexcept |
Returns true if the amount is not zero.
Definition at line 139 of file XRPAmount.h.
|
noexcept |
Definition at line 144 of file XRPAmount.h.
|
constexprnoexcept |
Return the sign of the amount.
Definition at line 151 of file XRPAmount.h.
|
constexpr |
Returns the number of drops.
Definition at line 158 of file XRPAmount.h.
|
constexpr |
Definition at line 243 of file XRPAmount.h.
| std::optional< Dest > ripple::XRPAmount::dropsAs | ( | ) | const |
Definition at line 168 of file XRPAmount.h.
| Dest ripple::XRPAmount::dropsAs | ( | Dest | defaultValue | ) | const |
Definition at line 182 of file XRPAmount.h.
| Dest ripple::XRPAmount::dropsAs | ( | XRPAmount | defaultValue | ) | const |
Definition at line 189 of file XRPAmount.h.
| Json::Value ripple::XRPAmount::jsonClipped | ( | ) | const |
Definition at line 199 of file XRPAmount.h.
|
constexpr |
Returns the underlying value.
Code SHOULD NOT call this function unless the type has been abstracted away, e.g. in a templated function.
Definition at line 220 of file XRPAmount.h.
|
static |
Definition at line 233 of file XRPAmount.h.
|
friend |
Definition at line 72 of file XRPAmount.h.
|
friend |
Definition at line 226 of file XRPAmount.h.
|
private |
Definition at line 30 of file XRPAmount.h.