| 
    rippled
    
   | 
 
Presents and consumes the offers in an order book. More...
#include <OfferStream.h>


Public Member Functions | |
| void | permRmOffer (uint256 const &offerIndex) override | 
| boost::container::flat_set< uint256 > const & | permToRemove () const | 
| 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) | 
| 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_ | 
Private Attributes | |
| boost::container::flat_set< uint256 > | permToRemove_ | 
Presents and consumes the offers in an order book.
The ‘view_’ ApplyViewaccumulates changes to the ledger. ThecancelView_is used to determine if an offer is found unfunded or became unfunded. ThepermToRemove` collection identifies offers that should be removed even if the strand associated with this OfferStream is not applied.
Certain invalid offers are added to the permToRemove collection:
Definition at line 175 of file OfferStream.h.
      
  | 
  overridevirtual | 
Implements ripple::TOfferStreamBase< TIn, TOut >.
Definition at line 411 of file OfferStream.cpp.
| boost::container::flat_set< uint256 > const & ripple::FlowOfferStream< TIn, TOut >::permToRemove | ( | ) | const | 
Definition at line 191 of file OfferStream.h.
      
  | 
  protectedinherited | 
Definition at line 66 of file OfferStream.cpp.
      
  | 
  protectedinherited | 
Definition at line 144 of file OfferStream.cpp.
      
  | 
  inherited | 
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.
      
  | 
  inherited | 
Advance to the next valid offer.
This automatically removes:
true if there is a valid offer. Definition at line 215 of file OfferStream.cpp.
      
  | 
  inherited | 
Definition at line 124 of file OfferStream.h.
      
  | 
  private | 
Definition at line 178 of file OfferStream.h.
      
  | 
  protectedinherited | 
Definition at line 71 of file OfferStream.h.
      
  | 
  protectedinherited | 
Definition at line 72 of file OfferStream.h.
      
  | 
  protectedinherited | 
Definition at line 73 of file OfferStream.h.
      
  | 
  protectedinherited | 
Definition at line 74 of file OfferStream.h.
      
  | 
  protectedinherited | 
Definition at line 75 of file OfferStream.h.
      
  | 
  protectedinherited | 
Definition at line 76 of file OfferStream.h.
      
  | 
  protectedinherited | 
Definition at line 77 of file OfferStream.h.
      
  | 
  protectedinherited | 
Definition at line 78 of file OfferStream.h.
      
  | 
  protectedinherited | 
Definition at line 79 of file OfferStream.h.
      
  | 
  protectedinherited | 
Definition at line 80 of file OfferStream.h.