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

Russian calendars. More...

#include <qle/calendars/russia.hpp>

+ Inheritance diagram for RussiaModified:
+ Collaboration diagram for RussiaModified:

Classes

class  ExchangeImpl
 
class  SettlementImpl
 

Public Member Functions

 RussiaModified (Russia::Market=Russia::Settlement)
 

Detailed Description

Russian calendars.

Modified MOEX, using settlement implementation to extend before 2012.

Definition at line 37 of file russia.hpp.

Constructor & Destructor Documentation

◆ RussiaModified()

RussiaModified ( Russia::Market  market = Russia::Settlement)

Definition at line 35 of file russia.cpp.

35 {
36 // all calendar instances share the same implementation instance
37 static ext::shared_ptr<Calendar::Impl> settlementImpl(
38 new RussiaModified::SettlementImpl);
39 static ext::shared_ptr<Calendar::Impl> exchangeImpl(
40 new RussiaModified::ExchangeImpl);
41
42 switch (market) {
43 case Russia::Settlement:
44 impl_ = settlementImpl;
45 break;
46 case Russia::MOEX:
47 impl_ = exchangeImpl;
48 break;
49 default:
50 QL_FAIL("unknown market");
51 }
52 }