| 
    rippled
    
   | 
 
#include <OfferStream.h>


Classes | |
| class | StepCounter | 
Public Member Functions | |
| TOfferStreamBase (ApplyView &view, ApplyView &cancelView, Book const &book, NetClock::time_point when, StepCounter &counter, beast::Journal journal) | |
| virtual | ~TOfferStreamBase ()=default | 
| TOffer< TIn, TOut > & | tip () const | 
| Returns the offer at the tip of the order book.   | |
| bool | step () | 
| Advance to the next valid offer.   | |
| TOut | ownerFunds () const | 
Protected Member Functions | |
| void | erase (ApplyView &view) | 
| virtual void | permRmOffer (uint256 const &offerIndex)=0 | 
| template<class TTakerPays , class TTakerGets > | |
| bool | shouldRmSmallIncreasedQOffer () const | 
Protected Attributes | |
| beast::Journal const | j_ | 
| ApplyView & | view_ | 
| ApplyView & | cancelView_ | 
| Book | book_ | 
| bool | validBook_ | 
| NetClock::time_point const | expire_ | 
| BookTip | tip_ | 
| TOffer< TIn, TOut > | offer_ | 
| std::optional< TOut > | ownerFunds_ | 
| StepCounter & | counter_ | 
Definition at line 36 of file OfferStream.h.
| ripple::TOfferStreamBase< TIn, TOut >::TOfferStreamBase | ( | ApplyView & | view, | 
| ApplyView & | cancelView, | ||
| Book const & | book, | ||
| NetClock::time_point | when, | ||
| StepCounter & | counter, | ||
| beast::Journal | journal | ||
| ) | 
Definition at line 42 of file OfferStream.cpp.
      
  | 
  virtualdefault | 
      
  | 
  protected | 
Definition at line 66 of file OfferStream.cpp.
      
  | 
  protectedpure virtual | 
Implemented in ripple::OfferStream, and ripple::FlowOfferStream< TIn, TOut >.
      
  | 
  protected | 
Definition at line 144 of file OfferStream.cpp.
| TOffer< TIn, TOut > & ripple::TOfferStreamBase< TIn, TOut >::tip | ( | ) | const | 
Returns the offer at the tip of the order book.
Offers are always presented in decreasing quality. Only valid if step() returned true. 
Definition at line 108 of file OfferStream.h.
| bool ripple::TOfferStreamBase< TIn, TOut >::step | ( | ) | 
Advance to the next valid offer.
This automatically removes:
true if there is a valid offer. Definition at line 215 of file OfferStream.cpp.
| TOut ripple::TOfferStreamBase< TIn, TOut >::ownerFunds | ( | ) | const | 
Definition at line 124 of file OfferStream.h.
      
  | 
  protected | 
Definition at line 71 of file OfferStream.h.
      
  | 
  protected | 
Definition at line 72 of file OfferStream.h.
      
  | 
  protected | 
Definition at line 73 of file OfferStream.h.
      
  | 
  protected | 
Definition at line 74 of file OfferStream.h.
      
  | 
  protected | 
Definition at line 75 of file OfferStream.h.
      
  | 
  protected | 
Definition at line 76 of file OfferStream.h.
      
  | 
  protected | 
Definition at line 77 of file OfferStream.h.
      
  | 
  protected | 
Definition at line 78 of file OfferStream.h.
      
  | 
  protected | 
Definition at line 79 of file OfferStream.h.
      
  | 
  protected | 
Definition at line 80 of file OfferStream.h.