zeroCouponBond.hpp
Go to the documentation of this file.
28 ZeroCouponBond(Date issue_date, Date maturity_date, double principal, CashFlowVector cash_flows):
29 issue_date_(issue_date), maturity_date_(maturity_date), principal_(principal), cash_flows_(cash_flows) {};
friend std::ostream & operator<<(std::ostream &, ZeroCouponBond &)
Overloads stream operator.
Definition: zeroCouponBond.cpp:58
virtual ZeroCouponBond * clone() const
virtual copy constructor
Definition: zeroCouponBond.cpp:69
virtual double getPrincipal() const override
returns the bond's principal
Definition: zeroCouponBond.cpp:9
Definition: cadHoliday.cpp:3
virtual Date getDate() const override
returns the bond's maturity
Definition: zeroCouponBond.cpp:15
File contains interface for all bond instruments.
Date issue_date_
Bond's issue date.
Definition: zeroCouponBond.hpp:50
Date maturity_date_
Date of repaying original sum loaned.
Definition: zeroCouponBond.hpp:51
virtual void valuation(const SmartPointer< ir::Curve > &) const override
bond valuation
Definition: zeroCouponBond.cpp:39
ZeroCouponBond()
Default constructor.
Definition: zeroCouponBond.hpp:25
ZeroCouponBond(Date issue_date, Date maturity_date, double principal, CashFlowVector cash_flows)
Constructor.
Definition: zeroCouponBond.hpp:28
double principal_
Principal of bond.
Definition: zeroCouponBond.hpp:52
virtual double prize(const SmartPointer< ir::Curve > &) const override
prize bond
Definition: zeroCouponBond.cpp:23
CashFlowVector cash_flows_
Cash Flow Vector containing julian::FixedCashFlow.
Definition: zeroCouponBond.hpp:53
File contains definition of InterestRate class.
File contains definition of cash flow vector.