9 package com.google.ortools.constraintsolver;
12 private transient long swigCPtr;
13 protected transient boolean swigCMemOwn;
16 swigCMemOwn = cMemoryOwn;
21 return (obj ==
null) ? 0 : obj.swigCPtr;
24 @SuppressWarnings(
"deprecation")
25 protected
void finalize() {
29 public synchronized void delete() {
33 mainJNI.delete_IntTupleSet(swigCPtr);
40 this(mainJNI.new_IntTupleSet__SWIG_0(
arity),
true);
44 this(mainJNI.new_IntTupleSet__SWIG_1(
IntTupleSet.getCPtr(
set),
set),
true);
48 mainJNI.IntTupleSet_clear(swigCPtr,
this);
52 return mainJNI.IntTupleSet_insert__SWIG_0(swigCPtr,
this, tuple);
56 return mainJNI.IntTupleSet_insert__SWIG_1(swigCPtr,
this, tuple);
60 return mainJNI.IntTupleSet_insert2(swigCPtr,
this, v0, v1);
63 public int insert3(
long v0,
long v1,
long v2) {
64 return mainJNI.IntTupleSet_insert3(swigCPtr,
this, v0, v1, v2);
67 public int insert4(
long v0,
long v1,
long v2,
long v3) {
68 return mainJNI.IntTupleSet_insert4(swigCPtr,
this, v0, v1, v2, v3);
72 mainJNI.IntTupleSet_insertAll__SWIG_0(swigCPtr,
this, tuples);
76 mainJNI.IntTupleSet_insertAll__SWIG_1(swigCPtr,
this, tuples);
80 return mainJNI.IntTupleSet_contains__SWIG_0(swigCPtr,
this, tuple);
84 return mainJNI.IntTupleSet_contains__SWIG_1(swigCPtr,
this, tuple);
88 return mainJNI.IntTupleSet_numTuples(swigCPtr,
this);
91 public long value(
int tuple_index,
int pos_in_tuple) {
92 return mainJNI.IntTupleSet_value(swigCPtr,
this, tuple_index, pos_in_tuple);
96 return mainJNI.IntTupleSet_arity(swigCPtr,
this);
100 return mainJNI.IntTupleSet_numDifferentValuesInColumn(swigCPtr,
this, col);
104 return new IntTupleSet(mainJNI.IntTupleSet_sortedByColumn(swigCPtr,
this, col),
true);
108 return new IntTupleSet(mainJNI.IntTupleSet_sortedLexicographically(swigCPtr,
this),
true);