rippled
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
ripple::DirectIPaymentStep Class Reference
Inheritance diagram for ripple::DirectIPaymentStep:
Inheritance graph
[legend]
Collaboration diagram for ripple::DirectIPaymentStep:
Collaboration graph
[legend]

Public Member Functions

bool verifyPrevStepDebtDirection (DebtDirection) const
 
bool verifyDstQualityIn (std::uint32_t dstQIn) const
 
std::uint32_t quality (ReadView const &sb, QualityDirection qDir) const
 
std::pair< IOUAmount, DebtDirectionmaxFlow (ReadView const &sb, IOUAmount const &desired) const
 
TER check (StrandContext const &ctx, std::shared_ptr< const SLE > const &sleSrc) const
 
std::string logString () const override
 
AccountID const & src () const
 
AccountID const & dst () const
 
Currency const & currency () const
 
std::optional< EitherAmountcachedIn () const override
 
std::optional< EitherAmountcachedOut () const override
 
std::optional< AccountIDdirectStepSrcAcct () const override
 
std::optional< std::pair< AccountID, AccountID > > directStepAccts () const override
 
DebtDirection debtDirection (ReadView const &sb, StrandDirection dir) const override
 
std::uint32_t lineQualityIn (ReadView const &v) const override
 
std::pair< std::optional< Quality >, DebtDirectionqualityUpperBound (ReadView const &v, DebtDirection dir) const override
 
std::pair< IOUAmount, IOUAmountrevImp (PaymentSandbox &sb, ApplyView &afView, boost::container::flat_set< uint256 > &ofrsToRm, IOUAmount const &out)
 
std::pair< IOUAmount, IOUAmountfwdImp (PaymentSandbox &sb, ApplyView &afView, boost::container::flat_set< uint256 > &ofrsToRm, IOUAmount const &in)
 
std::pair< bool, EitherAmountvalidFwd (PaymentSandbox &sb, ApplyView &afView, EitherAmount const &in) override
 
TER check (StrandContext const &ctx) const
 
void setCacheLimiting (IOUAmount const &fwdIn, IOUAmount const &fwdSrcToDst, IOUAmount const &fwdOut, DebtDirection srcDebtDir)
 

Protected Member Functions

std::pair< IOUAmount, DebtDirectionmaxPaymentFlow (ReadView const &sb) const
 
std::pair< std::uint32_t, std::uint32_tqualitiesSrcRedeems (ReadView const &sb) const
 
std::pair< std::uint32_t, std::uint32_tqualitiesSrcIssues (ReadView const &sb, DebtDirection prevStepDebtDirection) const
 
std::pair< std::uint32_t, std::uint32_tqualities (ReadView const &sb, DebtDirection srcDebtDir, StrandDirection strandDir) const
 
std::string logStringImpl (char const *name) const
 

Protected Attributes

AccountID src_
 
AccountID dst_
 
Currency currency_
 
Step const *const prevStep_
 
bool const isLast_
 
beast::Journal const j_
 
std::optional< Cache > cache_
 

Private Member Functions

bool equal (Step const &rhs) const override
 

Detailed Description

Definition at line 234 of file DirectStep.cpp.

Member Function Documentation

◆ verifyPrevStepDebtDirection()

bool ripple::DirectIPaymentStep::verifyPrevStepDebtDirection ( DebtDirection  ) const

Definition at line 241 of file DirectStep.cpp.

◆ verifyDstQualityIn()

bool ripple::DirectIPaymentStep::verifyDstQualityIn ( std::uint32_t  dstQIn) const

Definition at line 248 of file DirectStep.cpp.

◆ quality()

std::uint32_t ripple::DirectIPaymentStep::quality ( ReadView const &  sb,
QualityDirection  qDir 
) const

Definition at line 331 of file DirectStep.cpp.

◆ maxFlow()

std::pair< IOUAmount, DebtDirection > ripple::DirectIPaymentStep::maxFlow ( ReadView const &  sb,
IOUAmount const &  desired 
) const

Definition at line 378 of file DirectStep.cpp.

◆ check() [1/2]

TER ripple::DirectIPaymentStep::check ( StrandContext const &  ctx,
std::shared_ptr< const SLE > const &  sleSrc 
) const

Definition at line 406 of file DirectStep.cpp.

◆ logString()

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

Definition at line 271 of file DirectStep.cpp.

◆ maxPaymentFlow()

std::pair< IOUAmount, DebtDirection > ripple::DirectStepI< DirectIPaymentStep >::maxPaymentFlow ( ReadView const &  sb) const
protectedinherited

Definition at line 74 of file DirectStep.cpp.

◆ qualitiesSrcRedeems()

std::pair< std::uint32_t, std::uint32_t > ripple::DirectStepI< DirectIPaymentStep >::qualitiesSrcRedeems ( ReadView const &  sb) const
protectedinherited

Definition at line 78 of file DirectStep.cpp.

◆ qualitiesSrcIssues()

std::pair< std::uint32_t, std::uint32_t > ripple::DirectStepI< DirectIPaymentStep >::qualitiesSrcIssues ( ReadView const &  sb,
DebtDirection  prevStepDebtDirection 
) const
protectedinherited

Definition at line 82 of file DirectStep.cpp.

◆ qualities()

