![]() |
Bitcoin Core 29.99.0
P2P Digital Currency
|
Tagged wrapper around FeeFrac to avoid unit confusion. More...
#include <feefrac.h>
Public Member Functions | |
constexpr | FeeFrac () noexcept |
Construct an IsEmpty() FeeFrac. More... | |
constexpr | FeeFrac (int64_t f, int32_t s) noexcept |
Construct a FeeFrac with specified fee and size. More... | |
constexpr | FeeFrac (const FeeFrac &) noexcept=default |
![]() | |
constexpr | FeeFrac () noexcept |
Construct an IsEmpty() FeeFrac. More... | |
constexpr | FeeFrac (int64_t f, int32_t s) noexcept |
Construct a FeeFrac with specified fee and size. More... | |
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). More... | |
void | operator+= (const FeeFrac &other) noexcept |
Add fee and size of another FeeFrac to this one. More... | |
void | operator-= (const FeeFrac &other) noexcept |
Subtract fee and size of another FeeFrac from this one. More... | |
Static Public Member Functions | |
static FeePerUnit | FromFeeFrac (const FeeFrac &feefrac) noexcept |
Convert a FeeFrac to a FeePerUnit. More... | |
![]() | |
static std::pair< int64_t, uint32_t > | MulFallback (int64_t a, int32_t b) noexcept |
Fallback version for Mul (see below). More... | |
Additional Inherited Members | |
![]() | |
int64_t | fee |
int32_t | size |
![]() | |
static constexpr auto | Mul = MulFallback |
Tagged wrapper around FeeFrac to avoid unit confusion.
|
inlineconstexprnoexcept |
|
inlineconstexprdefaultnoexcept |
|
inlineconstexprnoexcept |
|
inlinestaticnoexcept |
Convert a FeeFrac to a FeePerUnit.