ForwardCurve.hpp
Go to the documentation of this file.
30 ForwardCurve(const Date as_of_date, const SmartPointer<Interpolation>& interpolation,const SmartPointer<YearFraction>& yf, const std::vector<Date>& dates, const std::vector<double>& prices);
File contains template of deep-coping smart pointer.
File contains interface for year fractions.
friend std::ostream & operator<<(std::ostream &, ForwardCurve &)
Overloads stream operator.
Definition: ForwardCurve.cpp:45
Definition: cadHoliday.cpp:3
Date as_of_date_
date on which the curve is valid.
Definition: ForwardCurve.hpp:42
File contains definition of date class.
File contains interface of interpolation methods.
File contains small programming tools.
SmartPointer< YearFraction > yf_
Year fraction convention changes dates into continuous time.
Definition: ForwardCurve.hpp:44
double getForwardPrice(Date d)
calculates the forward for a given date
Definition: ForwardCurve.cpp:30
std::vector< Date > getDates()
returns grid dates
Definition: ForwardCurve.cpp:37
void serialize(Archive &ar, const unsigned int)
interface used by Boost serialization library
Definition: ForwardCurve.hpp:53
std::vector< double > time_
Continuous time calculated on basis of grid dates.
Definition: ForwardCurve.hpp:46
std::vector< double > prices_
Forward prices associated with dates.
Definition: ForwardCurve.hpp:47
SmartPointer< Interpolation > interpolation_
Interpolation method.
Definition: ForwardCurve.hpp:43