IntTupleSet.cs
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 // <auto-generated />
3 //
4 // This file was automatically generated by SWIG (http://www.swig.org).
5 // Version 3.0.12
6 //
7 // Do not make changes to this file unless you know what you are doing--modify
8 // the SWIG interface file instead.
9 //------------------------------------------------------------------------------
10 
12 
13 using System;
14 using System.Runtime.InteropServices;
15 using System.Collections;
16 using System.Collections.Generic;
17 
18 public partial class IntTupleSet : global::System.IDisposable {
19  private global::System.Runtime.InteropServices.HandleRef swigCPtr;
20  protected bool swigCMemOwn;
21 
22  internal IntTupleSet(global::System.IntPtr cPtr, bool cMemoryOwn) {
23  swigCMemOwn = cMemoryOwn;
24  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
25  }
26 
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;
29  }
30 
31  ~IntTupleSet() {
32  Dispose();
33  }
34 
35  public virtual void Dispose() {
36  lock(this) {
37  if (swigCPtr.Handle != global::System.IntPtr.Zero) {
38  if (swigCMemOwn) {
39  swigCMemOwn = false;
41  }
42  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
43  }
44  global::System.GC.SuppressFinalize(this);
45  }
46  }
47 
48  public IntTupleSet(int arity) : this(operations_research_constraint_solverPINVOKE.new_IntTupleSet__SWIG_0(arity), true) {
49  }
50 
51  public IntTupleSet(IntTupleSet set) : this(operations_research_constraint_solverPINVOKE.new_IntTupleSet__SWIG_1(IntTupleSet.getCPtr(set)), true) {
53  }
54 
55  public void Clear() {
57  }
58 
59  public int Insert( int[] tuple) {
60  int ret = operations_research_constraint_solverPINVOKE.IntTupleSet_Insert__SWIG_0(swigCPtr, tuple.Length, tuple );
61  return ret;
62  }
63 
64  public int Insert( long[] tuple) {
65  int ret = operations_research_constraint_solverPINVOKE.IntTupleSet_Insert__SWIG_1(swigCPtr, tuple.Length, tuple );
66  return ret;
67  }
68 
69  public int Insert2(long v0, long v1) {
71  return ret;
72  }
73 
74  public int Insert3(long v0, long v1, long v2) {
76  return ret;
77  }
78 
79  public int Insert4(long v0, long v1, long v2, long v3) {
80  int ret = operations_research_constraint_solverPINVOKE.IntTupleSet_Insert4(swigCPtr, v0, v1, v2, v3);
81  return ret;
82  }
83 
84  public void InsertAll( long[][] tuples) {
86  tuples.GetLength(0),
87  NestedArrayHelper.GetArraySecondSize(tuples),
88  NestedArrayHelper.GetFlatArray(tuples)
89 );
90  }
91 
92  public void InsertAll(SWIGTYPE_p_std__vectorT_std__vectorT_int_t_t tuples) {
93  operations_research_constraint_solverPINVOKE.IntTupleSet_InsertAll__SWIG_1(swigCPtr, SWIGTYPE_p_std__vectorT_std__vectorT_int_t_t.getCPtr(tuples));
95  }
96 
97  public bool Contains( int[] tuple) {
98  bool ret = operations_research_constraint_solverPINVOKE.IntTupleSet_Contains__SWIG_0(swigCPtr, tuple.Length, tuple );
99  return ret;
100  }
101 
102  public bool Contains( long[] tuple) {
103  bool ret = operations_research_constraint_solverPINVOKE.IntTupleSet_Contains__SWIG_1(swigCPtr, tuple.Length, tuple );
104  return ret;
105  }
106 
107  public int NumTuples() {
109  return ret;
110  }
111 
112  public long Value(int tuple_index, int pos_in_tuple) {
113  long ret = operations_research_constraint_solverPINVOKE.IntTupleSet_Value(swigCPtr, tuple_index, pos_in_tuple);
114  return ret;
115  }
116 
117  public int Arity() {
119  return ret;
120  }
121 
122  public int NumDifferentValuesInColumn(int col) {
124  return ret;
125  }
126 
127  public IntTupleSet SortedByColumn(int col) {
129  return ret;
130  }
131 
134  return ret;
135  }
136 
137 }
138 
139 }
static int IntTupleSet_NumTuples(global::System.Runtime.InteropServices.HandleRef jarg1)
long Value(int tuple_index, int pos_in_tuple)
Definition: IntTupleSet.cs:112
static long IntTupleSet_Value(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
static int IntTupleSet_Insert3(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, long jarg4)
static int IntTupleSet_Insert4(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, long jarg4, long jarg5)
int Insert4(long v0, long v1, long v2, long v3)
Definition: IntTupleSet.cs:79
static void IntTupleSet_InsertAll__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int len2_1, int[] len2_2, long[] jarg2)
static int IntTupleSet_Insert2(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3)
static int IntTupleSet_Arity(global::System.Runtime.InteropServices.HandleRef jarg1)
static void IntTupleSet_Clear(global::System.Runtime.InteropServices.HandleRef jarg1)
static int IntTupleSet_Insert__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, int[] jarg2)
static global::System.IntPtr IntTupleSet_SortedLexicographically(global::System.Runtime.InteropServices.HandleRef jarg1)
int Insert3(long v0, long v1, long v2)
Definition: IntTupleSet.cs:74
static bool IntTupleSet_Contains__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, long[] jarg2)
static global::System.IntPtr IntTupleSet_SortedByColumn(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static int IntTupleSet_Insert__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, long[] jarg2)
static void IntTupleSet_InsertAll__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int IntTupleSet_NumDifferentValuesInColumn(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static bool IntTupleSet_Contains__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, int[] jarg2)
static void delete_IntTupleSet(global::System.Runtime.InteropServices.HandleRef jarg1)
void InsertAll(SWIGTYPE_p_std__vectorT_std__vectorT_int_t_t tuples)
Definition: IntTupleSet.cs:92