|
xrpld
|
Represents an XRP, IOU, or MPT quantity This customizes the string conversion and supports XRP conversions from integer and floating point. More...
#include <amount.h>

Public Member Functions | |
| PrettyAmount ()=default | |
| PrettyAmount (PrettyAmount const &)=default | |
| PrettyAmount & | operator= (PrettyAmount const &)=default |
| PrettyAmount (STAmount amount, std::string name) | |
| template<class T> requires (sizeof(T) >= sizeof(int) && std::is_integral_v<T> && std::is_signed_v<T>) | |
| PrettyAmount (T v) | |
| drops | |
| template<class T> requires (sizeof(T) >= sizeof(int) && std::is_unsigned_v<T>) | |
| PrettyAmount (T v) | |
| drops | |
| PrettyAmount (XRPAmount v) | |
| drops | |
| std::string const & | name () const |
| STAmount const & | value () const |
| Number | number () const |
| int | signum () const |
| operator STAmount const & () const | |
| operator AnyAmount () const | |
| operator json::Value () const | |
Private Attributes | |
| STAmount | amount_ |
| std::string | name_ |
Represents an XRP, IOU, or MPT quantity This customizes the string conversion and supports XRP conversions from integer and floating point.
Definition at line 77 of file src/test/jtx/amount.h.
|
default |
|
default |
| xrpl::test::jtx::PrettyAmount::PrettyAmount | ( | STAmount | amount, |
| std::string | name ) |
Definition at line 90 of file src/test/jtx/amount.h.
| xrpl::test::jtx::PrettyAmount::PrettyAmount | ( | T | v | ) |
drops
Definition at line 99 of file src/test/jtx/amount.h.
| xrpl::test::jtx::PrettyAmount::PrettyAmount | ( | T | v | ) |
drops
Definition at line 109 of file src/test/jtx/amount.h.
| xrpl::test::jtx::PrettyAmount::PrettyAmount | ( | XRPAmount | v | ) |
drops
Definition at line 118 of file src/test/jtx/amount.h.
|
default |
|
nodiscard |
Definition at line 123 of file src/test/jtx/amount.h.
|
nodiscard |
Definition at line 129 of file src/test/jtx/amount.h.
|
nodiscard |
Definition at line 135 of file src/test/jtx/amount.h.
|
nodiscard |
Definition at line 141 of file src/test/jtx/amount.h.
| xrpl::test::jtx::PrettyAmount::operator STAmount const & | ( | ) | const |
Definition at line 146 of file src/test/jtx/amount.h.
| xrpl::test::jtx::PrettyAmount::operator AnyAmount | ( | ) | const |
Definition at line 22 of file amount.cpp.
| xrpl::test::jtx::PrettyAmount::operator json::Value | ( | ) | const |
Definition at line 153 of file src/test/jtx/amount.h.
|
private |
Definition at line 81 of file src/test/jtx/amount.h.
|
private |
Definition at line 82 of file src/test/jtx/amount.h.