floatingRateBond.hpp
Go to the documentation of this file.
virtual double prize(const SmartPointer< ir::Curve > &curve) const override
prize bond
Definition: floatingRateBond.cpp:37
virtual void valuation(const SmartPointer< ir::Curve > &curve) const override
bond valuation
Definition: floatingRateBond.cpp:12
FloatingRateBond()
Default Constructor.
Definition: floatingRateBond.hpp:27
InterestRate rate_
Interest rate convention.
Definition: floatingRateBond.hpp:62
CashFlowVector cash_flows_
Cash Flow Vector containing julian::FloatingCashFlow.
Definition: floatingRateBond.hpp:63
Definition: cadHoliday.cpp:3
FloatingRateBond(Date issue_date, Date maturity_date, double principal, double margin, InterestRate rate, CashFlowVector cash_flows, Frequency payment_frequency)
Constructor.
Definition: floatingRateBond.hpp:31
Date maturity_date_
Date of repaying original sum loaned.
Definition: floatingRateBond.hpp:59
Frequency payment_frequency_
Frequency of coupon payment.
Definition: floatingRateBond.hpp:64
File contains interface for all bond instruments.
friend std::ostream & operator<<(std::ostream &, FloatingRateBond &)
Overloads stream operator.
Definition: floatingRateBond.cpp:71
double principal_
Principal of bond.
Definition: floatingRateBond.hpp:60
double margin_
Margin added to cash flows.
Definition: floatingRateBond.hpp:61
Class implements the bond paying floating coupon.
Definition: floatingRateBond.hpp:22
virtual Date getDate() const override
returns the bond's maturity
Definition: floatingRateBond.cpp:63
virtual FloatingRateBond * clone() const
virtual copy constructor
Definition: floatingRateBond.cpp:95
virtual ~FloatingRateBond()
deconstructor
Definition: floatingRateBond.hpp:53
virtual double getPrincipal() const override
returns the bond's principal
Definition: floatingRateBond.cpp:57
Date issue_date_
Bond's issue date.
Definition: floatingRateBond.hpp:58
The class implements the concept of interest rate.
Definition: interestRate.hpp:25
File contain time units and other useful enumerations.
File contains definition of InterestRate class.
File contains definition of cash flow vector.