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

partial calendar implementation More...

#include <calendar.hpp>

+ Inheritance diagram for Calendar::WesternImpl:
+ Collaboration diagram for Calendar::WesternImpl:

Public Member Functions

bool isWeekend (Weekday) 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
 

Static Public Member Functions

static Day easterMonday (Year)
 expressed relative to first day of year More...
 

Additional Inherited Members

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

Detailed Description

partial calendar implementation

This class provides the means of determining the Easter Monday for a given year, as well as specifying Saturdays and Sundays as weekend days.

Definition at line 168 of file calendar.hpp.

Member Function Documentation

◆ isWeekend()

bool isWeekend ( Weekday  w) const
overridevirtual

Implements Calendar::Impl.

Definition at line 195 of file calendar.cpp.

+ Here is the caller graph for this function:

◆ easterMonday()

Day easterMonday ( Year  y)
static

expressed relative to first day of year

Definition at line 199 of file calendar.cpp.

+ Here is the caller graph for this function: