US30360.hpp
Go to the documentation of this file.
1 #ifndef JULIAN_US30360_HPP
2 #define JULIAN_US30360_HPP
3 
5 
6 namespace julian {
7 
28  class US30360: public YearFraction {
29  public:
30  US30360(){};
31  virtual double operator()(const Date&,const Date&) const;
32  virtual US30360* clone() const;
33  virtual ~US30360(){};
34  virtual std::string info() const;
35 
36  friend class boost::serialization::access;
37  private:
38 
41  template<class Archive>
42  void serialize(Archive & , const unsigned int){
43  boost::serialization::base_object<YearFraction>(*this);
44  }
45  };
46 }
47 #endif
File contains interface for year fractions.
This class is an abstract class expressing the concept of calculating year fraction.
Definition: yearFraction.hpp:28
Definition: cadHoliday.cpp:3
The class encapsulates the 30/360 US year fraction convention.
Definition: US30360.hpp:28
virtual double operator()(const Date &, const Date &) const
Calculates year fraction.
Definition: US30360.cpp:19
virtual std::string info() const
Name of a class.
Definition: US30360.cpp:51
Class implements a date object.
Definition: date.hpp:27
virtual US30360 * clone() const
Virtual copy constructor.
Definition: US30360.cpp:38
void serialize(Archive &, const unsigned int)
interface used by Boost serialization library
Definition: US30360.hpp:42