|
xrpld
|
#include <PathAsset.h>

Public Member Functions | |
| PathAsset ()=default | |
| PathAsset (Asset const &asset) | |
| PathAsset (Currency const ¤cy) | |
| PathAsset (MPTID const &mpt) | |
| template<ValidPathAsset T> | |
| constexpr bool | holds () const |
| constexpr bool | isXRP () const |
| template<ValidPathAsset T> | |
| T const & | get () const |
| constexpr std::variant< Currency, MPTID > const & | value () const |
| template<typename... Visitors> | |
| constexpr auto | visit (Visitors &&... visitors) const -> decltype(auto) |
| template<ValidPathAsset T> | |
| T const & | get () const |
Private Attributes | |
| std::variant< Currency, MPTID > | easset_ |
Friends | |
| constexpr bool | operator== (PathAsset const &lhs, PathAsset const &rhs) |
Definition at line 19 of file PathAsset.h.
|
default |
| xrpl::PathAsset::PathAsset | ( | Asset const & | asset | ) |
Definition at line 69 of file PathAsset.h.
| xrpl::PathAsset::PathAsset | ( | Currency const & | currency | ) |
Definition at line 28 of file PathAsset.h.
| xrpl::PathAsset::PathAsset | ( | MPTID const & | mpt | ) |
Definition at line 31 of file PathAsset.h.
|
nodiscardconstexpr |
Definition at line 78 of file PathAsset.h.
|
nodiscardconstexpr |
Definition at line 99 of file PathAsset.h.
| T const & xrpl::PathAsset::get | ( | ) | const |
|
nodiscardconstexpr |
Definition at line 93 of file PathAsset.h.
|
constexpr |
Definition at line 52 of file PathAsset.h.
|
nodiscard |
Definition at line 85 of file PathAsset.h.
Definition at line 107 of file PathAsset.h.
|
private |
Definition at line 22 of file PathAsset.h.