discretizeWithTenor.hpp
Go to the documentation of this file.
1 #ifndef JULIAN_DISCRETIZEWITHTENOR_HPP
2 #define JULIAN_DISCRETIZEWITHTENOR_HPP
3 
5 #include <dates/tenor.hpp>
6 
7 namespace julian {
8 
9 
22  public:
25  explicit DiscretizeWithTenor(Tenor tenor): tenor_(tenor){};
26  virtual std::vector<double> operator()(Date start_date, Date end_date, SmartPointer<YearFraction> yf) const;
27  virtual DiscretizeWithTenor* clone() const;
28  virtual ~DiscretizeWithTenor(){};
29  private:
30  Tenor tenor_;
31  };
32 } // namespace julian
33 #endif
Discretize the time interval in such way that distance between each nodes is equal to tenor provided...
Definition: discretizeWithTenor.hpp:21
Tenor tenor_
Discretization tenor.
Definition: discretizeWithTenor.hpp:28
virtual std::vector< double > operator()(Date start_date, Date end_date, SmartPointer< YearFraction > yf) const
Definition: discretizeWithTenor.cpp:7
Definition: cadHoliday.cpp:3
virtual DiscretizeWithTenor * clone() const
Virtual copy constructor.
Definition: discretizeWithTenor.cpp:28
Template of deep-coping smart pointer.
Definition: smartPointer.hpp:14
DiscretizeWithTenor(Tenor tenor)
Constructor.
Definition: discretizeWithTenor.hpp:25
Class implements a TimeDiscretization object.
Definition: timeDiscretization.hpp:24
Class implements a date object.
Definition: date.hpp:27
File contains definition of tenor class.
Class implements a tenor object.
Definition: tenor.hpp:23
File contains definition of TimeDiscretization class.