|
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 128 of file OfferStream.h.
|
overrideprotectedvirtual |
Implements ripple::TOfferStreamBase< STAmount, STAmount >.
Definition at line 385 of file OfferStream.cpp.
|
protectedinherited |
Definition at line 64 of file OfferStream.cpp.
|
protectedinherited |
Definition at line 71 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 102 of file OfferStream.cpp.
|
inherited |
Definition at line 105 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.