xrpld
Loading...
Searching...
No Matches
xrpl::StrandResult< TInAmt, TOutAmt > Struct Template Reference

Result of flow() execution of a single Strand. More...

#include <StrandFlow.h>

Collaboration diagram for xrpl::StrandResult< TInAmt, TOutAmt >:

Public Member Functions

 StrandResult ()=default
 Strand result constructor.
 StrandResult (Strand const &strand, TInAmt const &in, TOutAmt const &out, PaymentSandbox &&sandbox, boost::container::flat_set< uint256 > ofrsToRemoveMember, bool inactive)
 StrandResult (Strand const &strand, boost::container::flat_set< uint256 > ofrsToRemoveMember)

Public Attributes

bool success = false
 Strand succeeded.
TInAmt in = beast::kZero
 Currency amount in.
TOutAmt out = beast::kZero
 Currency amount out.
std::optional< PaymentSandboxsandbox
 Resulting Sandbox state.
boost::container::flat_set< uint256ofrsToRm
 Offers to remove.
std::uint32_t ofrsUsed = 0
bool inactive = false
 Strand should not considered as a further source of liquidity (dry).

Detailed Description

template<class TInAmt, class TOutAmt>
struct xrpl::StrandResult< TInAmt, TOutAmt >

Result of flow() execution of a single Strand.

Definition at line 27 of file StrandFlow.h.

Constructor & Destructor Documentation

◆ StrandResult() [1/3]

template<class TInAmt, class TOutAmt>
xrpl::StrandResult< TInAmt, TOutAmt >::StrandResult ( )
default

Strand result constructor.

◆ StrandResult() [2/3]

template<class TInAmt, class TOutAmt>
xrpl::StrandResult< TInAmt, TOutAmt >::StrandResult ( Strand const & strand,
TInAmt const & in,
TOutAmt const & out,
PaymentSandbox && sandbox,
boost::container::flat_set< uint256 > ofrsToRemoveMember,
bool inactive )

Definition at line 45 of file StrandFlow.h.

◆ StrandResult() [3/3]

template<class TInAmt, class TOutAmt>
xrpl::StrandResult< TInAmt, TOutAmt >::StrandResult ( Strand const & strand,
boost::container::flat_set< uint256 > ofrsToRemoveMember )

Definition at line 62 of file StrandFlow.h.

Member Data Documentation

◆ success

template<class TInAmt, class TOutAmt>
bool xrpl::StrandResult< TInAmt, TOutAmt >::success = false

Strand succeeded.

Definition at line 29 of file StrandFlow.h.

◆ in

template<class TInAmt, class TOutAmt>
TInAmt xrpl::StrandResult< TInAmt, TOutAmt >::in = beast::kZero

Currency amount in.

Definition at line 30 of file StrandFlow.h.

◆ out

template<class TInAmt, class TOutAmt>
TOutAmt xrpl::StrandResult< TInAmt, TOutAmt >::out = beast::kZero

Currency amount out.

Definition at line 31 of file StrandFlow.h.

◆ sandbox

template<class TInAmt, class TOutAmt>
std::optional<PaymentSandbox> xrpl::StrandResult< TInAmt, TOutAmt >::sandbox

Resulting Sandbox state.

Definition at line 32 of file StrandFlow.h.

◆ ofrsToRm

template<class TInAmt, class TOutAmt>
boost::container::flat_set<uint256> xrpl::StrandResult< TInAmt, TOutAmt >::ofrsToRm

Offers to remove.

Definition at line 33 of file StrandFlow.h.

◆ ofrsUsed

template<class TInAmt, class TOutAmt>
std::uint32_t xrpl::StrandResult< TInAmt, TOutAmt >::ofrsUsed = 0

Definition at line 36 of file StrandFlow.h.

◆ inactive

template<class TInAmt, class TOutAmt>
bool xrpl::StrandResult< TInAmt, TOutAmt >::inactive = false

Strand should not considered as a further source of liquidity (dry).

Definition at line 39 of file StrandFlow.h.