|
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 156 of file OfferStream.h.
|
overridevirtual |
Implements ripple::TOfferStreamBase< TIn, TOut >.
Definition at line 392 of file OfferStream.cpp.
| boost::container::flat_set< uint256 > const & ripple::FlowOfferStream< TIn, TOut >::permToRemove | ( | ) | const |
Definition at line 172 of file OfferStream.h.
|
protectedinherited |
Definition at line 47 of file OfferStream.cpp.
|
protectedinherited |
Definition at line 125 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 89 of file OfferStream.h.
|
inherited |
Advance to the next valid offer.
This automatically removes:
true if there is a valid offer. Definition at line 196 of file OfferStream.cpp.
|
inherited |
Definition at line 105 of file OfferStream.h.
|
private |
Definition at line 159 of file OfferStream.h.
|
protectedinherited |
Definition at line 52 of file OfferStream.h.
|
protectedinherited |
Definition at line 53 of file OfferStream.h.
|
protectedinherited |
Definition at line 54 of file OfferStream.h.
|
protectedinherited |
Definition at line 55 of file OfferStream.h.
|
protectedinherited |
Definition at line 56 of file OfferStream.h.
|
protectedinherited |
Definition at line 57 of file OfferStream.h.
|
protectedinherited |
Definition at line 58 of file OfferStream.h.
|
protectedinherited |
Definition at line 59 of file OfferStream.h.
|
protectedinherited |
Definition at line 60 of file OfferStream.h.
|
protectedinherited |
Definition at line 61 of file OfferStream.h.