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

Public Member Functions

 XRPEndpointOfferCrossingStep (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
 

Static Private Member Functions

static std::int32_t computeReserveReduction (StrandContext const &ctx, AccountID const &acc)
 

Private Attributes

const std::int32_t reserveReduction_
 
AccountID acc_
 
const bool isLast_
 
const beast::Journal j_
 
std::optional< XRPAmountcache_
 

Detailed Description

Definition at line 191 of file XRPEndpointStep.cpp.

Constructor & Destructor Documentation

◆ XRPEndpointOfferCrossingStep()

ripple::XRPEndpointOfferCrossingStep::XRPEndpointOfferCrossingStep ( StrandContext const &  ctx,
AccountID const &  acc 
)

Definition at line 211 of file XRPEndpointStep.cpp.

Member Function Documentation

◆ computeReserveReduction()

static std::int32_t ripple::XRPEndpointOfferCrossingStep::computeReserveReduction ( StrandContext const &  ctx,
AccountID const &  acc 
)
staticprivate

Definition at line 203 of file XRPEndpointStep.cpp.

◆ xrpLiquid()

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

Definition at line 218 of file XRPEndpointStep.cpp.

◆ logString()

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

Definition at line 224 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< XRPEndpointOfferCrossingStep >::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< XRPEndpointOfferCrossingStep >::qualityUpperBound ( ReadView const &  v,
DebtDirection  prevStepDir 
) const
overrideinherited

Definition at line 246 of file XRPEndpointStep.cpp.

◆ revImp()

std::pair< XRPAmount, XRPAmount > ripple::XRPEndpointStep< XRPEndpointOfferCrossingStep >::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< XRPEndpointOfferCrossingStep >::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< XRPEndpointOfferCrossingStep >::validFwd ( PaymentSandbox sb,
ApplyView afView,
EitherAmount const &  in 
)
overrideinherited

Definition at line 302 of file XRPEndpointStep.cpp.

◆ check()

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

Definition at line 337 of file XRPEndpointStep.cpp.

◆ xrpLiquidImpl()

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

Definition at line 126 of file XRPEndpointStep.cpp.

◆ logStringImpl()

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

Definition at line 132 of file XRPEndpointStep.cpp.

◆ equal()

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

Definition at line 152 of file XRPEndpointStep.cpp.

Member Data Documentation

◆ reserveReduction_

const std::int32_t ripple::XRPEndpointOfferCrossingStep::reserveReduction_
private

Definition at line 230 of file XRPEndpointStep.cpp.

◆ acc_

Definition at line 43 of file XRPEndpointStep.cpp.

◆ isLast_

const bool ripple::XRPEndpointStep< XRPEndpointOfferCrossingStep >::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.