QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
DiscretizedCallableFixedRateBond Class Reference

#include <ql/experimental/callablebonds/discretizedcallablefixedratebond.hpp>

+ Inheritance diagram for DiscretizedCallableFixedRateBond:
+ Collaboration diagram for DiscretizedCallableFixedRateBond:

Public Member Functions

 DiscretizedCallableFixedRateBond (const CallableBond::arguments &, const Handle< YieldTermStructure > &termStructure)
 
void reset (Size size) override
 
std::vector< TimemandatoryTimes () const override
 
- Public Member Functions inherited from DiscretizedAsset
 DiscretizedAsset ()
 
virtual ~DiscretizedAsset ()=default
 
Time time () const
 
Timetime ()
 
const Arrayvalues () const
 
Arrayvalues ()
 
const ext::shared_ptr< Lattice > & method () const
 
void initialize (const ext::shared_ptr< Lattice > &, Time t)
 
void rollback (Time to)
 
void partialRollback (Time to)
 
Real presentValue ()
 
void preAdjustValues ()
 
void postAdjustValues ()
 
void adjustValues ()
 

Protected Member Functions

void preAdjustValuesImpl () override
 
void postAdjustValuesImpl () override
 
- Protected Member Functions inherited from DiscretizedAsset
bool isOnTime (Time t) const
 

Private Member Functions

void applyCallability (Size i)
 
void addCoupon (Size i)
 

Private Attributes

CallableBond::arguments arguments_
 
Time redemptionTime_
 
std::vector< TimecouponTimes_
 
std::vector< CouponAdjustmentcouponAdjustments_
 
std::vector< TimecallabilityTimes_
 
std::vector< RealadjustedCallabilityPrices_
 

Additional Inherited Members

- Protected Types inherited from DiscretizedAsset
enum class  CouponAdjustment { pre , post }
 
- Protected Attributes inherited from DiscretizedAsset
Time time_
 
Time latestPreAdjustment_
 
Time latestPostAdjustment_
 
Array values_
 

Detailed Description

Definition at line 33 of file discretizedcallablefixedratebond.hpp.

Constructor & Destructor Documentation

◆ DiscretizedCallableFixedRateBond()

DiscretizedCallableFixedRateBond ( const CallableBond::arguments args,
const Handle< YieldTermStructure > &  termStructure 
)

Definition at line 35 of file discretizedcallablefixedratebond.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ reset()

void reset ( Size  size)
overridevirtual

This method should initialize the asset values to an Array of the given size and with values depending on the particular asset.

Implements DiscretizedAsset.

Definition at line 103 of file discretizedcallablefixedratebond.cpp.

+ Here is the call graph for this function:

◆ mandatoryTimes()

std::vector< Time > mandatoryTimes ( ) const
overridevirtual

This method returns the times at which the numerical method should stop while rolling back the asset. Typical examples include payment times, exercise times and such.

Note
The returned values are not guaranteed to be sorted.

Implements DiscretizedAsset.

Definition at line 109 of file discretizedcallablefixedratebond.cpp.

+ Here is the caller graph for this function:

◆ preAdjustValuesImpl()

void preAdjustValuesImpl ( )
overrideprotectedvirtual

This method performs the actual pre-adjustment

Reimplemented from DiscretizedAsset.

Definition at line 137 of file discretizedcallablefixedratebond.cpp.

+ Here is the call graph for this function:

◆ postAdjustValuesImpl()

void postAdjustValuesImpl ( )
overrideprotectedvirtual

This method performs the actual post-adjustment

Reimplemented from DiscretizedAsset.

Definition at line 149 of file discretizedcallablefixedratebond.cpp.

+ Here is the call graph for this function:

◆ applyCallability()

void applyCallability ( Size  i)
private

Definition at line 168 of file discretizedcallablefixedratebond.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addCoupon()

void addCoupon ( Size  i)
private

Definition at line 187 of file discretizedcallablefixedratebond.cpp.

+ Here is the caller graph for this function:

Member Data Documentation

◆ arguments_

CallableBond::arguments arguments_
private

Definition at line 45 of file discretizedcallablefixedratebond.hpp.

◆ redemptionTime_

Time redemptionTime_
private

Definition at line 46 of file discretizedcallablefixedratebond.hpp.

◆ couponTimes_

std::vector<Time> couponTimes_
private

Definition at line 47 of file discretizedcallablefixedratebond.hpp.

◆ couponAdjustments_

std::vector<CouponAdjustment> couponAdjustments_
private

Definition at line 48 of file discretizedcallablefixedratebond.hpp.

◆ callabilityTimes_

std::vector<Time> callabilityTimes_
private

Definition at line 49 of file discretizedcallablefixedratebond.hpp.

◆ adjustedCallabilityPrices_

std::vector<Real> adjustedCallabilityPrices_
private

Definition at line 50 of file discretizedcallablefixedratebond.hpp.