Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Wmr::SetImpl Class Reference
+ Inheritance diagram for Wmr::SetImpl:
+ Collaboration diagram for Wmr::SetImpl:

Public Member Functions

std::string name () const override
 
bool isBusinessDay (const QuantLib::Date &) const override
 

Detailed Description

Definition at line 32 of file wmr.hpp.

Member Function Documentation

◆ name()

std::string name ( ) const
override

Definition at line 34 of file wmr.hpp.

34{ return "Thomson Reuters QM/Reuters Spot"; }

◆ isBusinessDay()

bool isBusinessDay ( const QuantLib::Date &  ) const
override

Definition at line 31 of file wmr.cpp.

31 {
32 Weekday w = date.weekday();
33 Day d = date.dayOfMonth(), dd = date.dayOfYear();
34 Month m = date.month();
35 Year y = date.year();
36 Day em = easterMonday(y);
37 if (isWeekend(w)
38 // New Years Day
39 || ((d == 1 || ((d == 2 || d == 3) && w == Monday)) && m == January)
40 // Easter Monday
41 || (dd == em)
42 // Christmas Day
43 || ((d == 25 || ((d == 26 || d == 27) && w == Monday)) && m == December))
44 return false;
45 return true;
46}