rippled
|
Public Member Functions | |
TOffer ()=default | |
TOffer (SLE::pointer const &entry, Quality quality) | |
const Quality | quality () const noexcept |
Returns the quality of the offer. More... | |
AccountID const & | owner () const |
Returns the account id of the offer's owner. More... | |
TAmounts< TIn, TOut > const & | amount () const |
Returns the in and out amounts. More... | |
bool | fully_consumed () const |
Returns true if no more funds can flow through this offer. More... | |
void | consume (ApplyView &view, TAmounts< TIn, TOut > const &consumed) |
Adjusts the offer to indicate that we consumed some (or all) of it. More... | |
std::string | id () const |
uint256 | key () const |
Issue | issueIn () const |
Issue | issueOut () const |
TOffer (SLE::pointer const &entry, Quality quality) | |
Issue | issueIn () const |
Issue | issueOut () const |
Private Member Functions | |
void | setFieldAmounts () |
void | setFieldAmounts () |
void | setFieldAmounts () |
void | setFieldAmounts () |
void | setFieldAmounts () |
Private Attributes | |
SLE::pointer | m_entry |
Quality | m_quality |
AccountID | m_account |
TAmounts< TIn, TOut > | m_amounts |
|
default |
ripple::TOffer< TIn, TOut >::TOffer | ( | SLE::pointer const & | entry, |
Quality | quality | ||
) |
ripple::TOffer< STAmount, STAmount >::TOffer | ( | SLE::pointer const & | entry, |
Quality | quality | ||
) |
|
private |
|
noexcept |
Returns the quality of the offer.
Conceptually, the quality is the ratio of output to input currency. The implementation calculates it as the ratio of input to output currency (so it sorts ascending). The quality is computed at the time the offer is placed, and never changes for the lifetime of the offer. This is an important business rule that maintains accuracy when an offer is partially filled; Subsequent partial fills will use the original quality.
AccountID const& ripple::TOffer< TIn, TOut >::owner | ( | ) | const |
TAmounts<TIn, TOut> const& ripple::TOffer< TIn, TOut >::amount | ( | ) | const |
bool ripple::TOffer< TIn, TOut >::fully_consumed | ( | ) | const |
void ripple::TOffer< TIn, TOut >::consume | ( | ApplyView & | view, |
TAmounts< TIn, TOut > const & | consumed | ||
) |
std::string ripple::TOffer< TIn, TOut >::id | ( | ) | const |
uint256 ripple::TOffer< TIn, TOut >::key | ( | ) | const |
Issue ripple::TOffer< TIn, TOut >::issueIn |
Issue ripple::TOffer< TIn, TOut >::issueOut |
|
private |
|
private |
|
private |
|
private |
Issue ripple::TOffer< STAmount, STAmount >::issueIn | ( | ) | const |
Issue ripple::TOffer< STAmount, STAmount >::issueOut | ( | ) | const |
|
private |
|
private |
|
private |
|
private |