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

Public Member Functions

 Impl (const Calendar &, const Calendar &, JointCalendarRule)
 
 Impl (const Calendar &, const Calendar &, const Calendar &, JointCalendarRule)
 
 Impl (const Calendar &, const Calendar &, const Calendar &, const Calendar &, JointCalendarRule)
 
 Impl (std::vector< Calendar >, JointCalendarRule)
 
std::string name () const override
 
bool isWeekend (Weekday) const override
 
bool isBusinessDay (const Date &) const override
 
- Public Member Functions inherited from Calendar::Impl
virtual ~Impl ()=default
 
virtual std::string name () const =0
 
virtual bool isBusinessDay (const Date &) const =0
 
virtual bool isWeekend (Weekday) const =0
 

Private Attributes

JointCalendarRule rule_
 
std::vector< Calendarcalendars_
 

Additional Inherited Members

- Public Attributes inherited from Calendar::Impl
std::set< DateaddedHolidays
 
std::set< DateremovedHolidays
 

Detailed Description

Definition at line 57 of file jointcalendar.hpp.

Constructor & Destructor Documentation

◆ Impl() [1/4]

Impl ( const Calendar c1,
const Calendar c2,
JointCalendarRule  r 
)

Definition at line 29 of file jointcalendar.cpp.

◆ Impl() [2/4]

Impl ( const Calendar c1,
const Calendar c2,
const Calendar c3,
JointCalendarRule  r 
)

Definition at line 38 of file jointcalendar.cpp.

◆ Impl() [3/4]

Impl ( const Calendar c1,
const Calendar c2,
const Calendar c3,
const Calendar c4,
JointCalendarRule  r 
)

Definition at line 48 of file jointcalendar.cpp.

◆ Impl() [4/4]

Impl ( std::vector< Calendar cv,
JointCalendarRule  r 
)

Definition at line 60 of file jointcalendar.cpp.

Member Function Documentation

◆ name()

std::string name ( ) const
overridevirtual

Implements Calendar::Impl.

Definition at line 63 of file jointcalendar.cpp.

◆ isWeekend()

bool isWeekend ( Weekday  w) const
overridevirtual

Implements Calendar::Impl.

Definition at line 83 of file jointcalendar.cpp.

◆ isBusinessDay()

bool isBusinessDay ( const Date date) const
overridevirtual

Implements Calendar::Impl.

Definition at line 103 of file jointcalendar.cpp.

Member Data Documentation

◆ rule_

JointCalendarRule rule_
private

Definition at line 72 of file jointcalendar.hpp.

◆ calendars_

std::vector<Calendar> calendars_
private

Definition at line 73 of file jointcalendar.hpp.