|
| constexpr | FeeFrac () noexcept |
| | Construct an IsEmpty() FeeFrac.
|
| constexpr | FeeFrac (int64_t f, int32_t s) noexcept |
| | Construct a FeeFrac with specified fee and size.
|
| constexpr | FeeFrac (const FeeFrac &) noexcept=default |
| constexpr | FeeFrac () noexcept |
| | Construct an IsEmpty() FeeFrac.
|
| constexpr | FeeFrac (int64_t f, int32_t s) noexcept |
| | Construct a FeeFrac with specified fee and size.
|
| constexpr | FeeFrac (const FeeFrac &) noexcept=default |
| constexpr FeeFrac & | operator= (const FeeFrac &) noexcept=default |
| bool | IsEmpty () const noexcept |
| | Check if this is empty (size and fee are 0).
|
| void | operator+= (const FeeFrac &other) noexcept |
| | Add fee and size of another FeeFrac to this one.
|
| void | operator-= (const FeeFrac &other) noexcept |
| | Subtract fee and size of another FeeFrac from this one.
|
| template<bool RoundDown> |
| int64_t | EvaluateFee (int32_t at_size) const noexcept |
| | Compute the fee for a given size at_size using this object's feerate.
|
| int64_t | EvaluateFeeDown (int32_t at_size) const noexcept |
| | Compute the fee for a given size at_size using this object's feerate, rounding down.
|
| int64_t | EvaluateFeeUp (int32_t at_size) const noexcept |
| | Compute the fee for a given size at_size using this object's feerate, rounding up.
|
|
| static FeePerUnit | FromFeeFrac (const FeeFrac &feefrac) noexcept |
| | Convert a FeeFrac to a FeePerUnit.
|
| static std::pair< int64_t, uint32_t > | MulFallback (int64_t a, int32_t b) noexcept |
| | Helper function for 32*64 signed multiplication, returning an unspecified but totally ordered type.
|
| static int64_t | DivFallback (std::pair< int64_t, uint32_t > n, int32_t d, bool round_down) noexcept |
| | Helper function for 96/32 signed division, rounding towards negative infinity (if round_down) or positive infinity (if !round_down).
|
template<typename Tag>
struct FeePerUnit< Tag >
Tagged wrapper around FeeFrac to avoid unit confusion.
Definition at line 238 of file feefrac.h.