Changeset View
Changeset View
Standalone View
Standalone View
src/amount.h
Show All 21 Lines | private: | ||||
explicit constexpr Amount(int64_t _amount) : amount(_amount) {} | explicit constexpr Amount(int64_t _amount) : amount(_amount) {} | ||||
public: | public: | ||||
constexpr Amount() : amount(0) {} | constexpr Amount() : amount(0) {} | ||||
constexpr Amount(const Amount &other) : amount(other.amount) {} | constexpr Amount(const Amount &other) : amount(other.amount) {} | ||||
/** | /** | ||||
* Convenient implicit UniValue conversion operator | * Implicit conversions, to and from UniValue, for convenience. | ||||
*/ | */ | ||||
Amount(const UniValue &value); | |||||
operator UniValue() const; | operator UniValue() const; | ||||
/** | /** | ||||
* Assignement operator. | * Assignement operator. | ||||
*/ | */ | ||||
constexpr Amount &operator=(const Amount &other) { | constexpr Amount &operator=(const Amount &other) { | ||||
amount = other.amount; | amount = other.amount; | ||||
return *this; | return *this; | ||||
▲ Show 20 Lines • Show All 133 Lines • Show Last 20 Lines |