rippled
|
Represents an XRP or IOU quantity This customizes the string conversion and supports XRP conversions from integer and floating point. More...
Public Member Functions | |
PrettyAmount ()=default | |
PrettyAmount (PrettyAmount const &)=default | |
PrettyAmount & | operator= (PrettyAmount const &)=default |
PrettyAmount (STAmount const &amount, std::string const &name) | |
template<class T > | |
PrettyAmount (T v, std::enable_if_t< sizeof(T) >=sizeof(int) &&std::is_integral_v< T > &&std::is_signed_v< T >> *=nullptr) | |
drops More... | |
template<class T > | |
PrettyAmount (T v, std::enable_if_t< sizeof(T) >=sizeof(int) &&std::is_unsigned_v< T >> *=nullptr) | |
drops More... | |
PrettyAmount (XRPAmount v) | |
drops More... | |
std::string const & | name () const |
STAmount const & | value () const |
operator STAmount const & () const | |
operator AnyAmount () const | |
Private Attributes | |
STAmount | amount_ |
std::string | name_ |
Represents an XRP or IOU quantity This customizes the string conversion and supports XRP conversions from integer and floating point.
|
default |
|
default |
ripple::test::jtx::PrettyAmount::PrettyAmount | ( | STAmount const & | amount, |
std::string const & | name | ||
) |
ripple::test::jtx::PrettyAmount::PrettyAmount | ( | T | v, |
std::enable_if_t< sizeof(T) > | = sizeof(int) && std::is_integral_v<T> && std::is_signed_v<T> , |
||
* | = nullptr |
||
) |
ripple::test::jtx::PrettyAmount::PrettyAmount | ( | T | v, |
std::enable_if_t< sizeof(T) > | = sizeof(int) && std::is_unsigned_v<T> , |
||
* | = nullptr |
||
) |
ripple::test::jtx::PrettyAmount::PrettyAmount | ( | XRPAmount | v | ) |
|
default |
std::string const& ripple::test::jtx::PrettyAmount::name | ( | ) | const |
STAmount const& ripple::test::jtx::PrettyAmount::value | ( | ) | const |
ripple::test::jtx::PrettyAmount::operator STAmount const & | ( | ) | const |
ripple::test::jtx::PrettyAmount::operator AnyAmount | ( | ) | const |
Definition at line 50 of file amount.cpp.
|
private |