| 
    rippled
    
   | 
 
Maintains AMM info per overall payment engine execution and individual iteration. More...
#include <AMMContext.h>

Public Member Functions | |
| AMMContext (AccountID const &account, bool multiPath) | |
| ~AMMContext ()=default | |
| AMMContext (AMMContext const &)=delete | |
| AMMContext & | operator= (AMMContext const &)=delete | 
| bool | multiPath () const | 
| void | setMultiPath (bool fs) | 
| void | setAMMUsed () | 
| void | update () | 
| bool | maxItersReached () const | 
| std::uint16_t | curIters () const | 
| AccountID | account () const | 
| void | clear () | 
| Strand execution may fail.   | |
Static Public Attributes | |
| static constexpr std::uint8_t | MaxIterations = 30 | 
Private Attributes | |
| AccountID | account_ | 
| bool | multiPath_ {false} | 
| bool | ammUsed_ {false} | 
| std::uint16_t | ammIters_ {0} | 
Maintains AMM info per overall payment engine execution and individual iteration.
Only one instance of this class is created in Flow.cpp::flow(). The reference is percolated through calls to AMMLiquidity class, which handles AMM offer generation.
Definition at line 35 of file AMMContext.h.
| ripple::AMMContext::AMMContext | ( | AccountID const & | account, | 
| bool | multiPath | ||
| ) | 
Definition at line 54 of file AMMContext.h.
      
  | 
  default | 
      
  | 
  delete | 
      
  | 
  delete | 
| bool ripple::AMMContext::multiPath | ( | ) | const | 
Definition at line 64 of file AMMContext.h.
| void ripple::AMMContext::setMultiPath | ( | bool | fs | ) | 
Definition at line 70 of file AMMContext.h.
| void ripple::AMMContext::setAMMUsed | ( | ) | 
Definition at line 76 of file AMMContext.h.
| void ripple::AMMContext::update | ( | ) | 
Definition at line 82 of file AMMContext.h.
| bool ripple::AMMContext::maxItersReached | ( | ) | const | 
Definition at line 90 of file AMMContext.h.
| std::uint16_t ripple::AMMContext::curIters | ( | ) | const | 
Definition at line 96 of file AMMContext.h.
| AccountID ripple::AMMContext::account | ( | ) | const | 
Definition at line 102 of file AMMContext.h.
| void ripple::AMMContext::clear | ( | ) | 
Strand execution may fail.
Reset the flag at the start of each payment engine iteration.
Definition at line 111 of file AMMContext.h.
      
  | 
  staticconstexpr | 
Definition at line 41 of file AMMContext.h.
      
  | 
  private | 
Definition at line 45 of file AMMContext.h.
      
  | 
  private | 
Definition at line 47 of file AMMContext.h.
      
  | 
  private | 
Definition at line 49 of file AMMContext.h.
      
  | 
  private | 
Definition at line 51 of file AMMContext.h.