|
xrpld
|
Represents a pair of input and output currencies. More...
#include <Quality.h>
Public Member Functions | |
| TAmounts ()=default | |
| TAmounts (beast::Zero, beast::Zero) | |
| TAmounts (In in, Out out) | |
| bool | empty () const noexcept |
| Returns true if either quantity is not positive. | |
| TAmounts & | operator+= (TAmounts const &rhs) |
| TAmounts & | operator-= (TAmounts const &rhs) |
Public Attributes | |
| In | in {} |
| Out | out {} |
Represents a pair of input and output currencies.
The input currency can be converted to the output currency by multiplying by the rate, represented by Quality.
For offers, "in" is always TakerPays and "out" is always TakerGets.
|
default |
| xrpl::TAmounts< In, Out >::TAmounts | ( | beast::Zero | , |
| beast::Zero | ) |
| xrpl::TAmounts< In, Out >::TAmounts | ( | In | in, |
| Out | out ) |
|
nodiscardnoexcept |
| TAmounts & xrpl::TAmounts< In, Out >::operator+= | ( | TAmounts< In, Out > const & | rhs | ) |
| TAmounts & xrpl::TAmounts< In, Out >::operator-= | ( | TAmounts< In, Out > const & | rhs | ) |
| In xrpl::TAmounts< In, Out >::in {} |
| Out xrpl::TAmounts< In, Out >::out {} |