|
xrpld
|
#include <PayChannelEntry.h>


Public Types | |
| using | Base = SLEBase<ViewT, ltPAYCHAN> |
| using | SlePtrType |
| using | ViewRefType |
Public Member Functions | |
| PayChannelEntry (AccountID const &src, AccountID const &dst, SeqProxy const &seq, Base::ViewRefType view, beast::Journal j=beast::Journal{beast::Journal::getNullSink()}) | |
| bool | exists () const |
| Returns true if the ledger entry exists. | |
| operator bool () const | |
| Explicit conversion to bool for convenient existence checking. | |
| SLE::const_pointer | rawSle () const |
| Returns the underlying SLE for read access. | |
| LedgerEntryType | type () const |
| Returns the ledger entry type of this entry. | |
| Keylet | keylet () const |
| Returns the keylet identifying this entry. | |
| UInt256 | key () const |
| Returns the ledger key of this entry. | |
| ReadView const & | readView () const |
| Returns the read view (always available; ApplyView inherits ReadView). | |
| STLedgerEntry const * | operator-> () const |
| Const dereference operators (always available). | |
| STLedgerEntry * | operator-> () |
| Mutable dereference operators. | |
| STLedgerEntry const & | operator* () const |
| STLedgerEntry & | operator* () |
| SlePtrType const & | mutableRawSle () |
| Returns the underlying SLE for write access. | |
| ApplyView & | applyView () |
| Returns the apply view for write operations. | |
| void | insert () |
| Inserts the entry into the view. | |
| void | erase () |
| Erases the entry from the view. | |
| void | update () |
| void | newSLE () |
| beast::Journal | journal () const |
Static Public Attributes | |
| static constexpr bool | kIsWritable |
| static constexpr LedgerEntryType | kEntryType |
| static constexpr bool | kIsTyped |
Protected Attributes | |
| ViewRefType | view_ |
| std::conditional_t< kIsWritable, Keylet, Empty > | key_ |
| SlePtrType | sle_ |
| beast::Journal | j_ |
Definition at line 15 of file PayChannelEntry.h.
| using xrpl::PayChannelEntry< ViewT >::Base = SLEBase<ViewT, ltPAYCHAN> |
Definition at line 18 of file PayChannelEntry.h.
|
inherited |
|
inherited |
|
explicit |
Definition at line 24 of file PayChannelEntry.h.
|
nodiscardinherited |
|
explicitinherited |
|
nodiscardinherited |
|
nodiscardinherited |
Returns the ledger entry type of this entry.
For a per-type entry this is kEntryType, known at compile time and valid whether or not the entry exists. Only the generic ReadOnlySLE / WritableSLE aliases have to read it back out of the SLE.
| std::logic_error | for a generic (ltANY) entry if exists() is false. |
|
nodiscardinherited |
|
nodiscardinherited |
|
nodiscardinherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
nodiscardinherited |
|
nodiscardinherited |
|
inherited |
|
inherited |
Erases the entry from the view.
Drops the SLE afterwards, so the entry reports !exists() and any further use throws here rather than either throwing from deep inside ApplyStateTable or – worse – silently succeeding. For an entry that already existed, ApplyStateTable::erase keeps holding this exact SLE and builds the DeletedNode's FinalFields from it, so a write through the entry after erase() would land in transaction metadata with no diagnostic at all.
| std::logic_error | if exists() is false. |
|
inherited |
|
inherited |
|
nodiscardinherited |
|
staticconstexprinherited |
|
staticconstexprinherited |
|
staticconstexprinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |