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