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

Public Member Functions

 Impl (std::string name="")
 
std::string name () const override
 
bool isWeekend (Weekday) const override
 
bool isBusinessDay (const Date &) const override
 
void addWeekend (Weekday)
 
- 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

std::string name_
 
unsigned int weekend_mask_ = 0
 

Additional Inherited Members

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

Detailed Description

Definition at line 42 of file bespokecalendar.hpp.

Constructor & Destructor Documentation

◆ Impl()

Impl ( std::string  name = "")
explicit

Definition at line 26 of file bespokecalendar.cpp.

Member Function Documentation

◆ name()

std::string name ( ) const
overridevirtual

Implements Calendar::Impl.

Definition at line 28 of file bespokecalendar.cpp.

◆ isWeekend()

bool isWeekend ( Weekday  w) const
overridevirtual

Implements Calendar::Impl.

Definition at line 32 of file bespokecalendar.cpp.

◆ isBusinessDay()

bool isBusinessDay ( const Date date) const
overridevirtual

Implements Calendar::Impl.

Definition at line 36 of file bespokecalendar.cpp.

+ Here is the call graph for this function:

◆ addWeekend()

void addWeekend ( Weekday  w)

Definition at line 40 of file bespokecalendar.cpp.

Member Data Documentation

◆ name_

std::string name_
private

Definition at line 50 of file bespokecalendar.hpp.

◆ weekend_mask_

unsigned int weekend_mask_ = 0
private

Definition at line 51 of file bespokecalendar.hpp.