interpolationInput.hpp
Go to the documentation of this file.
1 #ifndef JULIAN_INTERPOLATIONINPUTS_HPP
2 #define JULIAN_INTERPOLATIONINPUTS_HPP
3 
4 #include <vector>
5 #include <algorithm>
6 #include <dates/_all_dates.hpp>
8 
9 namespace julian {
10  namespace ir {
24  public:
31 
46  virtual double operator()(double DF1,double DF2,InterestRate rate,Date date0,Date date1,Date date2) const = 0;
47 
58  virtual double getDF(double x,InterestRate rate,Date date1,Date date2) const = 0;
59 
64  virtual InterpolationInput* clone() const = 0;
65 
70  virtual std::string info() const = 0;
71 
76  virtual ~InterpolationInput(){};
77  friend class boost::serialization::access;
78  private:
79 
82  template<class Archive>
83  void serialize(Archive & , const unsigned int) {
84  }
85  };
86 }
87 }
88 #endif
virtual double getDF(double x, InterestRate rate, Date date1, Date date2) const =0
Calculate DF form result of interpolation.
Contains headers of all files with definitions of classes gathered in dates calendar and holidays mod...
Definition: cadHoliday.cpp:3
Class is an abstract class that represents the subject of interpolation performed in swap curve opera...
Definition: interpolationInput.hpp:23
virtual double operator()(double DF1, double DF2, InterestRate rate, Date date0, Date date1, Date date2) const =0
Calculates inputs form DF.
virtual ~InterpolationInput()
Destructor.
Definition: interpolationInput.hpp:76
void serialize(Archive &, const unsigned int)
interface used by Boost serialization library
Definition: interpolationInput.hpp:83
virtual std::string info() const =0
Info about class.
Class implements a date object.
Definition: date.hpp:27
virtual InterpolationInput * clone() const =0
Virtual copy constructor.
The class implements the concept of interest rate.
Definition: interestRate.hpp:25
InterpolationInput()
Constructor.
Definition: interpolationInput.hpp:30
File contains definition of InterestRate class.