33 static ext::shared_ptr<Calendar::Impl> settlementImpl(
35 static ext::shared_ptr<Calendar::Impl> krxImpl(
39 impl_ = settlementImpl;
66 || (
d == 5 && m ==
April &&
y <= 2005)
68 || (
d == 1 && m ==
May)
70 || (
d == 5 && m ==
May)
71 || (w ==
Monday && (
d == 6 ||
d == 7) && m ==
May &&
y > 2013)
73 || (
d == 6 && m ==
June)
75 || (
d == 17 && m ==
July &&
y <= 2007)
87 || ((
d == 21 ||
d == 22 ||
d == 23) && m ==
January &&
y == 2004)
88 || ((
d == 8 ||
d == 9 ||
d == 10) && m ==
February &&
y == 2005)
89 || ((
d == 28 ||
d == 29 ||
d == 30) && m ==
January &&
y == 2006)
91 || ((
d == 6 ||
d == 7 ||
d == 8) && m ==
February &&
y == 2008)
92 || ((
d == 25 ||
d == 26 ||
d == 27) && m ==
January &&
y == 2009)
93 || ((
d == 13 ||
d == 14 ||
d == 15) && m ==
February &&
y == 2010)
94 || ((
d == 2 ||
d == 3 ||
d == 4) && m ==
February &&
y == 2011)
95 || ((
d == 23 ||
d == 24) && m ==
January &&
y == 2012)
97 || ((
d == 30 ||
d == 31) && m ==
January &&
y == 2014)
98 || ((
d == 18 ||
d == 19 ||
d == 20) && m ==
February &&
y == 2015)
99 || ((
d >= 7 &&
d <= 10) && m ==
February &&
y == 2016)
100 || ((
d >= 27 &&
d <= 30) && m ==
January &&
y == 2017)
101 || ((
d == 15 ||
d == 16 ||
d == 17) && m ==
February &&
y == 2018)
102 || ((
d == 4 ||
d == 5 ||
d == 6) && m ==
February &&
y == 2019)
103 || ((
d >= 24 &&
d <= 27) && m ==
January &&
y == 2020)
104 || ((
d == 11 ||
d == 12 ||
d == 13) && m ==
February &&
y == 2021)
105 || (((
d == 31 && m ==
January) || ((
d == 1 ||
d == 2)
107 || ((
d == 23 ||
d == 24) && m ==
January &&
y == 2023)
108 || ((
d >= 9 &&
d <= 12) && m ==
February &&
y == 2024)
109 || ((
d == 28 ||
d == 29 ||
d == 30) && m ==
January &&
y == 2025)
110 || ((
d == 16 ||
d == 17 ||
d == 18) && m ==
February &&
y == 2026)
111 || ((
d == 8 ||
d == 9) && m ==
February &&
y == 2027)
112 || ((
d == 26 ||
d == 27 ||
d == 28) && m ==
January &&
y == 2028)
113 || ((
d == 12 ||
d == 13 ||
d == 14) && m ==
February &&
y == 2029)
114 || ((
d == 4 ||
d == 5) && m ==
February &&
y == 2030)
115 || ((
d == 22 ||
d == 23 ||
d == 24) && m ==
January &&
y == 2031)
116 || ((
d == 10 ||
d == 11 ||
d == 12) && m ==
February &&
y == 2032)
117 || (((
d == 31 && m ==
January) || ((
d == 1||
d == 2)
119 || ((
d == 20 ||
d == 21) && m ==
February &&
y == 2034)
120 || ((
d == 7 ||
d == 8 ||
d == 9) && m ==
February &&
y == 2035)
121 || ((
d == 28 ||
d == 29 ||
d == 30) && m ==
January &&
y == 2036)
122 || ((
d == 16 ||
d == 17) && m ==
February &&
y == 2037)
123 || ((
d == 3 ||
d == 4 ||
d == 5) && m ==
February &&
y == 2038)
124 || ((
d == 24 ||
d == 25 ||
d == 26) && m ==
January &&
y == 2039)
125 || ((
d == 13 ||
d == 14) && m ==
February &&
y == 2040)
126 || (((
d == 31 && m ==
January) || ((
d == 1||
d == 2)
128 || ((
d == 21 ||
d == 22 ||
d == 23) && m ==
January &&
y == 2042)
129 || ((
d == 9 ||
d == 10 ||
d == 11) && m ==
February &&
y == 2043)
130 || ((((
d == 29||
d == 30||
d == 31) && m ==
January)
132 || ((
d == 16 ||
d == 17 ||
d == 18) && m ==
February &&
y == 2045)
133 || ((
d == 5 ||
d == 6 ||
d == 7) && m ==
February &&
y == 2046)
134 || ((
d >= 25 &&
d <= 28) && m ==
January &&
y == 2047)
135 || ((
d == 13 ||
d == 14 ||
d == 15) && m ==
February &&
y == 2048)
136 || ((
d == 1 ||
d == 2 ||
d == 3) && m ==
February &&
y == 2049)
137 || ((
d == 24 ||
d == 25) && m ==
January &&
y == 2050)
140 || (
d == 15 && m ==
April &&
y == 2004)
141 || (
d == 31 && m ==
May &&
y == 2006)
143 || (
d == 9 && m ==
April &&
y == 2008)
144 || (
d == 2 && m ==
June &&
y == 2010)
145 || (
d == 11 && m ==
April &&
y == 2012)
147 || (
d == 4 && m ==
June &&
y == 2014)
148 || (
d == 13 && m ==
April &&
y == 2016)
149 || (
d == 9 && m ==
May &&
y == 2017)
150 || (
d == 13 && m ==
June &&
y == 2018)
151 || (
d == 15 && m ==
April &&
y == 2020)
152 || (
d == 9 && m ==
March &&
y == 2022)
153 || (
d == 1 && m ==
June &&
y == 2022)
154 || (
d == 10 && m ==
April &&
y == 2024)
156 || (
d == 26 && m ==
May &&
y == 2004)
157 || (
d == 15 && m ==
May &&
y == 2005)
158 || (
d == 5 && m ==
May &&
y == 2006)
159 || (
d == 24 && m ==
May &&
y == 2007)
160 || (
d == 12 && m ==
May &&
y == 2008)
161 || (
d == 2 && m ==
May &&
y == 2009)
162 || (
d == 21 && m ==
May &&
y == 2010)
163 || (
d == 10 && m ==
May &&
y == 2011)
164 || (
d == 28 && m ==
May &&
y == 2012)
165 || (
d == 17 && m ==
May &&
y == 2013)
166 || (
d == 6 && m ==
May &&
y == 2014)
167 || (
d == 25 && m ==
May &&
y == 2015)
168 || (
d == 14 && m ==
May &&
y == 2016)
169 || (
d == 3 && m ==
May &&
y == 2017)
170 || (
d == 22 && m ==
May &&
y == 2018)
171 || (
d == 12 && m ==
May &&
y == 2019)
172 || (
d == 30 && m ==
April &&
y == 2020)
173 || (
d == 19 && m ==
May &&
y == 2021)
174 || (
d == 8 && m ==
May &&
y == 2022)
175 || (
d == 29 && m ==
May &&
y == 2023)
176 || (
d == 15 && m ==
May &&
y == 2024)
177 || (
d == 6 && m ==
May &&
y == 2025)
178 || (
d == 25 && m ==
May &&
y == 2026)
179 || (
d == 13 && m ==
May &&
y == 2027)
180 || (
d == 2 && m ==
May &&
y == 2028)
181 || (
d == 21 && m ==
May &&
y == 2029)
182 || (
d == 9 && m ==
May &&
y == 2030)
183 || (
d == 28 && m ==
May &&
y == 2031)
184 || (
d == 17 && m ==
May &&
y == 2032)
185 || (
d == 6 && m ==
May &&
y == 2033)
186 || (
d == 25 && m ==
May &&
y == 2034)
187 || (
d == 15 && m ==
May &&
y == 2035)
188 || (
d == 6 && m ==
May &&
y == 2036)
189 || (
d == 22 && m ==
May &&
y == 2037)
190 || (
d == 11 && m ==
May &&
y == 2038)
191 || (
d == 2 && m ==
May &&
y == 2039)
192 || (
d == 18 && m ==
May &&
y == 2040)
193 || (
d == 7 && m ==
May &&
y == 2041)
194 || (
d == 26 && m ==
May &&
y == 2042)
195 || (
d == 18 && m ==
May &&
y == 2043)
196 || (
d == 6 && m ==
May &&
y == 2044)
197 || (
d == 24 && m ==
May &&
y == 2045)
198 || (
d == 14 && m ==
May &&
y == 2046)
199 || (
d == 2 && m ==
May &&
y == 2047)
200 || (
d == 20 && m ==
May &&
y == 2048)
201 || (
d == 10 && m ==
May &&
y == 2049)
202 || (
d == 30 && m ==
May &&
y == 2050)
205 || (
d == 14 && m ==
August &&
y == 2015)
207 || (
d == 17 && m ==
August &&
y == 2020)
211 || ((
d == 27 ||
d == 28 ||
d == 29) && m ==
September &&
y == 2004)
212 || ((
d == 17 ||
d == 18 ||
d == 19) && m ==
September &&
y == 2005)
213 || ((
d == 5 ||
d == 6 ||
d == 7) && m ==
October &&
y == 2006)
214 || ((
d == 24 ||
d == 25 ||
d == 26) && m ==
September &&
y == 2007)
215 || ((
d == 13 ||
d == 14 ||
d == 15) && m ==
September &&
y == 2008)
216 || ((
d == 2 ||
d == 3 ||
d == 4) && m ==
October &&
y == 2009)
217 || ((
d == 21 ||
d == 22 ||
d == 23) && m ==
September &&
y == 2010)
218 || ((
d == 12 ||
d == 13) && m ==
September &&
y == 2011)
219 || ((
d == 1) && m ==
October &&
y == 2012)
220 || ((
d == 18 ||
d == 19 ||
d == 20) && m ==
September &&
y == 2013)
221 || ((
d == 8 ||
d == 9 ||
d == 10) && m ==
September &&
y == 2014)
222 || ((
d == 28 ||
d == 29) && m ==
September &&
y == 2015)
223 || ((
d == 14 ||
d == 15 ||
d == 16) && m ==
September &&
y == 2016)
224 || ((
d >= 3 &&
d <= 6) && m ==
October &&
y == 2017)
225 || ((
d >= 23 &&
d <= 26) && m ==
September &&
y == 2018)
226 || ((
d == 12 ||
d == 13 ||
d == 14) && m ==
September &&
y == 2019)
229 || ((
d == 20 ||
d == 21 ||
d == 22) && m ==
September &&
y == 2021)
230 || ((
d == 9 ||
d == 10 ||
d == 11) && m ==
September &&
y == 2022)
232 || ((
d == 28 ||
d == 29 ||
d == 30) && m ==
September &&
y == 2023)
233 || ((
d == 16 ||
d == 17 ||
d == 18) && m ==
September &&
y == 2024)
234 || ((
d == 6 ||
d == 7 ||
d == 8) && m ==
October &&
y == 2025)
235 || ((
d == 24 ||
d == 25 ||
d == 26) && m ==
September &&
y == 2026)
236 || ((
d == 14 ||
d == 15 ||
d == 16) && m ==
September &&
y == 2027)
237 || ((
d >= 2 &&
d <= 5) && m ==
October &&
y == 2028)
238 || ((
d >= 21 &&
d <= 24) && m ==
September &&
y == 2029)
239 || ((
d == 11 ||
d == 12 ||
d == 13) && m ==
September &&
y == 2030)
242 || ((
d == 20 ||
d == 21) && m ==
September &&
y == 2032)
243 || ((
d == 7 ||
d == 8 ||
d == 9) && m ==
September &&
y == 2033)
244 || ((
d == 26 ||
d == 27 ||
d == 28) && m ==
September &&
y == 2034)
245 || ((
d == 17 ||
d == 18) && m ==
September &&
y == 2035)
246 || ((
d >= 3 &&
d <= 7) && m ==
October &&
y == 2036)
247 || ((
d == 23 ||
d == 24 ||
d == 25) && m ==
September &&
y == 2037)
248 || ((
d == 13 ||
d == 14 ||
d == 15) && m ==
September &&
y == 2038)
249 || ((
d == 3 ||
d == 4 ||
d == 5) && m ==
October &&
y == 2039)
250 || ((
d == 20 ||
d == 21 ||
d == 22) && m ==
September &&
y == 2040)
251 || ((
d == 9 ||
d == 10 ||
d == 11) && m ==
September &&
y == 2041)
252 || ((
d == 29 ||
d == 30) && m ==
September &&
y == 2042)
253 || ((
d == 16 ||
d == 17 ||
d == 18) && m ==
September &&
y == 2043)
254 || ((
d == 4 ||
d == 5 ||
d == 6) && m ==
October &&
y == 2044)
255 || ((
d == 25 ||
d == 26 ||
d == 27) && m ==
September &&
y == 2045)
256 || ((
d >= 14 &&
d <= 17) && m ==
September &&
y == 2046)
257 || ((
d == 4 ||
d == 5 ||
d == 7) && m ==
October &&
y == 2047)
258 || ((
d == 21 ||
d == 22 ||
d == 23) && m ==
September &&
y == 2048)
259 || ((
d >= 10 &&
d <= 13) && m ==
September &&
y == 2049)
261 || (
d == 1 && m ==
October)) &&
y == 2050)
283 ((((
d == 29 ||
d == 30) && w ==
Friday) ||
d == 31)
288 (
d == 6 && m ==
May &&
y == 2016) ||
bool isWeekend(Weekday w) const
ext::shared_ptr< Impl > impl_
bool isBusinessDay(const Date &) const override
bool isBusinessDay(const Date &) const override
bool isWeekend(Weekday) const override
@ Settlement
Public holidays.
Classes and functions for error handling.
#define QL_FAIL(message)
throw an error (possibly with file and line information)