|
xrpld
|
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_' ApplyView accumulates changes to the ledger. The cancelView_ is used to determine if an offer is found unfunded or became unfunded. The permToRemove 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 138 of file OfferStream.h.
|
overridevirtual |
Implements xrpl::TOfferStreamBase< TIn, TOut >.
Definition at line 384 of file OfferStream.cpp.
|
nodiscard |
Definition at line 154 of file OfferStream.h.
|
protectedinherited |
Definition at line 73 of file OfferStream.cpp.
|
nodiscardprotectedinherited |
Definition at line 138 of file OfferStream.cpp.
|
nodiscardinherited |
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 94 of file OfferStream.h.
|
inherited |
Advance to the next valid offer.
This automatically removes:
Definition at line 199 of file OfferStream.cpp.
|
nodiscardinherited |
Definition at line 112 of file OfferStream.h.
|
private |
Definition at line 141 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.
|
protectedinherited |
Definition at line 62 of file OfferStream.h.
|
protectedinherited |
Definition at line 63 of file OfferStream.h.
|
protectedinherited |
Definition at line 64 of file OfferStream.h.