rippled
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
xrpl::XRPEndpointStep< TDerived > Class Template Reference
Inheritance diagram for xrpl::XRPEndpointStep< TDerived >:
Inheritance graph
[legend]
Collaboration diagram for xrpl::XRPEndpointStep< TDerived >:
Collaboration graph
[legend]

Public Member Functions

 XRPEndpointStep (StrandContext const &ctx, AccountID const &acc)
 
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_
 

Friends

template<class P >
bool operator== (XRPEndpointStep< P > const &lhs, XRPEndpointStep< P > const &rhs)
 
bool operator!= (XRPEndpointStep const &lhs, XRPEndpointStep const &rhs)
 

Detailed Description

template<class TDerived>
class xrpl::XRPEndpointStep< TDerived >

Definition at line 20 of file XRPEndpointStep.cpp.

Constructor & Destructor Documentation

◆ XRPEndpointStep()

template<class TDerived >
xrpl::XRPEndpointStep< TDerived >::XRPEndpointStep ( StrandContext const &  ctx,
AccountID const &  acc 
)

Definition at line 41 of file XRPEndpointStep.cpp.

Member Function Documentation

◆ cached()

template<class TDerived >
std::optional< EitherAmount > xrpl::XRPEndpointStep< TDerived >::cached ( ) const
private

Definition at line 33 of file XRPEndpointStep.cpp.

◆ acc()

template<class TDerived >
AccountID const & xrpl::XRPEndpointStep< TDerived >::acc ( ) const

Definition at line 46 of file XRPEndpointStep.cpp.

◆ directStepAccts()

template<class TDerived >
std::optional< std::pair< AccountID, AccountID > > xrpl::XRPEndpointStep< TDerived >::directStepAccts ( ) const
override

Definition at line 52 of file XRPEndpointStep.cpp.

◆ cachedIn()

template<class TDerived >
std::optional< EitherAmount > xrpl::XRPEndpointStep< TDerived >::cachedIn ( ) const
override

Definition at line 60 of file XRPEndpointStep.cpp.

◆ cachedOut()

template<class TDerived >
std::optional< EitherAmount > xrpl::XRPEndpointStep< TDerived >::cachedOut ( ) const
override

Definition at line 66 of file XRPEndpointStep.cpp.

◆ debtDirection()

template<class TDerived >
DebtDirection xrpl::XRPEndpointStep< TDerived >::debtDirection ( ReadView const &  sb,
StrandDirection  dir 
) const
override

Definition at line 72 of file XRPEndpointStep.cpp.

◆ qualityUpperBound()

template<class TDerived >
std::pair< std::optional< Quality >, DebtDirection > xrpl::XRPEndpointStep< TDerived >::qualityUpperBound ( ReadView const &  v,
DebtDirection  prevStepDir 
) const
override

Definition at line 211 of file XRPEndpointStep.cpp.

◆ revImp()

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

Definition at line 218 of file XRPEndpointStep.cpp.

◆ fwdImp()

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

Definition at line 240 of file XRPEndpointStep.cpp.

◆ validFwd()

template<class TDerived >
std::pair< bool, EitherAmount > xrpl::XRPEndpointStep< TDerived >::validFwd ( PaymentSandbox sb,
ApplyView afView,
EitherAmount const &  in 
)
override

Definition at line 263 of file XRPEndpointStep.cpp.

◆ check()

template<class TDerived >
TER xrpl::XRPEndpointStep< TDerived >::check ( StrandContext const &  ctx) const

Definition at line 293 of file XRPEndpointStep.cpp.

◆ xrpLiquidImpl()

template<class TDerived >
XRPAmount xrpl::XRPEndpointStep< TDerived >::xrpLiquidImpl ( ReadView sb,
std::int32_t  reserveReduction 
) const
protected

Definition at line 95 of file XRPEndpointStep.cpp.

◆ logStringImpl()

template<class TDerived >
std::string xrpl::XRPEndpointStep< TDerived >::logStringImpl ( char const *  name) const
protected

Definition at line 101 of file XRPEndpointStep.cpp.

◆ equal()

template<class TDerived >
bool xrpl::XRPEndpointStep< TDerived >::equal ( Step const &  rhs) const
overrideprivate

Definition at line 121 of file XRPEndpointStep.cpp.

Friends And Related Symbol Documentation

◆ operator==

template<class TDerived >
template<class P >
bool operator== ( XRPEndpointStep< P > const &  lhs,
XRPEndpointStep< P > const &  rhs 
)
friend

◆ operator!=

template<class TDerived >
bool operator!= ( XRPEndpointStep< TDerived > const &  lhs,
XRPEndpointStep< TDerived > const &  rhs 
)
friend

Definition at line 115 of file XRPEndpointStep.cpp.

Member Data Documentation

◆ acc_

template<class TDerived >
AccountID xrpl::XRPEndpointStep< TDerived >::acc_
private

Definition at line 23 of file XRPEndpointStep.cpp.

◆ isLast_

template<class TDerived >
bool const xrpl::XRPEndpointStep< TDerived >::isLast_
private

Definition at line 24 of file XRPEndpointStep.cpp.

◆ j_

template<class TDerived >
beast::Journal const xrpl::XRPEndpointStep< TDerived >::j_
private

Definition at line 25 of file XRPEndpointStep.cpp.

◆ cache_

template<class TDerived >
std::optional<XRPAmount> xrpl::XRPEndpointStep< TDerived >::cache_
private

Definition at line 30 of file XRPEndpointStep.cpp.