Logo Search packages:      
Sourcecode: quantlib version File versions  Download package

QuantLib::Currency Class Reference

#include <currency.hpp>

Inheritance diagram for QuantLib::Currency:

QuantLib::ARSCurrency QuantLib::ATSCurrency QuantLib::AUDCurrency QuantLib::BDTCurrency QuantLib::BEFCurrency QuantLib::BGLCurrency QuantLib::BRLCurrency QuantLib::BYRCurrency QuantLib::CADCurrency QuantLib::CHFCurrency QuantLib::CLPCurrency QuantLib::CNYCurrency QuantLib::COPCurrency QuantLib::CYPCurrency QuantLib::CZKCurrency QuantLib::DEMCurrency QuantLib::DKKCurrency QuantLib::EEKCurrency QuantLib::ESPCurrency QuantLib::EURCurrency QuantLib::FIMCurrency QuantLib::FRFCurrency QuantLib::GBPCurrency QuantLib::GRDCurrency QuantLib::HKDCurrency QuantLib::HUFCurrency QuantLib::IEPCurrency QuantLib::ILSCurrency QuantLib::INRCurrency QuantLib::IQDCurrency QuantLib::IRRCurrency QuantLib::ISKCurrency QuantLib::ITLCurrency QuantLib::JPYCurrency QuantLib::KRWCurrency QuantLib::KWDCurrency QuantLib::LTLCurrency QuantLib::LUFCurrency QuantLib::LVLCurrency QuantLib::MTLCurrency QuantLib::MXNCurrency QuantLib::NLGCurrency QuantLib::NOKCurrency QuantLib::NPRCurrency QuantLib::NZDCurrency QuantLib::PKRCurrency QuantLib::PLNCurrency QuantLib::PTECurrency QuantLib::ROLCurrency QuantLib::SARCurrency QuantLib::SEKCurrency QuantLib::SGDCurrency QuantLib::SITCurrency QuantLib::SKKCurrency QuantLib::THBCurrency QuantLib::TRLCurrency QuantLib::TRYCurrency QuantLib::TTDCurrency QuantLib::TWDCurrency QuantLib::USDCurrency QuantLib::VEBCurrency QuantLib::ZARCurrency

List of all members.

Detailed Description

Currency specification

Definition at line 36 of file currency.hpp.

Public Member Functions

 Currency ()
 default constructor
const std::string & code () const
 ISO 4217 three-letter code, e.g, "USD".
std::string format () const
 output format
Integer fractionsPerUnit () const
 number of fractionary parts in a unit, e.g, 100
const std::string & fractionSymbol () const
 fraction symbol, e.g, ""
const std::string & name () const
 currency name, e.g, "U.S. Dollar"
Integer numericCode () const
 ISO 4217 numeric code, e.g, "840".
const Roundingrounding () const
 rounding convention
const std::string & symbol () const
 symbol, e.g, "$"
other info
bool isValid () const
 is this a usable instance?
const CurrencytriangulationCurrency () const
 currency used for triangulated exchange when required

Protected Attributes

boost::shared_ptr< Data > data_

Related Functions

(Note that these are not member functions.)

bool operator!= (const Currency &, const Currency &)
std::ostream & operator<< (std::ostream &, const Currency &)
bool operator== (const Currency &, const Currency &)


struct  Data

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index