github.com/castedo/isomon |
isomon::money
// In header: </home/castedo/src/isomon/money.hpp> class money { public: // construct/copy/destruct money(); money(int64_t, int64_t, currency); // public member functions double value() const; currency unit() const; int64_t total_minors() const; money & operator+=(money); money & operator-=(money); money & operator*=(int32_t); money operator-() const; money operator+(money) const; money operator-(money) const; money operator*(int32_t) const; bool operator==(money) const; bool operator!=(money) const; // public static functions static money pos_infinity(currency); static money neg_infinity(currency); };
money
public
construct/copy/destructmoney();
money(int64_t major_units, int64_t minor_units, currency unit);
money
public member functionsdouble value() const;
currency unit() const;
int64_t total_minors() const;
money & operator+=(money rhs);
money & operator-=(money rhs);
money & operator*=(int32_t rhs);
money operator-() const;
money operator+(money rhs) const;
money operator-(money rhs) const;
money operator*(int32_t rhs) const;
bool operator==(money rhs) const;
bool operator!=(money rhs) const;