xrpld
Loading...
Searching...
No Matches
xrpl::XRPEndpointPaymentStep Class Reference
Inheritance diagram for xrpl::XRPEndpointPaymentStep:
Collaboration diagram for xrpl::XRPEndpointPaymentStep:

Public Member Functions

 XRPEndpointPaymentStep (StrandContext const &ctx, AccountID const &acc)
XRPAmount xrpLiquid (ReadView &sb) const
std::string logString () const override
AccountID const & acc () const
std::optional< std::pair< AccountID, AccountID > > directStepAccts () const override
std::optional< EitherAmountcachedIn () const override
std::optional< EitherAmountcachedOut () const override
DebtDirection debtDirection (ReadView const &sb, StrandDirection dir) const override
std::pair< std::optional< Quality >, DebtDirectionqualityUpperBound (ReadView const &v, DebtDirection prevStepDir) const override
std::pair< XRPAmount, XRPAmountrevImp (PaymentSandbox &sb, ApplyView &afView, boost::container::flat_set< uint256 > &ofrsToRm, XRPAmount const &out)
std::pair< XRPAmount, XRPAmountfwdImp (PaymentSandbox &sb, ApplyView &afView, boost::container::flat_set< uint256 > &ofrsToRm, XRPAmount const &in)
std::pair< bool, EitherAmountvalidFwd (PaymentSandbox &sb, ApplyView &afView, EitherAmount const &in) override
TER check (StrandContext const &ctx) const

Protected Member Functions

XRPAmount xrpLiquidImpl (ReadView &sb, std::int32_t reserveReduction) const
std::string logStringImpl (char const *name) const

Private Member Functions

std::optional< EitherAmountcached () const
bool equal (Step const &rhs) const override

Private Attributes

AccountID acc_
bool const isLast_
beast::Journal const j_
std::optional< XRPAmountcache_
friend TDerived

Detailed Description

Definition at line 166 of file XRPEndpointStep.cpp.

Constructor & Destructor Documentation

◆ XRPEndpointPaymentStep()

xrpl::XRPEndpointPaymentStep::XRPEndpointPaymentStep ( StrandContext const & ctx,
AccountID const & acc )

Definition at line 169 of file XRPEndpointStep.cpp.

Member Function Documentation

◆ xrpLiquid()

XRPAmount xrpl::XRPEndpointPaymentStep::xrpLiquid ( ReadView & sb) const

Definition at line 175 of file XRPEndpointStep.cpp.

◆ logString()

std::string xrpl::XRPEndpointPaymentStep::logString ( ) const
nodiscardoverride

Definition at line 182 of file XRPEndpointStep.cpp.

◆ cached()

std::optional< EitherAmount > xrpl::XRPEndpointStep< XRPEndpointPaymentStep >::cached ( ) const
nodiscardprivateinherited

Definition at line 48 of file XRPEndpointStep.cpp.

◆ acc()

AccountID const & xrpl::XRPEndpointStep< XRPEndpointPaymentStep >::acc ( ) const
nodiscardinherited

Definition at line 62 of file XRPEndpointStep.cpp.

◆ directStepAccts()

std::optional< std::pair< AccountID, AccountID > > xrpl::XRPEndpointStep< XRPEndpointPaymentStep >::directStepAccts ( ) const
nodiscardoverrideinherited

Definition at line 68 of file XRPEndpointStep.cpp.

◆ cachedIn()

std::optional< EitherAmount > xrpl::XRPEndpointStep< XRPEndpointPaymentStep >::cachedIn ( ) const
nodiscardoverrideinherited

Definition at line 76 of file XRPEndpointStep.cpp.

◆ cachedOut()

std::optional< EitherAmount > xrpl::XRPEndpointStep< XRPEndpointPaymentStep >::cachedOut ( ) const
nodiscardoverrideinherited

Definition at line 82 of file XRPEndpointStep.cpp.

◆ debtDirection()

DebtDirection xrpl::XRPEndpointStep< XRPEndpointPaymentStep >::debtDirection ( ReadView const & sb,
StrandDirection dir ) const
nodiscardoverrideinherited

Definition at line 88 of file XRPEndpointStep.cpp.

◆ qualityUpperBound()

std::pair< std::optional< Quality >, DebtDirection > xrpl::XRPEndpointStep< XRPEndpointPaymentStep >::qualityUpperBound ( ReadView const & v,
DebtDirection prevStepDir ) const
nodiscardoverrideinherited

Definition at line 94 of file XRPEndpointStep.cpp.

◆ revImp()

std::pair< XRPAmount, XRPAmount > xrpl::XRPEndpointStep< XRPEndpointPaymentStep >::revImp ( PaymentSandbox & sb,
ApplyView & afView,
boost::container::flat_set< uint256 > & ofrsToRm,
XRPAmount const & out )
inherited

Definition at line 97 of file XRPEndpointStep.cpp.

◆ fwdImp()

std::pair< XRPAmount, XRPAmount > xrpl::XRPEndpointStep< XRPEndpointPaymentStep >::fwdImp ( PaymentSandbox & sb,
ApplyView & afView,
boost::container::flat_set< uint256 > & ofrsToRm,
XRPAmount const & in )
inherited

Definition at line 104 of file XRPEndpointStep.cpp.

◆ validFwd()

std::pair< bool, EitherAmount > xrpl::XRPEndpointStep< XRPEndpointPaymentStep >::validFwd ( PaymentSandbox & sb,
ApplyView & afView,
EitherAmount const & in )
overrideinherited

Definition at line 111 of file XRPEndpointStep.cpp.

◆ check()

TER xrpl::XRPEndpointStep< XRPEndpointPaymentStep >::check ( StrandContext const & ctx) const
nodiscardinherited

Definition at line 115 of file XRPEndpointStep.cpp.

◆ xrpLiquidImpl()

XRPAmount xrpl::XRPEndpointStep< XRPEndpointPaymentStep >::xrpLiquidImpl ( ReadView & sb,
std::int32_t reserveReduction ) const
protectedinherited

Definition at line 119 of file XRPEndpointStep.cpp.

◆ logStringImpl()

std::string xrpl::XRPEndpointStep< XRPEndpointPaymentStep >::logStringImpl ( char const * name) const
protectedinherited

Definition at line 125 of file XRPEndpointStep.cpp.

◆ equal()

bool xrpl::XRPEndpointStep< XRPEndpointPaymentStep >::equal ( Step const & rhs) const
nodiscardoverrideprivateinherited

Definition at line 145 of file XRPEndpointStep.cpp.

Member Data Documentation

◆ acc_

Definition at line 38 of file XRPEndpointStep.cpp.

◆ isLast_

bool const xrpl::XRPEndpointStep< XRPEndpointPaymentStep >::isLast_
privateinherited

Definition at line 39 of file XRPEndpointStep.cpp.

◆ j_

Definition at line 40 of file XRPEndpointStep.cpp.

◆ cache_

Definition at line 45 of file XRPEndpointStep.cpp.

◆ TDerived

Definition at line 154 of file XRPEndpointStep.cpp.