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