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


Public Member Functions | |
| TOffer< STAmount, STAmount > & | tip () const |
| Returns the offer at the tip of the order book. | |
| bool | step () |
| Advance to the next valid offer. | |
| STAmount | ownerFunds () const |
Protected Member Functions | |
| void | permRmOffer (uint256 const &offerIndex) override |
| void | erase (ApplyView &view) |
| 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< STAmount, STAmount > | offer_ |
| std::optional< STAmount > | ownerFunds_ |
| StepCounter & | counter_ |
Presents and consumes the offers in an order book.
Two ApplyView objects accumulate changes to the ledger. view is applied when the calling transaction succeeds. If the calling transaction fails, then view_cancel is applied.
Certain invalid offers are automatically removed:
When an offer is removed, it is removed from both views. This grooms the order book regardless of whether or not the transaction is successful.
Definition at line 126 of file OfferStream.h.
|
overrideprotectedvirtual |
Implements xrpl::TOfferStreamBase< STAmount, STAmount >.
Definition at line 341 of file OfferStream.cpp.
|
protectedinherited |
Definition at line 62 of file OfferStream.cpp.
|
protectedinherited |
Definition at line 69 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 87 of file OfferStream.h.
|
inherited |
Advance to the next valid offer.
This automatically removes:
true if there is a valid offer. Definition at line 100 of file OfferStream.cpp.
|
inherited |
Definition at line 103 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.