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

Public Member Functions

 Impl (const QuantLib::Calendar &calendar, const std::string &name)
 
std::string name () const override
 
bool isWeekend (QuantLib::Weekday) const override
 
bool isBusinessDay (const QuantLib::Date &) const override
 

Private Attributes

std::string name_
 
QuantLib::Calendar baseCalendar_
 

Detailed Description

Definition at line 38 of file amendedcalendar.hpp.

Constructor & Destructor Documentation

◆ Impl()

Impl ( const QuantLib::Calendar &  calendar,
const std::string &  name 
)

Definition at line 33 of file amendedcalendar.cpp.

34 : name_(name), baseCalendar_(calendar) {}
std::string name() const override

Member Function Documentation

◆ name()

std::string name ( ) const
override

Definition at line 27 of file amendedcalendar.cpp.

27{ return name_; }

◆ isWeekend()

bool isWeekend ( QuantLib::Weekday  ) const
override

Definition at line 29 of file amendedcalendar.cpp.

29{ return baseCalendar_.isWeekend(w); }

◆ isBusinessDay()

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

Definition at line 31 of file amendedcalendar.cpp.

31{ return baseCalendar_.isBusinessDay(date); }

Member Data Documentation

◆ name_

std::string name_
private

Definition at line 46 of file amendedcalendar.hpp.

◆ baseCalendar_

QuantLib::Calendar baseCalendar_
private

Definition at line 47 of file amendedcalendar.hpp.