25#ifndef quantlib_exchange_rate_manager_hpp
26#define quantlib_exchange_rate_manager_hpp
82 mutable std::map<Key, std::list<Entry> >
data_;
88 const Date& date)
const;
92 std::list<Integer> forbiddenCodes
93 = std::list<Integer>())
const;
96 const Date& date)
const;
static Date minDate()
earliest allowed date
static Date maxDate()
latest allowed date
exchange rate between two currencies
void add(const ExchangeRate &, const Date &startDate=Date::minDate(), const Date &endDate=Date::maxDate())
Add an exchange rate.
ExchangeRate lookup(const Currency &source, const Currency &target, Date date=Date(), ExchangeRate::Type type=ExchangeRate::Derived) const
ExchangeRate smartLookup(const Currency &source, const Currency &target, const Date &date, std::list< Integer > forbiddenCodes=std::list< Integer >()) const
std::map< Key, std::list< Entry > > data_
ExchangeRate directLookup(const Currency &source, const Currency &target, const Date &date) const
bool hashes(Key, const Currency &) const
Key hash(const Currency &, const Currency &) const
void clear()
remove the added exchange rates
const ExchangeRate * fetch(const Currency &source, const Currency &target, const Date &date) const
Basic support for the singleton pattern.
date- and time-related classes, typedefs and enumerations
exchange rate between two currencies
QL_BIG_INTEGER BigInteger
large integer number
basic support for the singleton pattern
Entry(ExchangeRate rate, const Date &start, const Date &end)