|
QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.38
|
Rate helper for bootstrapping over ibor-ibor basis swaps. More...
#include <basisswapratehelpers.hpp>
Inheritance diagram for IborIborBasisSwapRateHelper:
Collaboration diagram for IborIborBasisSwapRateHelper:Public Member Functions | |
| IborIborBasisSwapRateHelper (const Handle< Quote > &basis, const Period &tenor, Natural settlementDays, Calendar calendar, BusinessDayConvention convention, bool endOfMonth, const ext::shared_ptr< IborIndex > &baseIndex, const ext::shared_ptr< IborIndex > &otherIndex, Handle< YieldTermStructure > discountHandle, bool bootstrapBaseCurve) | |
| Real | impliedQuote () const override |
| void | accept (AcyclicVisitor &) override |
| ext::shared_ptr< Swap > | swap () const |
Public Member Functions inherited from RelativeDateBootstrapHelper< TS > | |
| RelativeDateBootstrapHelper (const std::variant< Spread, Handle< Quote > > "e, bool updateDates=true) | |
| void | update () override |
Public Member Functions inherited from BootstrapHelper< TS > | |
| BootstrapHelper (const std::variant< Spread, Handle< Quote > > "e) | |
| ~BootstrapHelper () override=default | |
| const Handle< Quote > & | quote () const |
| Real | quoteError () const |
| virtual void | setTermStructure (TS *) |
| sets the term structure to be used for pricing More... | |
| virtual Date | earliestDate () const |
| earliest relevant date More... | |
| virtual Date | maturityDate () const |
| instrument's maturity date More... | |
| virtual Date | latestRelevantDate () const |
| latest relevant date More... | |
| virtual Date | pillarDate () const |
| pillar date More... | |
| virtual Date | latestDate () const |
| latest date More... | |
Public Member Functions inherited from Observer | |
| Observer ()=default | |
| Observer (const Observer &) | |
| Observer & | operator= (const Observer &) |
| virtual | ~Observer () |
| std::pair< iterator, bool > | registerWith (const ext::shared_ptr< Observable > &) |
| void | registerWithObservables (const ext::shared_ptr< Observer > &) |
| Size | unregisterWith (const ext::shared_ptr< Observable > &) |
| void | unregisterWithAll () |
| virtual void | update ()=0 |
| virtual void | deepUpdate () |
Public Member Functions inherited from Observable | |
| Observable ()=default | |
| Observable (const Observable &) | |
| Observable & | operator= (const Observable &) |
| Observable (Observable &&)=delete | |
| Observable & | operator= (Observable &&)=delete |
| virtual | ~Observable ()=default |
| void | notifyObservers () |
Private Member Functions | |
| void | initializeDates () override |
| void | setTermStructure (YieldTermStructure *) override |
Private Attributes | |
| Period | tenor_ |
| Natural | settlementDays_ |
| Calendar | calendar_ |
| BusinessDayConvention | convention_ |
| bool | endOfMonth_ |
| ext::shared_ptr< IborIndex > | baseIndex_ |
| ext::shared_ptr< IborIndex > | otherIndex_ |
| Handle< YieldTermStructure > | discountHandle_ |
| bool | bootstrapBaseCurve_ |
| ext::shared_ptr< Swap > | swap_ |
| RelinkableHandle< YieldTermStructure > | termStructureHandle_ |
Additional Inherited Members | |
Public Types inherited from Observer | |
| typedef set_type::iterator | iterator |
Protected Member Functions inherited from RelativeDateBootstrapHelper< TS > | |
Protected Attributes inherited from RelativeDateBootstrapHelper< TS > | |
| Date | evaluationDate_ |
| bool | updateDates_ |
Protected Attributes inherited from BootstrapHelper< TS > | |
| Handle< Quote > | quote_ |
| TS * | termStructure_ |
| Date | earliestDate_ |
| Date | latestDate_ |
| Date | maturityDate_ |
| Date | latestRelevantDate_ |
| Date | pillarDate_ |
Rate helper for bootstrapping over ibor-ibor basis swaps.
The swap is assumed to pay baseIndex + basis and receive otherIndex. The helper can be used to bootstrap the forecast curve for baseIndex (in which case you'll have to pass bootstrapBaseCurve = true and provide otherIndex with a forecast curve) or the forecast curve for otherIndex (in which case bootstrapBaseCurve = false and baseIndex will need a forecast curve). In both cases, an exogenous discount curve is required.
Definition at line 41 of file basisswapratehelpers.hpp.
| IborIborBasisSwapRateHelper | ( | const Handle< Quote > & | basis, |
| const Period & | tenor, | ||
| Natural | settlementDays, | ||
| Calendar | calendar, | ||
| BusinessDayConvention | convention, | ||
| bool | endOfMonth, | ||
| const ext::shared_ptr< IborIndex > & | baseIndex, | ||
| const ext::shared_ptr< IborIndex > & | otherIndex, | ||
| Handle< YieldTermStructure > | discountHandle, | ||
| bool | bootstrapBaseCurve | ||
| ) |
|
overridevirtual |
Implements BootstrapHelper< TS >.
Definition at line 106 of file basisswapratehelpers.cpp.
|
overridevirtual |
Reimplemented from BootstrapHelper< TS >.
Definition at line 111 of file basisswapratehelpers.cpp.
Here is the call graph for this function:| ext::shared_ptr< Swap > swap | ( | ) | const |
Definition at line 57 of file basisswapratehelpers.hpp.
|
overrideprivatevirtual |
Implements RelativeDateBootstrapHelper< TS >.
Definition at line 63 of file basisswapratehelpers.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
overrideprivate |
|
private |
Definition at line 62 of file basisswapratehelpers.hpp.
|
private |
Definition at line 63 of file basisswapratehelpers.hpp.
|
private |
Definition at line 64 of file basisswapratehelpers.hpp.
|
private |
Definition at line 65 of file basisswapratehelpers.hpp.
|
private |
Definition at line 66 of file basisswapratehelpers.hpp.
|
private |
Definition at line 67 of file basisswapratehelpers.hpp.
|
private |
Definition at line 68 of file basisswapratehelpers.hpp.
|
private |
Definition at line 69 of file basisswapratehelpers.hpp.
|
private |
Definition at line 70 of file basisswapratehelpers.hpp.
|
private |
Definition at line 72 of file basisswapratehelpers.hpp.
|
private |
Definition at line 74 of file basisswapratehelpers.hpp.