Files
ortools-clone/ortools/util/java/tuple_set.swig
2025-08-11 09:13:53 +02:00

45 lines
1.9 KiB
Plaintext

// Copyright 2010-2025 Google LLC
// 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.
// 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.
%include "ortools/base/base.i"
%include "ortools/util/java/vector.swig"
%{
// TODO(user): see if we can remove <vector>
#include <cstdint>
#include <vector>
#include "ortools/util/tuple_set.h"
%}
%ignore operations_research::IntTupleSet::RawData; // no typemap
%rename (arity) operations_research::IntTupleSet::Arity;
%rename (clear) operations_research::IntTupleSet::Clear;
%rename (contains) operations_research::IntTupleSet::Contains;
%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;
%rename (numDifferentValuesInColumn) operations_research::IntTupleSet::NumDifferentValuesInColumn;
%rename (numTuples) operations_research::IntTupleSet::NumTuples;
%rename (sortedByColumn) operations_research::IntTupleSet::SortedByColumn;
%rename (sortedLexicographically) operations_research::IntTupleSet::SortedLexicographically;
%rename (value) operations_research::IntTupleSet::Value;
%include "ortools/util/tuple_set.h"