|
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 129 of file OfferStream.h.
|
overridevirtual |
Implements xrpl::TOfferStreamBase< TIn, TOut >.
Definition at line 343 of file OfferStream.cpp.
|
nodiscard |
Definition at line 145 of file OfferStream.h.
|
protectedinherited |
Definition at line 71 of file OfferStream.cpp.
|
nodiscardprotectedinherited |
Definition at line 136 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 88 of file OfferStream.h.
|
inherited |
Advance to the next valid offer.
This automatically removes:
Definition at line 192 of file OfferStream.cpp.
|
nodiscardinherited |
Definition at line 104 of file OfferStream.h.
|
private |
Definition at line 132 of file OfferStream.h.
|
protectedinherited |
Definition at line 50 of file OfferStream.h.
|
protectedinherited |
Definition at line 51 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.