26#ifndef quantlib_bond_helpers_hpp
27#define quantlib_bond_helpers_hpp
29#include <ql/termstructures/yield/ratehelpers.hpp>
30#include <ql/instruments/bonds/fixedratebond.hpp>
31#include <ql/instruments/bonds/cpibond.hpp>
32#include <ql/cashflows/cpicoupon.hpp>
49 const ext::shared_ptr<Bond>&
bond,
59 ext::shared_ptr<Bond>
bond()
const;
81 const std::vector<Rate>& coupons,
84 Real redemption = 100.0,
90 bool exCouponEndOfMonth =
false,
114 const Period& observationLag,
115 const ext::shared_ptr<ZeroInflationIndex>& cpiIndex,
118 const std::vector<Rate>& fixedRate,
126 bool exCouponEndOfMonth =
false,
131 ext::shared_ptr<CPIBond>
cpiBond()
const;
152 inline ext::shared_ptr<FixedRateBond>
157 inline ext::shared_ptr<CPIBond>
degenerate base class for the Acyclic Visitor pattern
Bond helper for curve bootstrap.
Bond::Price::Type priceType_
void setTermStructure(YieldTermStructure *) override
RelinkableHandle< YieldTermStructure > termStructureHandle_
Bond::Price::Type priceType() const
ext::shared_ptr< Bond > bond() const
void accept(AcyclicVisitor &) override
Real impliedQuote() const override
ext::shared_ptr< Bond > bond_
Base helper class for bootstrapping.
CPI bond helper for curve bootstrap.
ext::shared_ptr< CPIBond > cpiBond_
void accept(AcyclicVisitor &) override
ext::shared_ptr< CPIBond > cpiBond() const
Fixed-coupon bond helper for curve bootstrap.
void accept(AcyclicVisitor &) override
ext::shared_ptr< FixedRateBond > fixedRateBond() const
ext::shared_ptr< FixedRateBond > fixedRateBond_
Shared handle to an observable.
Relinkable handle to an observable.
Interest-rate term structure.
BusinessDayConvention
Business Day conventions.
unsigned QL_INTEGER Natural
positive integer
InterpolationType
when you observe an index, how do you interpolate between fixings?