#include <qle/indexes/fxindex.hpp>
|
| FxRateQuote (Handle< Quote > spotQuote, const Handle< YieldTermStructure > &sourceYts, const Handle< YieldTermStructure > &targetYts, Natural fixingDays, const Calendar &fixingCalendar) |
| if sourceYts, targetYts are not given, the non-discounted spot quote will be returned as a fallback More...
|
|
|
Real | value () const override |
|
bool | isValid () const override |
|
Definition at line 51 of file fxindex.hpp.
◆ FxRateQuote()
FxRateQuote |
( |
Handle< Quote > |
spotQuote, |
|
|
const Handle< YieldTermStructure > & |
sourceYts, |
|
|
const Handle< YieldTermStructure > & |
targetYts, |
|
|
Natural |
fixingDays, |
|
|
const Calendar & |
fixingCalendar |
|
) |
| |
if sourceYts, targetYts are not given, the non-discounted spot quote will be returned as a fallback
Definition at line 45 of file fxindex.cpp.
53}
const Handle< Quote > spotQuote_
const Handle< YieldTermStructure > targetYts_
const Handle< YieldTermStructure > sourceYts_
◆ value()
Definition at line 55 of file fxindex.cpp.
55 {
56 QL_ENSURE(
isValid(),
"invalid FxRateQuote");
59 else {
65 }
66}
bool isValid() const override
◆ isValid()
◆ update()
◆ spotQuote_
const Handle<Quote> spotQuote_ |
|
private |
◆ sourceYts_
const Handle<YieldTermStructure> sourceYts_ |
|
private |
◆ targetYts_
const Handle<YieldTermStructure> targetYts_ |
|
private |
◆ fixingDays_
◆ fixingCalendar_