Implement IntTupleSet for transition and allowedassignment constraints, port all examples

This commit is contained in:
lperron@google.com
2012-03-15 17:17:09 +00:00
parent ec4b5f8142
commit 95db2534b6

36
util/util.swig Normal file
View File

@@ -0,0 +1,36 @@
// Copyright 2010-2012 Google
// 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.
%include util/data.swig
%{
#include <vector>
#include "base/integral_types.h"
#include "util/tuple_set.h"
%}
#if defined(SWIGJAVA)
%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 (contains) operations_research::IntTupleSet::Contains;
%rename (numTuples) operations_research::IntTupleSet::NumTuples;
%rename (value) operations_research::IntTupleSet::Value;
%rename (arity) operations_research::IntTupleSet::Arity;
%rename (clear) operations_research::IntTupleSet::Clear;
%rename (rawData) operations_research::IntTupleSet::RawData;
#endif // SWIGJAVA
%include util/tuple_set.h