util: Fix java wrapper

This commit is contained in:
Mizux Seiha
2023-03-02 19:17:16 +01:00
committed by Corentin Le Molgat
parent e1b1db3fd5
commit 76b72ce5fa

View File

@@ -34,12 +34,18 @@
%ignore operations_research::SortedDisjointIntervalList::SortedDisjointIntervalList(const std::vector<ClosedInterval>&);
%unignore operations_research::SortedDisjointIntervalList::~SortedDisjointIntervalList;
%rename (insertInterval) operations_research::SortedDisjointIntervalList::InsertInterval;
//%rename (insertInterval) operations_research::SortedDisjointIntervalList::InsertInterval;
%rename (insertIntervals) operations_research::SortedDisjointIntervalList::InsertIntervals;
%rename (numIntervals) operations_research::SortedDisjointIntervalList::NumIntervals;
%rename (buildComplementOnInterval) operations_research::SortedDisjointIntervalList::BuildComplementOnInterval;
%rename (toString) operations_research::SortedDisjointIntervalList::DebugString;
%extend operations_research::SortedDisjointIntervalList {
void insertInterval(int64_t start, int64_t end) {
$self->InsertInterval(start, end);
}
}
// Make the SWIG-generated constructor public.
// This is necessary as it will be called from the sat package.
SWIG_JAVABODY_PROXY(/*PTRCTOR_VISIBILITY=*/public,