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

Public Member Functions

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

Detailed Description

Definition at line 38 of file islamicweekendsonly.hpp.

Member Function Documentation

◆ name()

std::string name ( ) const
override

Definition at line 40 of file islamicweekendsonly.hpp.

40{ return "Islamic weekends only"; }

◆ isWeekend()

bool isWeekend ( Weekday  w) const
override

Definition at line 28 of file islamicweekendsonly.cpp.

28 {
29 return w == Friday || w == Saturday;
30 }

◆ isBusinessDay()

bool isBusinessDay ( const Date &  date) const
override

Definition at line 32 of file islamicweekendsonly.cpp.

32 {
33 return !isWeekend(date.weekday());
34 }
bool isWeekend(Weekday) const override