QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
Public Member Functions | List of all members
DayCounter::Impl Class Referenceabstract

abstract base class for day counter implementations More...

#include <daycounter.hpp>

+ Inheritance diagram for DayCounter::Impl:
+ Collaboration diagram for DayCounter::Impl:

Public Member Functions

virtual ~Impl ()=default
 
virtual std::string name () const =0
 
virtual Date::serial_type dayCount (const Date &d1, const Date &d2) const
 to be overloaded by more complex day counters More...
 
virtual Time yearFraction (const Date &d1, const Date &d2, const Date &refPeriodStart, const Date &refPeriodEnd) const =0
 

Detailed Description

abstract base class for day counter implementations

Definition at line 47 of file daycounter.hpp.

Constructor & Destructor Documentation

◆ ~Impl()

virtual ~Impl ( )
virtualdefault

Member Function Documentation

◆ name()

virtual std::string name ( ) const
pure virtual

◆ dayCount()

virtual Date::serial_type dayCount ( const Date d1,
const Date d2 
) const
virtual

◆ yearFraction()

virtual Time yearFraction ( const Date d1,
const Date d2,
const Date refPeriodStart,
const Date refPeriodEnd 
) const
pure virtual