currencygithub.com/castedo/isomon

Name

isomon::money_calc<double>

Synopsis

// In header: </home/castedo/src/isomon/money_calc.hpp>


struct money_calc<double> {
  // construct/copy/destruct
  money_calc();
  money_calc(double, currency);
  money_calc(money);

  // public member functions
  double value() const;
  money_calc & operator+=(double);
  money_calc & operator+=(money);
  money_calc & operator+=(money_calc const &);
  money_calc operator+(double) const;
  money_calc operator+(money);
  money_calc operator+(money_calc const &) const;
  money_calc operator-() const;
  money_calc & operator-=(double);
  money_calc & operator-=(money);
  money_calc & operator-=(money_calc const &);
  money_calc operator-(double) const;
  money_calc operator-(money) const;
  money_calc operator-(money_calc const &) const;
  money_calc & operator*=(double);
  money_calc & operator/=(double);
  money_calc operator*(double) const;
  money_calc operator/(double) const;
  bool operator>(money_calc const &) const;
  bool operator>=(money_calc const &) const;
  bool operator<(money_calc const &) const;
  bool operator<=(money_calc const &) const;
  bool operator>(money) const;
  bool operator>=(money) const;
  bool operator<(money) const;
  bool operator<=(money) const;

  // public data members
  double minors;
  currency unit;
};

Description

money_calc public construct/copy/destruct

  1. money_calc();
  2. money_calc(double m, currency u);
  3. money_calc(money m);

money_calc public member functions

  1. double value() const;
  2. money_calc & operator+=(double rhs);
  3. money_calc & operator+=(money rhs);
  4. money_calc & operator+=(money_calc const & rhs);
  5. money_calc operator+(double rhs) const;
  6. money_calc operator+(money rhs);
  7. money_calc operator+(money_calc const & rhs) const;
  8. money_calc operator-() const;
  9. money_calc & operator-=(double rhs);
  10. money_calc & operator-=(money rhs);
  11. money_calc & operator-=(money_calc const & rhs);
  12. money_calc operator-(double rhs) const;
  13. money_calc operator-(money rhs) const;
  14. money_calc operator-(money_calc const & rhs) const;
  15. money_calc & operator*=(double rhs);
  16. money_calc & operator/=(double rhs);
  17. money_calc operator*(double rhs) const;
  18. money_calc operator/(double rhs) const;
  19. bool operator>(money_calc const & mc) const;
  20. bool operator>=(money_calc const & mc) const;
  21. bool operator<(money_calc const & mc) const;
  22. bool operator<=(money_calc const & mc) const;
  23. bool operator>(money m) const;
  24. bool operator>=(money m) const;
  25. bool operator<(money m) const;
  26. bool operator<=(money m) const;