Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | List of all members
Switzerland Class Reference

Swiss calendar. More...

#include <qle/calendars/switzerland.hpp>

+ Inheritance diagram for Switzerland:
+ Collaboration diagram for Switzerland:

Classes

class  SettlementImpl
 
class  SixImpl
 

Public Types

enum  Market { Settlement , SIX }
 

Public Member Functions

 Switzerland (Market market=Settlement)
 

Detailed Description

Swiss calendar.

Holidays:

Definition at line 50 of file switzerland.hpp.

Member Enumeration Documentation

◆ Market

enum Market
Enumerator
Settlement 

generic settlement calendar

SIX 

SIX Swiss Exchange calendar.

Definition at line 64 of file switzerland.hpp.

64 {
65 Settlement, //!< generic settlement calendar
66 SIX //!< SIX Swiss Exchange calendar
67 };
@ Settlement
generic settlement calendar
Definition: switzerland.hpp:65
@ SIX
SIX Swiss Exchange calendar.
Definition: switzerland.hpp:66

Constructor & Destructor Documentation

◆ Switzerland()

Switzerland ( Market  market = Settlement)

Definition at line 24 of file switzerland.cpp.

24 {
25 // all calendar instances share the same implementation instance
26 static ext::shared_ptr<Calendar::Impl> settlementImpl(new Switzerland::SettlementImpl);
27 static ext::shared_ptr<Calendar::Impl> sixImpl(new Switzerland::SixImpl);
28 switch (market) {
29 case Settlement:
30 impl_ = settlementImpl;
31 break;
32 case SIX:
33 impl_ = sixImpl;
34 break;
35 default:
36 QL_FAIL("unknown market");
37 }
38}