rippled
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
ripple::XRPEndpointPaymentStep Class Reference
Inheritance diagram for ripple::XRPEndpointPaymentStep:
Inheritance graph
[legend]
Collaboration diagram for ripple::XRPEndpointPaymentStep:
Collaboration graph
[legend]

Public Member Functions

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_
 
const bool isLast_
 
const beast::Journal j_
 
std::optional< XRPAmountcache_
 

Detailed Description

Definition at line 171 of file XRPEndpointStep.cpp.

Member Function Documentation

◆ xrpLiquid()

XRPAmount ripple::XRPEndpointPaymentStep::xrpLiquid ( ReadView sb) const

Definition at line 177 of file XRPEndpointStep.cpp.

◆ logString()

std::string ripple::XRPEndpointPaymentStep::logString ( ) const
override

Definition at line 184 of file XRPEndpointStep.cpp.

◆ cached()

Definition at line 53 of file XRPEndpointStep.cpp.

◆ acc()

Definition at line 67 of file XRPEndpointStep.cpp.

◆ directStepAccts()

Definition at line 73 of file XRPEndpointStep.cpp.

◆ cachedIn()

Definition at line 81 of file XRPEndpointStep.cpp.

◆ cachedOut()

Definition at line 87 of file XRPEndpointStep.cpp.

◆ debtDirection()

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

Definition at line 93 of file XRPEndpointStep.cpp.

◆ qualityUpperBound()

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

Definition at line 246 of file XRPEndpointStep.cpp.

◆ revImp()

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

Definition at line 257 of file XRPEndpointStep.cpp.

◆ fwdImp()

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

Definition at line 279 of file XRPEndpointStep.cpp.

◆ validFwd()

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

Definition at line 302 of file XRPEndpointStep.cpp.

◆ check()

TER ripple::XRPEndpointStep< XRPEndpointPaymentStep >::check ( StrandContext const &  ctx) const
inherited

Definition at line 337 of file XRPEndpointStep.cpp.

◆ xrpLiquidImpl()

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

Definition at line 126 of file XRPEndpointStep.cpp.

◆ logStringImpl()

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

Definition at line 132 of file XRPEndpointStep.cpp.

◆ equal()

bool ripple::XRPEndpointStep< XRPEndpointPaymentStep >::equal ( Step const &  rhs) const
overrideprivateinherited

Definition at line 152 of file XRPEndpointStep.cpp.

Member Data Documentation

◆ acc_

Definition at line 43 of file XRPEndpointStep.cpp.

◆ isLast_

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

Definition at line 44 of file XRPEndpointStep.cpp.

◆ j_

Definition at line 45 of file XRPEndpointStep.cpp.

◆ cache_

Definition at line 50 of file XRPEndpointStep.cpp.