|
xrpld
|
#include <ApplyStateTable.h>

Public Types | |
| using | key_type = ReadView::key_type |
Public Member Functions | |
| ApplyStateTable ()=default | |
| ApplyStateTable (ApplyStateTable &&)=default | |
| ApplyStateTable (ApplyStateTable const &)=delete | |
| ApplyStateTable & | operator= (ApplyStateTable &&)=delete |
| ApplyStateTable & | operator= (ApplyStateTable const &)=delete |
| void | apply (RawView &to) const |
| std::optional< TxMeta > | apply (OpenView &to, STTx const &tx, TER ter, std::optional< STAmount > const &deliver, std::optional< UInt256 const > const &parentBatchId, bool isDryRun, beast::Journal j) |
| bool | exists (ReadView const &base, Keylet const &k) const |
| std::optional< key_type > | succ (ReadView const &base, key_type const &key, std::optional< key_type > const &last) const |
| SLE::const_pointer | read (ReadView const &base, Keylet const &k) const |
| SLE::pointer | peek (ReadView const &base, Keylet const &k) |
| std::size_t | size () const |
| void | visit (ReadView const &base, std::function< void(UInt256 const &key, bool isDelete, SLE::ConstRef before, SLE::ConstRef after)> const &func) const |
| void | erase (ReadView const &base, SLE::Ref sle) |
| void | rawErase (ReadView const &base, SLE::Ref sle) |
| void | insert (ReadView const &base, SLE::Ref sle) |
| void | update (ReadView const &base, SLE::Ref sle) |
| void | replace (ReadView const &base, SLE::Ref sle) |
| void | destroyXRP (XRPAmount const &fee) |
| XRPAmount const & | dropsDestroyed () const |
Private Types | |
| enum class | Action { Cache , Erase , Insert , Modify } |
| using | ItemsT = std::map<key_type, std::pair<Action, SLE::pointer>> |
| using | Mods = HashMap<key_type, SLE::pointer> |
Private Member Functions | |
| SLE::pointer | getForMod (ReadView const &base, key_type const &key, Mods &mods, beast::Journal j) |
| void | threadTx (ReadView const &base, TxMeta &meta, AccountID const &to, Mods &mods, beast::Journal j) |
| void | threadOwners (ReadView const &base, TxMeta &meta, SLE::ConstRef sle, Mods &mods, beast::Journal j) |
Static Private Member Functions | |
| static void | threadItem (TxMeta &meta, SLE::Ref to) |
Private Attributes | |
| ItemsT | items_ |
| XRPAmount | dropsDestroyed_ {0} |
Definition at line 27 of file ApplyStateTable.h.
Definition at line 30 of file ApplyStateTable.h.
|
private |
Definition at line 40 of file ApplyStateTable.h.
|
private |
Definition at line 118 of file ApplyStateTable.h.
|
strongprivate |
| Enumerator | |
|---|---|
| Cache | |
| Erase | |
| Insert | |
| Modify | |
Definition at line 33 of file ApplyStateTable.h.
|
default |
|
default |
|
delete |
|
delete |
|
delete |
| void xrpl::detail::ApplyStateTable::apply | ( | RawView & | to | ) | const |
Definition at line 38 of file ApplyStateTable.cpp.
| std::optional< TxMeta > xrpl::detail::ApplyStateTable::apply | ( | OpenView & | to, |
| STTx const & | tx, | ||
| TER | ter, | ||
| std::optional< STAmount > const & | deliver, | ||
| std::optional< UInt256 const > const & | parentBatchId, | ||
| bool | isDryRun, | ||
| beast::Journal | j ) |
Definition at line 110 of file ApplyStateTable.cpp.
|
nodiscard |
Definition at line 286 of file ApplyStateTable.cpp.
|
nodiscard |
Definition at line 306 of file ApplyStateTable.cpp.
|
nodiscard |
Definition at line 341 of file ApplyStateTable.cpp.
| SLE::pointer xrpl::detail::ApplyStateTable::peek | ( | ReadView const & | base, |
| Keylet const & | k ) |
Definition at line 363 of file ApplyStateTable.cpp.
|
nodiscard |
Definition at line 62 of file ApplyStateTable.cpp.
| void xrpl::detail::ApplyStateTable::visit | ( | ReadView const & | base, |
| std::function< void(UInt256 const &key, bool isDelete, SLE::ConstRef before, SLE::ConstRef after)> const & | func ) const |
Definition at line 81 of file ApplyStateTable.cpp.
Definition at line 397 of file ApplyStateTable.cpp.
Definition at line 421 of file ApplyStateTable.cpp.
Definition at line 446 of file ApplyStateTable.cpp.
Definition at line 505 of file ApplyStateTable.cpp.
Definition at line 476 of file ApplyStateTable.cpp.
| void xrpl::detail::ApplyStateTable::destroyXRP | ( | XRPAmount const & | fee | ) |
Definition at line 528 of file ApplyStateTable.cpp.
|
nodiscard |
Definition at line 112 of file ApplyStateTable.h.
Definition at line 537 of file ApplyStateTable.cpp.
|
private |
Definition at line 570 of file ApplyStateTable.cpp.
|
private |
Definition at line 615 of file ApplyStateTable.cpp.
|
private |
Definition at line 638 of file ApplyStateTable.cpp.
|
private |
Definition at line 42 of file ApplyStateTable.h.
|
private |
Definition at line 43 of file ApplyStateTable.h.