#include <amount.h>
|
constexpr bool | operator== (const Amount a, const Amount b) |
| Equality.
|
|
constexpr bool | operator!= (const Amount a, const Amount b) |
|
constexpr bool | operator< (const Amount a, const Amount b) |
| Comparison.
|
|
constexpr bool | operator> (const Amount a, const Amount b) |
|
constexpr bool | operator<= (const Amount a, const Amount b) |
|
constexpr bool | operator>= (const Amount a, const Amount b) |
|
constexpr Amount | operator+ (const Amount a, const Amount b) |
| Addition and subtraction.
|
|
constexpr Amount | operator- (const Amount a, const Amount b) |
|
constexpr Amount | operator* (const int64_t a, const Amount b) |
| Multiplication.
|
|
constexpr Amount | operator* (const int a, const Amount b) |
|
constexpr Amount | operator* (const double a, const Amount b)=delete |
| Do not implement double ops to get an error with double and ensure casting to integer is explicit.
|
|
std::ostream & | operator<< (std::ostream &stream, const Amount &ca) |
|
Definition at line 19 of file amount.h.
◆ Amount() [1/2]
|
inlineexplicitconstexprprivate |
◆ Amount() [2/2]
◆ operator UniValue()
◆ operator%() [1/4]
◆ operator%() [2/4]
◆ operator%() [3/4]
◆ operator%() [4/4]
◆ operator+=()
Implement standard operators.
Definition at line 38 of file amount.h.
◆ operator-()
Unary minus.
Definition at line 76 of file amount.h.
◆ operator-=()
◆ operator/() [1/4]
◆ operator/() [2/4]
◆ operator/() [3/4]
◆ operator/() [4/4]
◆ operator/=()
◆ satoshi()
|
inlinestaticconstexprnoexcept |
◆ SERIALIZE_METHODS()
◆ ToString()
std::string Amount::ToString |
( |
| ) |
const |
◆ zero()
|
inlinestaticconstexprnoexcept |
◆ operator!=
◆ operator* [1/3]
Do not implement double ops to get an error with double and ensure casting to integer is explicit.
◆ operator* [2/3]
◆ operator* [3/3]
Multiplication.
Definition at line 91 of file amount.h.
◆ operator+
Addition and subtraction.
Definition at line 81 of file amount.h.
◆ operator-
◆ operator<
Comparison.
Definition at line 60 of file amount.h.
◆ operator<<
std::ostream & operator<< |
( |
std::ostream & |
stream, |
|
|
const Amount & |
ca |
|
) |
| |
|
friend |
◆ operator<=
◆ operator==
◆ operator>
◆ operator>=
◆ amount
The documentation for this struct was generated from the following files: