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::OrthodoxImpl Class Reference

partial calendar implementation More...

#include <calendar.hpp>

+ Inheritance diagram for Calendar::OrthodoxImpl:
+ Collaboration diagram for Calendar::OrthodoxImpl:

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 Orthodox Easter Monday for a given year, as well as specifying Saturdays and Sundays as weekend days.

Definition at line 179 of file calendar.hpp.

Member Function Documentation

◆ isWeekend()

bool isWeekend ( Weekday  w) const
overridevirtual

Implements Calendar::Impl.

Definition at line 237 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 241 of file calendar.cpp.

+ Here is the caller graph for this function: