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

abstract base class for calendar implementations More...

#include <calendar.hpp>

+ Inheritance diagram for Calendar::Impl:
+ Collaboration diagram for Calendar::Impl:

Public Member Functions

virtual ~Impl ()=default
 
virtual std::string name () const =0
 
virtual bool isBusinessDay (const Date &) const =0
 
virtual bool isWeekend (Weekday) const =0
 

Public Attributes

std::set< DateaddedHolidays
 
std::set< DateremovedHolidays
 

Detailed Description

abstract base class for calendar implementations

Definition at line 64 of file calendar.hpp.

Constructor & Destructor Documentation

◆ ~Impl()

virtual ~Impl ( )
virtualdefault

Member Function Documentation

◆ name()

virtual std::string name ( ) const
pure virtual

◆ isBusinessDay()

virtual bool isBusinessDay ( const Date ) const
pure virtual

◆ isWeekend()

virtual bool isWeekend ( Weekday  ) const
pure virtual

Member Data Documentation

◆ addedHolidays

std::set<Date> addedHolidays

Definition at line 70 of file calendar.hpp.

◆ removedHolidays

std::set<Date> removedHolidays

Definition at line 70 of file calendar.hpp.