DotNet Reference

DotNet Reference

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( int[][] tuples) {
94  tuples.GetLength(0),
95  NestedArrayHelper.GetArraySecondSize(tuples),
96  NestedArrayHelper.GetFlatArray(tuples)
97 );
98  }
99 
100  public bool Contains( int[] tuple) {
101  bool ret = operations_research_constraint_solverPINVOKE.IntTupleSet_Contains__SWIG_0(swigCPtr, tuple.Length, tuple );
102  return ret;
103  }
104 
105  public bool Contains( long[] tuple) {
106  bool ret = operations_research_constraint_solverPINVOKE.IntTupleSet_Contains__SWIG_1(swigCPtr, tuple.Length, tuple );
107  return ret;
108  }
109 
110  public int NumTuples() {
112  return ret;
113  }
114 
115  public long Value(int tuple_index, int pos_in_tuple) {
116  long ret = operations_research_constraint_solverPINVOKE.IntTupleSet_Value(swigCPtr, tuple_index, pos_in_tuple);
117  return ret;
118  }
119 
120  public int Arity() {
122  return ret;
123  }
124 
125  public int NumDifferentValuesInColumn(int col) {
127  return ret;
128  }
129 
130  public IntTupleSet SortedByColumn(int col) {
132  return ret;
133  }
134 
137  return ret;
138  }
139 
140 }
141 
142 }
void InsertAll(long[][] tuples)
Definition: IntTupleSet.cs:84
static void IntTupleSet_Clear(global::System.Runtime.InteropServices.HandleRef jarg1)
void InsertAll(int[][] tuples)
Definition: IntTupleSet.cs:92
int Insert2(long v0, long v1)
Definition: IntTupleSet.cs:69
static int IntTupleSet_Insert2(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3)
static bool Pending
static global::System.IntPtr IntTupleSet_SortedByColumn(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
Definition: Assignment.cs:11
int NumDifferentValuesInColumn(int col)
Definition: IntTupleSet.cs:125
static int IntTupleSet_Insert3(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, long jarg4)
void Clear()
Definition: IntTupleSet.cs:55
static int IntTupleSet_Insert__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, int[] jarg2)
IntTupleSet(IntTupleSet set)
Definition: IntTupleSet.cs:51
int NumTuples()
Definition: IntTupleSet.cs:110
static global::System.IntPtr IntTupleSet_SortedLexicographically(global::System.Runtime.InteropServices.HandleRef jarg1)
Definition: IntTupleSet.cs:18
static bool IntTupleSet_Contains__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, int[] jarg2)
int Insert4(long v0, long v1, long v2, long v3)
Definition: IntTupleSet.cs:79
IntTupleSet SortedLexicographically()
Definition: IntTupleSet.cs:135
static int IntTupleSet_Arity(global::System.Runtime.InteropServices.HandleRef jarg1)
virtual void Dispose()
Definition: IntTupleSet.cs:35
int Insert3(long v0, long v1, long v2)
Definition: IntTupleSet.cs:74
IntTupleSet SortedByColumn(int col)
Definition: IntTupleSet.cs:130
bool Contains(long[] tuple)
Definition: IntTupleSet.cs:105
int Arity()
Definition: IntTupleSet.cs:120
static int IntTupleSet_NumDifferentValuesInColumn(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
int Insert(long[] tuple)
Definition: IntTupleSet.cs:64
int Insert(int[] tuple)
Definition: IntTupleSet.cs:59
static void IntTupleSet_InsertAll__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int len2_1, int[] len2_2, long[] jarg2)
static void IntTupleSet_InsertAll__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int len2_1, int[] len2_2, int[] jarg2)
static void delete_IntTupleSet(global::System.Runtime.InteropServices.HandleRef jarg1)
static long IntTupleSet_Value(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
IntTupleSet(int arity)
Definition: IntTupleSet.cs:48
static int IntTupleSet_NumTuples(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.Exception Retrieve()
static int IntTupleSet_Insert__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, long[] jarg2)
bool swigCMemOwn
Definition: IntTupleSet.cs:20
bool Contains(int[] tuple)
Definition: IntTupleSet.cs:100
static int IntTupleSet_Insert4(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, long jarg4, long jarg5)
static bool IntTupleSet_Contains__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, long[] jarg2)
long Value(int tuple_index, int pos_in_tuple)
Definition: IntTupleSet.cs:115