The class encapsulates the ACT360addOne year fraction convention. More...

#include <ACT360addOne.hpp>

Inheritance diagram for julian::ACT360addOne:
julian::YearFraction

Public Member Functions

virtual double operator() (const Date &, const Date &) const
 Calculates year fraction. More...
 
virtual ACT360addOneclone () const
 Virtual copy constructor. More...
 
virtual std::string info () const
 Name of a class. More...
 
- Public Member Functions inherited from julian::YearFraction
 YearFraction ()
 Constructor. More...
 
virtual ~YearFraction ()
 Destructor. More...
 

Private Member Functions

template<class Archive >
void serialize (Archive &, const unsigned int)
 interface used by Boost serialization library More...
 

Friends

class boost::serialization::access
 

Detailed Description

The class encapsulates the ACT360addOne year fraction convention.

According to Act365 convention the year fraction is calculated using following formula:

\[YearFraction(dates_1,date_2) = \frac{\textrm{Actual number of days between } date_1 \textrm{ and } date_2 + 1 \textrm{ day}}{360}\]

Examples:
DatesAndCalendarExample.cpp.

Member Function Documentation

ACT360addOne * julian::ACT360addOne::clone ( ) const
virtual

Virtual copy constructor.

Virtual copy constructor of the ACT360addOne class

Implements julian::YearFraction.

std::string julian::ACT360addOne::info ( ) const
virtual

Name of a class.

Method returns string that containing information about class.

Implements julian::YearFraction.

double julian::ACT360addOne::operator() ( const Date d1,
const Date d2 
) const
virtual

Calculates year fraction.

Method calculates the year fraction on the basis of two dates.

Implements julian::YearFraction.

template<class Archive >
void julian::ACT360addOne::serialize ( Archive &  ,
const unsigned  int 
)
inlineprivate

interface used by Boost serialization library


The documentation for this class was generated from the following files:
  • C:/Unix/home/OEM/jULIAN/src/dates/yearFractions/ACT360addOne.hpp
  • C:/Unix/home/OEM/jULIAN/src/dates/yearFractions/ACT360addOne.cpp