|
xrpld
|
#include <MPTAmount.h>


Public Types | |
| using | value_type = std::int64_t |
Public Member Functions | |
| MPTAmount ()=default | |
| constexpr | MPTAmount (MPTAmount const &other)=default |
| constexpr | MPTAmount (beast::Zero) |
| constexpr MPTAmount & | operator= (MPTAmount const &other)=default |
| MPTAmount (Number const &x) | |
| constexpr | MPTAmount (value_type value) |
| constexpr MPTAmount & | operator= (beast::Zero) |
| MPTAmount & | operator+= (MPTAmount const &other) |
| MPTAmount & | operator-= (MPTAmount const &other) |
| MPTAmount | operator- () const |
| bool | operator== (MPTAmount const &other) const |
| bool | operator== (value_type other) const |
| bool | operator< (MPTAmount 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 | value () const |
| Returns the underlying value. | |
Static Public Member Functions | |
| static MPTAmount | minPositiveAmount () |
Protected Attributes | |
| value_type | value_ {} |
Definition at line 19 of file MPTAmount.h.
Definition at line 25 of file MPTAmount.h.
|
default |
|
constexprdefault |
|
constexpr |
Definition at line 97 of file MPTAmount.h.
|
explicit |
Definition at line 38 of file MPTAmount.h.
|
explicitconstexpr |
Definition at line 93 of file MPTAmount.h.
|
constexpr |
Definition at line 103 of file MPTAmount.h.
Definition at line 6 of file MPTAmount.cpp.
Definition at line 13 of file MPTAmount.cpp.
| MPTAmount xrpl::MPTAmount::operator- | ( | ) | const |
Definition at line 20 of file MPTAmount.cpp.
| bool xrpl::MPTAmount::operator== | ( | MPTAmount const & | other | ) | const |
Definition at line 26 of file MPTAmount.cpp.
| bool xrpl::MPTAmount::operator== | ( | value_type | other | ) | const |
Definition at line 32 of file MPTAmount.cpp.
| bool xrpl::MPTAmount::operator< | ( | MPTAmount const & | other | ) | const |
Definition at line 37 of file MPTAmount.cpp.
|
explicitconstexprnoexcept |
Returns true if the amount is not zero.
Definition at line 112 of file MPTAmount.h.
|
noexcept |
Definition at line 70 of file MPTAmount.h.
|
nodiscardconstexprnoexcept |
Return the sign of the amount.
Definition at line 122 of file MPTAmount.h.
|
nodiscardconstexpr |
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 135 of file MPTAmount.h.
|
static |
Definition at line 44 of file MPTAmount.cpp.
|
protected |
Definition at line 28 of file MPTAmount.h.