std::pair< std::uint32_t, std::uint32_t > ripple::DirectStepI< DirectIPaymentStep >::qualities ( ReadView const &  sb,
DebtDirection  srcDebtDir,
StrandDirection  strandDir 
) const
protectedinherited

Definition at line 87 of file DirectStep.cpp.

◆ src()

AccountID const & ripple::DirectStepI< DirectIPaymentStep >::src ( ) const
inherited

Definition at line 108 of file DirectStep.cpp.

◆ dst()

AccountID const & ripple::DirectStepI< DirectIPaymentStep >::dst ( ) const
inherited

Definition at line 113 of file DirectStep.cpp.

◆ currency()

Currency const & ripple::DirectStepI< DirectIPaymentStep >::currency ( ) const
inherited

Definition at line 118 of file DirectStep.cpp.

◆ cachedIn()

std::optional< EitherAmount > ripple::DirectStepI< DirectIPaymentStep >::cachedIn ( ) const
overrideinherited

Definition at line 124 of file DirectStep.cpp.

◆ cachedOut()

std::optional< EitherAmount > ripple::DirectStepI< DirectIPaymentStep >::cachedOut ( ) const
overrideinherited

Definition at line 132 of file DirectStep.cpp.

◆ directStepSrcAcct()

std::optional< AccountID > ripple::DirectStepI< DirectIPaymentStep >::directStepSrcAcct ( ) const
overrideinherited

Definition at line 140 of file DirectStep.cpp.

◆ directStepAccts()

std::optional< std::pair< AccountID, AccountID > > ripple::DirectStepI< DirectIPaymentStep >::directStepAccts ( ) const
overrideinherited

Definition at line 146 of file DirectStep.cpp.

◆ debtDirection()

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

Definition at line 152 of file DirectStep.cpp.

◆ lineQualityIn()

std::uint32_t ripple::DirectStepI< DirectIPaymentStep >::lineQualityIn ( ReadView const &  v) const
overrideinherited

Definition at line 155 of file DirectStep.cpp.

◆ qualityUpperBound()

std::pair< std::optional< Quality >, DebtDirection > ripple::DirectStepI< DirectIPaymentStep >::qualityUpperBound ( ReadView const &  v,
DebtDirection  dir 
) const
overrideinherited

Definition at line 158 of file DirectStep.cpp.

◆ revImp()

std::pair< IOUAmount, IOUAmount > ripple::DirectStepI< DirectIPaymentStep >::revImp ( PaymentSandbox sb,
ApplyView afView,
boost::container::flat_set< uint256 > &  ofrsToRm,
IOUAmount const &  out 
)
inherited

Definition at line 161 of file DirectStep.cpp.

◆ fwdImp()

std::pair< IOUAmount, IOUAmount > ripple::DirectStepI< DirectIPaymentStep >::fwdImp ( PaymentSandbox sb,
ApplyView afView,
boost::container::flat_set< uint256 > &  ofrsToRm,
IOUAmount const &  in 
)
inherited

Definition at line 168 of file DirectStep.cpp.

◆ validFwd()

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

Definition at line 175 of file DirectStep.cpp.

◆ check() [2/2]

TER ripple::DirectStepI< DirectIPaymentStep >::check ( StrandContext const &  ctx) const
inherited

Definition at line 181 of file DirectStep.cpp.

◆ setCacheLimiting()

void ripple::DirectStepI< DirectIPaymentStep >::setCacheLimiting ( IOUAmount const &  fwdIn,
IOUAmount const &  fwdSrcToDst,
IOUAmount const &  fwdOut,
DebtDirection  srcDebtDir 
)
inherited

Definition at line 184 of file DirectStep.cpp.

◆ logStringImpl()

std::string ripple::DirectStepI< DirectIPaymentStep >::logStringImpl ( char const *  name) const
protectedinherited

Definition at line 205 of file DirectStep.cpp.

◆ equal()

bool ripple::DirectStepI< DirectIPaymentStep >::equal ( Step const &  rhs) const
overrideprivateinherited

Definition at line 215 of file DirectStep.cpp.

Member Data Documentation

◆ src_

AccountID ripple::DirectStepI< DirectIPaymentStep >::src_
protectedinherited

Definition at line 41 of file DirectStep.cpp.

◆ dst_

AccountID ripple::DirectStepI< DirectIPaymentStep >::dst_
protectedinherited

Definition at line 42 of file DirectStep.cpp.

◆ currency_

Currency ripple::DirectStepI< DirectIPaymentStep >::currency_
protectedinherited

Definition at line 43 of file DirectStep.cpp.

◆ prevStep_

Step const* const ripple::DirectStepI< DirectIPaymentStep >::prevStep_
protectedinherited

Definition at line 46 of file DirectStep.cpp.

◆ isLast_

bool const ripple::DirectStepI< DirectIPaymentStep >::isLast_
protectedinherited

Definition at line 47 of file DirectStep.cpp.

◆ j_

beast::Journal const ripple::DirectStepI< DirectIPaymentStep >::j_
protectedinherited

Definition at line 48 of file DirectStep.cpp.

◆ cache_

std::optional<Cache> ripple::DirectStepI< DirectIPaymentStep >::cache_
protectedinherited

Definition at line 67 of file DirectStep.cpp.