Skip to content

Commit a700c5e

Browse files
committed
Replace all usages of LargeJointCalendar
1 parent b85c60e commit a700c5e

3 files changed

Lines changed: 11 additions & 13 deletions

File tree

OREData/ored/utilities/calendarparser.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
#include <qle/calendars/ireland.hpp>
3636
#include <qle/calendars/islamicweekendsonly.hpp>
3737
#include <qle/calendars/israel.hpp>
38-
#include <qle/calendars/largejointcalendar.hpp>
3938
#include <qle/calendars/luxembourg.hpp>
4039
#include <qle/calendars/malaysia.hpp>
4140
#include <qle/calendars/mauritius.hpp>
@@ -88,7 +87,7 @@ QuantLib::Calendar CalendarParser::parseCalendar(const std::string& name) const
8887
QL_FAIL("Cannot convert \"" << name << "\" to Calendar [unhandled exception]");
8988
}
9089
}
91-
return QuantExt::LargeJointCalendar(calendars);
90+
return QuantLib::JointCalendar(calendars);
9291
}
9392
}
9493

OREData/test/parser.cpp

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
#include <ql/time/daycounters/all.hpp>
3232
#include <qle/calendars/colombia.hpp>
3333
#include <qle/calendars/israel.hpp>
34-
#include <qle/calendars/largejointcalendar.hpp>
3534
#include <qle/calendars/malaysia.hpp>
3635
#include <qle/calendars/netherlands.hpp>
3736
#include <qle/calendars/peru.hpp>
@@ -927,7 +926,7 @@ BOOST_AUTO_TEST_CASE(testJointCalendar) {
927926
Calendar peru = QuantExt::Peru();
928927

929928
cals.push_back(peru);
930-
Calendar joint1 = QuantExt::LargeJointCalendar(cals);
929+
Calendar joint1 = QuantLib::JointCalendar(cals);
931930

932931
std::vector<Date> hol = joint1.holidayList(Date(1, January, 2018), Date(31, December, 2018));
933932
BOOST_CHECK(hol.size() == expectedHolidays.size());
@@ -955,7 +954,7 @@ BOOST_AUTO_TEST_CASE(testJointCalendar) {
955954

956955
Calendar col = Colombia();
957956
cals.push_back(col);
958-
Calendar joint2 = QuantExt::LargeJointCalendar(cals);
957+
Calendar joint2 = QuantLib::JointCalendar(cals);
959958

960959
hol = joint2.holidayList(Date(1, January, 2018), Date(31, December, 2018));
961960
BOOST_CHECK(hol.size() == expectedHolidays.size());
@@ -978,7 +977,7 @@ BOOST_AUTO_TEST_CASE(testJointCalendar) {
978977

979978
Calendar phil = Philippines();
980979
cals.push_back(phil);
981-
Calendar joint3 = QuantExt::LargeJointCalendar(cals);
980+
Calendar joint3 = QuantLib::JointCalendar(cals);
982981

983982
hol = joint3.holidayList(Date(1, January, 2018), Date(31, December, 2018));
984983
BOOST_CHECK(hol.size() == expectedHolidays.size());
@@ -1004,7 +1003,7 @@ BOOST_AUTO_TEST_CASE(testJointCalendar) {
10041003

10051004
Calendar thai = Thailand();
10061005
cals.push_back(thai);
1007-
Calendar joint4 = QuantExt::LargeJointCalendar(cals);
1006+
Calendar joint4 = QuantLib::JointCalendar(cals);
10081007

10091008
hol = joint4.holidayList(Date(1, January, 2018), Date(31, December, 2018));
10101009
BOOST_CHECK(hol.size() == expectedHolidays.size());
@@ -1020,7 +1019,7 @@ BOOST_AUTO_TEST_CASE(testJointCalendar) {
10201019

10211020
Calendar mal = Malaysia();
10221021
cals.push_back(mal);
1023-
Calendar joint5 = QuantExt::LargeJointCalendar(cals);
1022+
Calendar joint5 = QuantLib::JointCalendar(cals);
10241023

10251024
hol = joint5.holidayList(Date(1, January, 2018), Date(31, December, 2018));
10261025
BOOST_CHECK(hol.size() == expectedHolidays.size());
@@ -1044,7 +1043,7 @@ BOOST_AUTO_TEST_CASE(testJointCalendar) {
10441043

10451044
Calendar chil = Chile();
10461045
cals.push_back(chil);
1047-
Calendar joint6 = QuantExt::LargeJointCalendar(cals);
1046+
Calendar joint6 = QuantLib::JointCalendar(cals);
10481047

10491048
hol = joint6.holidayList(Date(1, January, 2018), Date(31, December, 2018));
10501049
BOOST_CHECK(hol.size() == expectedHolidays.size());
@@ -1062,7 +1061,7 @@ BOOST_AUTO_TEST_CASE(testJointCalendar) {
10621061

10631062
Calendar net = Netherlands();
10641063
cals.push_back(net);
1065-
Calendar joint7 = QuantExt::LargeJointCalendar(cals);
1064+
Calendar joint7 = QuantLib::JointCalendar(cals);
10661065

10671066
hol = joint7.holidayList(Date(1, January, 2018), Date(31, December, 2018));
10681067
BOOST_CHECK(hol.size() == expectedHolidays.size());
@@ -1083,7 +1082,7 @@ BOOST_AUTO_TEST_CASE(testJointCalendar) {
10831082

10841083
Calendar fre = France();
10851084
cals.push_back(fre);
1086-
Calendar joint8 = QuantExt::LargeJointCalendar(cals);
1085+
Calendar joint8 = QuantLib::JointCalendar(cals);
10871086

10881087
hol = joint8.holidayList(Date(1, January, 2018), Date(31, December, 2018));
10891088
BOOST_CHECK(hol.size() == expectedHolidays.size());

QuantExt/qle/indexes/compositeindex.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818

1919
#include <qle/indexes/compositeindex.hpp>
2020

21-
#include <qle/calendars/largejointcalendar.hpp>
2221
#include <qle/indexes/bondindex.hpp>
2322
#include <qle/indexes/equityindex.hpp>
2423
#include <qle/indexes/genericindex.hpp>
24+
#include <ql/time/calendars/jointcalendar.hpp>
2525

2626
namespace QuantExt {
2727

@@ -46,7 +46,7 @@ CompositeIndex::CompositeIndex(const std::string& name, const std::vector<boost:
4646
cals.push_back(i->fixingCalendar());
4747
}
4848

49-
fixingCalendar_ = LargeJointCalendar(cals);
49+
fixingCalendar_ = JointCalendar(cals);
5050
}
5151

5252
std::string CompositeIndex::name() const { return name_; }

0 commit comments

Comments
 (0)