| 
    rippled
    
   | 
 
#include <Offer.h>


Public Member Functions | |
| TOffer ()=default | |
| TOffer (SLE::pointer const &entry, Quality quality) | |
| Quality | quality () const noexcept | 
| Returns the quality of the offer.   | |
| AccountID const & | owner () const | 
| Returns the account id of the offer's owner.   | |
| TAmounts< TIn, TOut > const & | amount () const | 
| Returns the in and out amounts.   | |
| bool | fully_consumed () const | 
Returns true if no more funds can flow through this offer.   | |
| void | consume (ApplyView &view, TAmounts< TIn, TOut > const &consumed) | 
| Adjusts the offer to indicate that we consumed some (or all) of it.   | |
| std::string | id () const | 
| std::optional< uint256 > | key () const | 
| Issue const & | issueIn () const | 
| Issue const & | issueOut () const | 
| TAmounts< TIn, TOut > | limitOut (TAmounts< TIn, TOut > const &offrAmt, TOut const &limit, bool roundUp) const | 
| TAmounts< TIn, TOut > | limitIn (TAmounts< TIn, TOut > const &offrAmt, TIn const &limit, bool roundUp) const | 
| bool | isFunded () const | 
| bool | checkInvariant (TAmounts< TIn, TOut > const &consumed, beast::Journal j) const | 
| Check any required invariant.   | |
| TOffer (SLE::pointer const &entry, Quality quality) | |
| Issue const & | issueIn () const | 
| Issue const & | issueOut () const | 
Static Public Member Functions | |
| template<typename... Args> | |
| static TER | send (Args &&... args) | 
| static std::pair< std::uint32_t, std::uint32_t > | adjustRates (std::uint32_t ofrInRate, std::uint32_t ofrOutRate) | 
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 | 
| Issue | issIn_ | 
| Issue | issOut_ | 
      
  | 
  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 | 
| std::optional< uint256 > ripple::TOffer< TIn, TOut >::key | ( | ) | const | 
| Issue const & ripple::TOffer< TIn, TOut >::issueIn | ( | ) | const | 
| Issue const & ripple::TOffer< TIn, TOut >::issueOut | ( | ) | const | 
| TAmounts< TIn, TOut > ripple::TOffer< TIn, TOut >::limitOut | ( | TAmounts< TIn, TOut > const & | offrAmt, | 
| TOut const & | limit, | ||
| bool | roundUp | ||
| ) | const | 
| TAmounts< TIn, TOut > ripple::TOffer< TIn, TOut >::limitIn | ( | TAmounts< TIn, TOut > const & | offrAmt, | 
| TIn const & | limit, | ||
| bool | roundUp | ||
| ) | const | 
      
  | 
  static | 
| bool ripple::TOffer< TIn, TOut >::isFunded | ( | ) | const | 
      
  | 
  static | 
| bool ripple::TOffer< TIn, TOut >::checkInvariant | ( | TAmounts< TIn, TOut > const & | consumed, | 
| beast::Journal | j | ||
| ) | const | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
| Issue const & ripple::TOffer< STAmount, STAmount >::issueIn | ( | ) | const | 
| Issue const & ripple::TOffer< STAmount, STAmount >::issueOut | ( | ) | const | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  protectedinherited | 
      
  | 
  protectedinherited |