#include <qle/indexes/bmaindexwrapper.hpp>
Public Member Functions | |
BMAIndexWrapper (const QuantLib::ext::shared_ptr< QuantLib::BMAIndex > &bma) | |
BMAIndexWrapper (const QuantLib::ext::shared_ptr< QuantLib::BMAIndex > &bma, const Handle< YieldTermStructure > &h) | |
std::string | name () const override |
bool | isValidFixingDate (const Date &date) const override |
Handle< YieldTermStructure > | forwardingTermStructure () const |
Date | maturityDate (const Date &valueDate) const override |
Schedule | fixingSchedule (const Date &start, const Date &end) |
Rate | forecastFixing (const Date &fixingDate) const override |
Date | adjustedFixingDate (const Date &fixingDate) const |
Rate | pastFixing (const Date &fixingDate) const override |
QuantLib::ext::shared_ptr< IborIndex > | clone (const Handle< YieldTermStructure > &h) const override |
QuantLib::ext::shared_ptr< QuantLib::BMAIndex > | bma () const |
operator QuantLib::BMAIndex & () | |
operator QuantLib::BMAIndex * () | |
Private Attributes | |
QuantLib::ext::shared_ptr< QuantLib::BMAIndex > | bma_ |
Wrapper that adapts the quantlib BMAIndex into a class inheriting from IborIndex The purpose of this is twofold: 1) we can use Market::iborIndex() to retrieve a BMA index 2) we can set up an IborCoupon using this index wrapper to approximate an AveragedBMACoupon at places where a pricer only supports an IborCoupon, e.g. for cap/floors or swaptions on BMA underlyings To make 2) work we tweak the implementations of isValidFixingDate(), maturityDate() and pastFixing() to make sure an Ibor coupon on this index class will behave gracefully.
Definition at line 44 of file bmaindexwrapper.hpp.
BMAIndexWrapper | ( | const QuantLib::ext::shared_ptr< QuantLib::BMAIndex > & | bma | ) |
Definition at line 48 of file bmaindexwrapper.hpp.
BMAIndexWrapper | ( | const QuantLib::ext::shared_ptr< QuantLib::BMAIndex > & | bma, |
const Handle< YieldTermStructure > & | h | ||
) |
|
override |
|
override |
Definition at line 60 of file bmaindexwrapper.hpp.
Handle< YieldTermStructure > forwardingTermStructure | ( | ) | const |
Definition at line 64 of file bmaindexwrapper.hpp.
|
override |
Definition at line 65 of file bmaindexwrapper.hpp.
Schedule fixingSchedule | ( | const Date & | start, |
const Date & | end | ||
) |
Definition at line 71 of file bmaindexwrapper.hpp.
|
override |
Definition at line 72 of file bmaindexwrapper.hpp.
Date adjustedFixingDate | ( | const Date & | fixingDate | ) | const |
Definition at line 79 of file bmaindexwrapper.hpp.
|
override |
Definition at line 85 of file bmaindexwrapper.hpp.
|
override |
Definition at line 90 of file bmaindexwrapper.hpp.
QuantLib::ext::shared_ptr< QuantLib::BMAIndex > bma | ( | ) | const |
operator QuantLib::BMAIndex & | ( | ) |
Definition at line 97 of file bmaindexwrapper.hpp.
operator QuantLib::BMAIndex * | ( | ) |
Definition at line 98 of file bmaindexwrapper.hpp.
|
private |
Definition at line 101 of file bmaindexwrapper.hpp.