|
Conversion settings |
These parameters are used for combining money amounts in different currencies
|
enum | ConversionType { NoConversion,
BaseCurrencyConversion,
AutomatedConversion
} |
static ConversionType | conversionType |
static Currency | baseCurrency |
Public Member Functions |
|
| Money (const Currency ¤cy, Decimal value) |
| Money (Decimal value, const Currency ¤cy) |
|
const Currency & | currency () const |
Decimal | value () const |
Money | rounded () const |
|
See below for non-member functions and for settings which determine the behavior of the operators.
|
Money | operator+ () const |
Money | operator- () const |
Money & | operator+= (const Money &) |
Money & | operator-= (const Money &) |
Money & | operator *= (Decimal) |
Money & | operator/= (Decimal) |
Related Functions |
(Note that these are not member functions.)
|
Money | operator+ (const Money &, const Money &) |
Money | operator- (const Money &, const Money &) |
Money | operator * (const Money &, Decimal) |
Money | operator * (Decimal, const Money &) |
Money | operator/ (const Money &, Decimal) |
Decimal | operator/ (const Money &, const Money &) |
bool | operator== (const Money &, const Money &) |
bool | operator!= (const Money &, const Money &) |
bool | operator< (const Money &, const Money &) |
bool | operator<= (const Money &, const Money &) |
bool | operator> (const Money &, const Money &) |
bool | operator>= (const Money &, const Money &) |
bool | close (const Money &, const Money &, Size n=42) |
bool | close_enough (const Money &, const Money &, Size n=42) |
std::ostream & | operator<< (std::ostream &, const Money &) |