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
SimpleDayCounter::Impl Class Referencefinal
+ Inheritance diagram for SimpleDayCounter::Impl:
+ Collaboration diagram for SimpleDayCounter::Impl:

Public Member Functions

std::string name () const override
 
Date::serial_type dayCount (const Date &d1, const Date &d2) const override
 to be overloaded by more complex day counters More...
 
Time yearFraction (const Date &d1, const Date &d2, const Date &, const Date &) const override
 
- Public Member Functions inherited from DayCounter::Impl
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

Definition at line 48 of file simpledaycounter.hpp.

Member Function Documentation

◆ name()

std::string name ( ) const
overridevirtual

Implements DayCounter::Impl.

Definition at line 50 of file simpledaycounter.hpp.

◆ dayCount()

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

to be overloaded by more complex day counters

Reimplemented from DayCounter::Impl.

Definition at line 27 of file simpledaycounter.cpp.

◆ yearFraction()

Time yearFraction ( const Date d1,
const Date d2,
const Date ,
const Date  
) const
overridevirtual

Implements DayCounter::Impl.

Definition at line 32 of file simpledaycounter.cpp.

+ Here is the call graph for this function: