QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Business252::Impl Class Referencefinal
+ Inheritance diagram for Business252::Impl:
+ Collaboration diagram for Business252::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
 
 Impl (Calendar c)
 
- 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
 

Private Attributes

Calendar calendar_
 

Detailed Description

Definition at line 39 of file business252.hpp.

Constructor & Destructor Documentation

◆ Impl()

Impl ( Calendar  c)
explicit

Definition at line 47 of file business252.hpp.

Member Function Documentation

◆ name()

std::string name ( ) const
overridevirtual

Implements DayCounter::Impl.

Definition at line 72 of file business252.cpp.

+ Here is the call graph for this function:

◆ 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 78 of file business252.cpp.

+ Here is the call graph for this function:

◆ yearFraction()

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

Implements DayCounter::Impl.

Definition at line 137 of file business252.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ calendar_

Calendar calendar_
private

Definition at line 41 of file business252.hpp.