|
rippled
|
#include <Units.h>


Public Types | |
| using | unit_type = UnitTag |
| using | value_type = T |
Public Member Functions | |
| ValueUnit ()=default | |
| constexpr | ValueUnit (ValueUnit const &other)=default |
| constexpr ValueUnit & | operator= (ValueUnit const &other)=default |
| constexpr | ValueUnit (beast::Zero) |
| constexpr ValueUnit & | operator= (beast::Zero) |
| constexpr | ValueUnit (value_type value) |
| constexpr ValueUnit & | operator= (value_type value) |
| template<Compatible< ValueUnit > Other> requires SafeToCast<Other, value_type> | |
| constexpr | ValueUnit (ValueUnit< unit_type, Other > const &value) |
| Instances with the same unit, and a type that is "safe" to convert to this one can be converted implicitly. | |
| constexpr ValueUnit | operator+ (value_type const &rhs) const |
| constexpr ValueUnit | operator- (value_type const &rhs) const |
| constexpr ValueUnit | operator* (value_type const &rhs) const |
| constexpr value_type | operator/ (ValueUnit const &rhs) const |
| ValueUnit & | operator+= (ValueUnit const &other) |
| ValueUnit & | operator-= (ValueUnit const &other) |
| ValueUnit & | operator++ () |
| ValueUnit & | operator-- () |
| ValueUnit & | operator*= (value_type const &rhs) |
| ValueUnit & | operator/= (value_type const &rhs) |
| template<Integral transparent = value_type> | |
| ValueUnit & | operator%= (value_type const &rhs) |
| ValueUnit | operator- () const |
| constexpr bool | operator== (ValueUnit const &other) const |
| template<Compatible< ValueUnit > Other> | |
| constexpr bool | operator== (ValueUnit< unit_type, Other > const &other) const |
| constexpr bool | operator== (value_type other) const |
| template<Compatible< ValueUnit > Other> | |
| constexpr bool | operator!= (ValueUnit< unit_type, Other > const &other) const |
| constexpr bool | operator< (ValueUnit const &other) const |
| constexpr | operator bool () const noexcept |
| Returns true if the amount is not zero. | |
| constexpr int | signum () const noexcept |
| Return the sign of the amount. | |
| constexpr value_type | fee () const |
| Returns the number of drops. | |
| template<class Other > | |
| constexpr double | decimalFromReference (ValueUnit< unit_type, Other > reference) const |
| Json::Value | jsonClipped () const |
| constexpr value_type | value () const |
| Returns the underlying value. | |
Private Attributes | |
| value_type | value_ |
Friends | |
| constexpr ValueUnit | operator+ (value_type lhs, ValueUnit const &rhs) |
| constexpr ValueUnit | operator- (value_type lhs, ValueUnit const &rhs) |
| constexpr ValueUnit | operator* (value_type lhs, ValueUnit const &rhs) |
| std::istream & | operator>> (std::istream &s, ValueUnit &val) |
| using ripple::unit::ValueUnit< UnitTag, T >::unit_type = UnitTag |
| using ripple::unit::ValueUnit< UnitTag, T >::value_type = T |
|
default |
|
constexprdefault |
|
explicitconstexpr |
|
explicitconstexpr |
|
constexpr |
|
constexprdefault |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
| ValueUnit & ripple::unit::ValueUnit< UnitTag, T >::operator+= | ( | ValueUnit< UnitTag, T > const & | other | ) |
| ValueUnit & ripple::unit::ValueUnit< UnitTag, T >::operator-= | ( | ValueUnit< UnitTag, T > const & | other | ) |
| ValueUnit & ripple::unit::ValueUnit< UnitTag, T >::operator++ | ( | ) |
| ValueUnit & ripple::unit::ValueUnit< UnitTag, T >::operator-- | ( | ) |
| ValueUnit & ripple::unit::ValueUnit< UnitTag, T >::operator*= | ( | value_type const & | rhs | ) |
| ValueUnit & ripple::unit::ValueUnit< UnitTag, T >::operator/= | ( | value_type const & | rhs | ) |
| ValueUnit & ripple::unit::ValueUnit< UnitTag, T >::operator%= | ( | value_type const & | rhs | ) |
| ValueUnit ripple::unit::ValueUnit< UnitTag, T >::operator- | ( | ) | const |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
explicitconstexprnoexcept |
|
constexprnoexcept |
|
constexpr |
|
constexpr |
| Json::Value ripple::unit::ValueUnit< UnitTag, T >::jsonClipped | ( | ) | const |
|
constexpr |
|
friend |
|
friend |
|
friend |
|
friend |
|
private |