This class is an abstract class expressing the concept of calculating year fraction. More...
#include <yearFraction.hpp>
Public Member Functions | |
YearFraction () | |
Constructor. More... | |
virtual double | operator() (const Date &, const Date &) const =0 |
Calculates year fraction. More... | |
virtual YearFraction * | clone () const =0 |
Virtual copy constructor. More... | |
virtual std::string | info () const =0 |
info about class 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
This class is an abstract class expressing the concept of calculating year fraction.
This class is a interface of all year fraction conventions. Year fraction classes assign double value to period defined by two dates.
Constructor & Destructor Documentation
|
inline |
Constructor.
Default constructor
|
inlinevirtual |
Destructor.
Destructor
Member Function Documentation
|
pure virtual |
Virtual copy constructor.
Method is an implementation of virtual copy constructor.
Implemented in julian::US30360, julian::ActActAFB, julian::E30360, julian::ACT360addOne, julian::ACT360, julian::ActActISDA, julian::OneYF, and julian::ACT365.
|
pure virtual |
info about class
Method returns string that containing information about class.
Implemented in julian::US30360, julian::ActActAFB, julian::E30360, julian::ACT360addOne, julian::OneYF, julian::ACT360, julian::ACT365, and julian::ActActISDA.
Calculates year fraction.
Method calculates the year fraction on the basis of two dates.
Implemented in julian::US30360, julian::ActActAFB, julian::E30360, julian::ACT360addOne, julian::ACT360, julian::ActActISDA, julian::OneYF, and julian::ACT365.
|
inlineprivate |
interface used by Boost serialization library
The documentation for this class was generated from the following file:
- C:/Unix/home/OEM/jULIAN/src/dates/yearFractions/yearFraction.hpp