| 
    rippled
    
   | 
 
State information when applying a tx. More...
#include <ApplyContext.h>

Public Member Functions | |
| ApplyContext (Application &app, OpenView &base, std::optional< uint256 const > const &parentBatchId, STTx const &tx, TER preclaimResult, XRPAmount baseFee, ApplyFlags flags, beast::Journal journal=beast::Journal{beast::Journal::getNullSink()}) | |
| ApplyContext (Application &app, OpenView &base, STTx const &tx, TER preclaimResult, XRPAmount baseFee, ApplyFlags flags, beast::Journal journal=beast::Journal{beast::Journal::getNullSink()}) | |
| ApplyView & | view () | 
| ApplyView const & | view () const | 
| RawView & | rawView () | 
| ApplyFlags const & | flags () const | 
| void | deliver (STAmount const &amount) | 
| Sets the DeliveredAmount field in the metadata.   | |
| void | discard () | 
| Discard changes and start fresh.   | |
| std::optional< TxMeta > | apply (TER) | 
| Apply the transaction result to the base.   | |
| std::size_t | size () | 
| Get the number of unapplied changes.   | |
| void | visit (std::function< void(uint256 const &key, bool isDelete, std::shared_ptr< SLE const > const &before, std::shared_ptr< SLE const > const &after)> const &func) | 
| Visit unapplied changes.   | |
| void | destroyXRP (XRPAmount const &fee) | 
| TER | checkInvariants (TER const result, XRPAmount const fee) | 
| Applies all invariant checkers one by one.   | |
Public Attributes | |
| Application & | app | 
| STTx const & | tx | 
| TER const | preclaimResult | 
| XRPAmount const | baseFee | 
| beast::Journal const | journal | 
Private Member Functions | |
| TER | failInvariantCheck (TER const result) | 
| template<std::size_t... Is> | |
| TER | checkInvariantsHelper (TER const result, XRPAmount const fee, std::index_sequence< Is... >) | 
Private Attributes | |
| OpenView & | base_ | 
| ApplyFlags | flags_ | 
| std::optional< ApplyViewImpl > | view_ | 
| std::optional< uint256 const > | parentBatchId_ | 
State information when applying a tx.
Definition at line 36 of file ApplyContext.h.
      
  | 
  explicit | 
Definition at line 29 of file ApplyContext.cpp.
      
  | 
  explicit | 
Definition at line 49 of file ApplyContext.h.
| ApplyView & ripple::ApplyContext::view | ( | ) | 
Definition at line 78 of file ApplyContext.h.
| ApplyView const & ripple::ApplyContext::view | ( | ) | const | 
Definition at line 84 of file ApplyContext.h.
| RawView & ripple::ApplyContext::rawView | ( | ) | 
Definition at line 91 of file ApplyContext.h.
| ApplyFlags const & ripple::ApplyContext::flags | ( | ) | const | 
Definition at line 97 of file ApplyContext.h.
| void ripple::ApplyContext::deliver | ( | STAmount const & | amount | ) | 
Sets the DeliveredAmount field in the metadata.
Definition at line 104 of file ApplyContext.h.
| void ripple::ApplyContext::discard | ( | ) | 
Discard changes and start fresh.
Definition at line 54 of file ApplyContext.cpp.
| std::optional< TxMeta > ripple::ApplyContext::apply | ( | TER | ter | ) | 
Apply the transaction result to the base.
Definition at line 60 of file ApplyContext.cpp.
| std::size_t ripple::ApplyContext::size | ( | ) | 
Get the number of unapplied changes.
Definition at line 67 of file ApplyContext.cpp.
| void ripple::ApplyContext::visit | ( | std::function< void(uint256 const &key, bool isDelete, std::shared_ptr< SLE const > const &before, std::shared_ptr< SLE const > const &after)> const & | func | ) | 
Visit unapplied changes.
Definition at line 73 of file ApplyContext.cpp.
| void ripple::ApplyContext::destroyXRP | ( | XRPAmount const & | fee | ) | 
Definition at line 129 of file ApplyContext.h.
Applies all invariant checkers one by one.
| result | the result generated by processing this transaction. | 
| fee | the fee charged for this transaction | 
Definition at line 151 of file ApplyContext.cpp.
Definition at line 83 of file ApplyContext.cpp.
      
  | 
  private | 
Definition at line 97 of file ApplyContext.cpp.
| Application& ripple::ApplyContext::app | 
Definition at line 71 of file ApplyContext.h.
| STTx const& ripple::ApplyContext::tx | 
Definition at line 72 of file ApplyContext.h.
| TER const ripple::ApplyContext::preclaimResult | 
Definition at line 73 of file ApplyContext.h.
| XRPAmount const ripple::ApplyContext::baseFee | 
Definition at line 74 of file ApplyContext.h.
| beast::Journal const ripple::ApplyContext::journal | 
Definition at line 75 of file ApplyContext.h.
      
  | 
  private | 
Definition at line 154 of file ApplyContext.h.
      
  | 
  private | 
Definition at line 155 of file ApplyContext.h.
      
  | 
  private | 
Definition at line 156 of file ApplyContext.h.
      
  | 
  private | 
Definition at line 159 of file ApplyContext.h.