|
xrpld
|
Converts to MPT Issue or STAmount. More...
#include <amount.h>

Public Member Functions | |
| MPT (std::string n, xrpl::MPTID const &issuanceID) | |
| MPT (std::string n="") | |
| MPT (Asset const &asset) | |
| MPT (AccountID const &account, std::int32_t seq=0) | |
| xrpl::MPTID const & | mpt () const |
| xrpl::MPTIssue | mptIssue () const |
| Explicit conversion to MPTIssue or asset. | |
| Asset | asset () const |
| operator xrpl::MPTIssue () const | |
| Implicit conversion to MPTIssue or asset. | |
| operator PrettyAsset () const | |
| operator xrpl::Asset () const | |
| operator xrpl::MPTID () const | |
| template<class T> | |
| PrettyAmount | operator() (T v) const |
| PrettyAmount | operator() (EpsilonT) const |
| PrettyAmount | operator() (detail::EpsilonMultiple) const |
| None | operator() (NoneT) const |
| Returns None-of-Issue. | |
Static Public Member Functions | |
| static bool | integral () |
Public Attributes | |
| std::string | name |
| xrpl::MPTID | issuanceID |
Friends | |
| BookSpec | operator~ (MPT const &mpt) |
Converts to MPT Issue or STAmount.
Examples: MPT Converts to the underlying Issue MPT(10) Returns STAmount of 10 of the underlying MPT
Definition at line 472 of file src/test/jtx/amount.h.
| xrpl::test::jtx::MPT::MPT | ( | std::string | n, |
| xrpl::MPTID const & | issuanceID ) |
Definition at line 478 of file src/test/jtx/amount.h.
| xrpl::test::jtx::MPT::MPT | ( | std::string | n = "" | ) |
Definition at line 481 of file src/test/jtx/amount.h.
| xrpl::test::jtx::MPT::MPT | ( | Asset const & | asset | ) |
Definition at line 484 of file src/test/jtx/amount.h.
| xrpl::test::jtx::MPT::MPT | ( | AccountID const & | account, |
| std::int32_t | seq = 0 ) |
Definition at line 487 of file src/test/jtx/amount.h.
|
nodiscard |
Definition at line 492 of file src/test/jtx/amount.h.
|
nodiscard |
Explicit conversion to MPTIssue or asset.
Definition at line 500 of file src/test/jtx/amount.h.
|
nodiscard |
Definition at line 505 of file src/test/jtx/amount.h.
|
static |
Definition at line 510 of file src/test/jtx/amount.h.
| xrpl::test::jtx::MPT::operator xrpl::MPTIssue | ( | ) | const |
Implicit conversion to MPTIssue or asset.
This allows passing an MPT value where an MPTIssue is expected.
Definition at line 520 of file src/test/jtx/amount.h.
| xrpl::test::jtx::MPT::operator PrettyAsset | ( | ) | const |
Definition at line 525 of file src/test/jtx/amount.h.
| xrpl::test::jtx::MPT::operator xrpl::Asset | ( | ) | const |
Definition at line 529 of file src/test/jtx/amount.h.
| xrpl::test::jtx::MPT::operator xrpl::MPTID | ( | ) | const |
Definition at line 533 of file src/test/jtx/amount.h.
| PrettyAmount xrpl::test::jtx::MPT::operator() | ( | T | v | ) | const |
Definition at line 541 of file src/test/jtx/amount.h.
| PrettyAmount xrpl::test::jtx::MPT::operator() | ( | EpsilonT | ) | const |
| PrettyAmount xrpl::test::jtx::MPT::operator() | ( | detail::EpsilonMultiple | ) | const |
Returns None-of-Issue.
Definition at line 553 of file src/test/jtx/amount.h.
Definition at line 559 of file src/test/jtx/amount.h.
| std::string xrpl::test::jtx::MPT::name |
Definition at line 475 of file src/test/jtx/amount.h.
| xrpl::MPTID xrpl::test::jtx::MPT::issuanceID |
Definition at line 476 of file src/test/jtx/amount.h.