2021-04-01 21:00:53 +02:00
|
|
|
// Copyright 2010-2021 Google LLC
|
2014-07-09 09:59:50 +00:00
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
|
//
|
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
//
|
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
|
// limitations under the License.
|
2014-07-24 18:12:50 +00:00
|
|
|
|
2014-06-11 22:28:04 +00:00
|
|
|
// This is the java SWIG wrapper for ../tuple_set.h. See that file.
|
|
|
|
|
// TODO(user): Refactor this file to comply with the SWIG style guide.
|
|
|
|
|
|
2017-04-26 17:30:25 +02:00
|
|
|
%include "ortools/base/base.i"
|
2014-06-11 22:28:04 +00:00
|
|
|
|
2017-04-26 17:30:25 +02:00
|
|
|
%include "ortools/util/java/vector.i"
|
2014-06-11 22:28:04 +00:00
|
|
|
|
|
|
|
|
%{
|
|
|
|
|
// TODO(user): see if we can remove <vector>
|
|
|
|
|
#include <vector>
|
2017-04-26 17:30:25 +02:00
|
|
|
#include "ortools/base/integral_types.h"
|
|
|
|
|
#include "ortools/util/tuple_set.h"
|
2014-06-11 22:28:04 +00:00
|
|
|
%}
|
|
|
|
|
|
2019-03-13 13:50:23 +01:00
|
|
|
%ignore operations_research::IntTupleSet::RawData; // no typemap
|
2019-01-15 14:17:33 +01:00
|
|
|
%rename (arity) operations_research::IntTupleSet::Arity;
|
|
|
|
|
%rename (clear) operations_research::IntTupleSet::Clear;
|
|
|
|
|
%rename (contains) operations_research::IntTupleSet::Contains;
|
2014-06-11 22:28:04 +00:00
|
|
|
%rename (insert) operations_research::IntTupleSet::Insert;
|
|
|
|
|
%rename (insert2) operations_research::IntTupleSet::Insert2;
|
|
|
|
|
%rename (insert3) operations_research::IntTupleSet::Insert3;
|
|
|
|
|
%rename (insert4) operations_research::IntTupleSet::Insert4;
|
|
|
|
|
%rename (insertAll) operations_research::IntTupleSet::InsertAll;
|
2019-01-15 14:17:33 +01:00
|
|
|
%rename (numDifferentValuesInColumn) operations_research::IntTupleSet::NumDifferentValuesInColumn;
|
2014-06-11 22:28:04 +00:00
|
|
|
%rename (numTuples) operations_research::IntTupleSet::NumTuples;
|
2019-01-15 14:17:33 +01:00
|
|
|
%rename (sortedByColumn) operations_research::IntTupleSet::SortedByColumn;
|
|
|
|
|
%rename (sortedLexicographically) operations_research::IntTupleSet::SortedLexicographically;
|
|
|
|
|
%rename (value) operations_research::IntTupleSet::Value;
|
|
|
|
|
|
2017-04-26 17:30:25 +02:00
|
|
|
%include ortools/util/tuple_set.h
|