SysTutorials

Linux Manual Pages › Section 3

termstructurehandle_(3)

QuantLib::FixedRateBondHelper – fixed-coupon bond helper

Synopsis

void accept (AcyclicVisitor &)
Protected Attributes

Inherits BootstrapHelper< YieldTermStructure >.

Public Member Functions

void accept (AcyclicVisitor &)

Protected Attributes BootstrapHelper interface

Real impliedQuote () const

void setTermStructure (YieldTermStructure *)
sets the term structure to be used for pricing additional inspectors

boost::shared_ptr< FixedRateBond > bond () const
Visitability

void accept (AcyclicVisitor &)
Protected Attributes

boost::shared_ptr< FixedRateBond > bond_

RelinkableHandle< YieldTermStructure > termStructureHandle_

Detailed Description

fixed-coupon bond helper

Warning

This class assumes that the reference date does not change between calls of setTermStructure().

Examples:

Bonds.cpp, and FittedBondCurve.cpp.

Constructor & Destructor Documentation

FixedRateBondHelper (const Handle< Quote > & cleanPrice, const boost::shared_ptr< FixedRateBond > & bond)

Warning

Setting a pricing engine to the passed bond from external code will cause the bootstrap to fail or to give wrong results. It is advised to discard the bond after creating the helper, so that the helper has sole ownership of it.

Member Function Documentation

void setTermStructure (YieldTermStructure *) [virtual]

sets the term structure to be used for pricing

Warning

Being a pointer and not a shared_ptr, the term structure is not guaranteed to remain allocated for the whole life of the rate helper. It is responsibility of the programmer to ensure that the pointer remains valid. It is advised that this method is called only inside the term structure being bootstrapped, setting the pointer to this, i.e., the term structure itself.

Reimplemented from BootstrapHelper< YieldTermStructure >.

Author

Generated automatically by Doxygen for QuantLib from the source code.