14using System.Runtime.InteropServices;
15using System.Collections;
16using System.Collections.Generic;
18public partial class IntTupleSet : global::System.IDisposable {
22 internal IntTupleSet(global::System.IntPtr cPtr,
bool cMemoryOwn) {
24 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
27 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(
IntTupleSet obj) {
28 return (obj ==
null) ?
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero) : obj.swigCPtr;
31 internal static global::System.Runtime.InteropServices.HandleRef swigRelease(IntTupleSet obj) {
34 throw new global::System.ApplicationException(
"Cannot release ownership as memory is not owned");
35 global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
36 obj.swigCMemOwn =
false;
40 return new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
50 global::System.GC.SuppressFinalize(
this);
53 protected virtual void Dispose(
bool disposing) {
55 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
60 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
65 public IntTupleSet(
int arity) : this(operations_research_constraint_solverPINVOKE.new_IntTupleSet__SWIG_0(arity), true) {
76 public int Insert(
int[] tuple) {
81 public int Insert(
long[] tuple) {
86 public int Insert2(
long v0,
long v1) {
91 public int Insert3(
long v0,
long v1,
long v2) {
96 public int Insert4(
long v0,
long v1,
long v2,
long v3) {
101 public void InsertAll(
long[][] tuples) {
117 public bool Contains(
int[] tuple) {
122 public bool Contains(
long[] tuple) {
132 public long Value(
int tuple_index,
int pos_in_tuple) {