The class encapsulates the 1/1 year fraction convention. More...

#include <OneYF.hpp>

Inheritance diagram for julian::OneYF:
julian::YearFraction

Public Member Functions

virtual double operator() (const Date &, const Date &) const
 
virtual OneYFclone () const
 
virtual std::string info () const
 
- 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 1/1 year fraction convention.

According to 1/1 convention the year fraction is always 1.

Examples:
DatesAndCalendarExample.cpp.

Member Function Documentation

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

Method is an implementation of virtual copy constructor.

Implements julian::YearFraction.

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

Method returns string that containing information about class.

Implements julian::YearFraction.

double julian::OneYF::operator() ( const Date ,
const Date  
) const
virtual

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

Implements julian::YearFraction.

template<class Archive >
void julian::OneYF::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/OneYF.hpp
  • C:/Unix/home/OEM/jULIAN/src/dates/yearFractions/OneYF.cpp