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 4.0.1
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(false);
33  }
34 
35  public void Dispose() {
36  Dispose(true);
37  global::System.GC.SuppressFinalize(this);
38  }
39 
40  protected virtual void Dispose(bool disposing) {
41  lock(this) {
42  if (swigCPtr.Handle != global::System.IntPtr.Zero) {
43  if (swigCMemOwn) {
44  swigCMemOwn = false;
46  }
47  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
48  }
49  }
50  }
51 
52  public IntTupleSet(int arity) : this(operations_research_constraint_solverPINVOKE.new_IntTupleSet__SWIG_0(arity), true) {
53  }
54 
55  public IntTupleSet(IntTupleSet set) : this(operations_research_constraint_solverPINVOKE.new_IntTupleSet__SWIG_1(IntTupleSet.getCPtr(set)), true) {
57  }
58 
59  public void Clear() {
61  }
62 
63  public int Insert( int[] tuple) {
64  int ret = operations_research_constraint_solverPINVOKE.IntTupleSet_Insert__SWIG_0(swigCPtr, tuple.Length, tuple );
65  return ret;
66  }
67 
68  public int Insert( long[] tuple) {
69  int ret = operations_research_constraint_solverPINVOKE.IntTupleSet_Insert__SWIG_1(swigCPtr, tuple.Length, tuple );
70  return ret;
71  }
72 
73  public int Insert2(long v0, long v1) {
75  return ret;
76  }
77 
78  public int Insert3(long v0, long v1, long v2) {
80  return ret;
81  }
82 
83  public int Insert4(long v0, long v1, long v2, long v3) {
84  int ret = operations_research_constraint_solverPINVOKE.IntTupleSet_Insert4(swigCPtr, v0, v1, v2, v3);
85  return ret;
86  }
87 
88  public void InsertAll( long[][] tuples) {
90  tuples.GetLength(0),
91  NestedArrayHelper.GetArraySecondSize(tuples),
92  NestedArrayHelper.GetFlatArray(tuples)
93 );
94  }
95 
96  public void InsertAll(SWIGTYPE_p_std__vectorT_std__vectorT_int_t_t tuples) {
97  operations_research_constraint_solverPINVOKE.IntTupleSet_InsertAll__SWIG_1(swigCPtr, SWIGTYPE_p_std__vectorT_std__vectorT_int_t_t.getCPtr(tuples));
99  }
100 
101  public bool Contains( int[] tuple) {
102  bool ret = operations_research_constraint_solverPINVOKE.IntTupleSet_Contains__SWIG_0(swigCPtr, tuple.Length, tuple );
103  return ret;
104  }
105 
106  public bool Contains( long[] tuple) {
107  bool ret = operations_research_constraint_solverPINVOKE.IntTupleSet_Contains__SWIG_1(swigCPtr, tuple.Length, tuple );
108  return ret;
109  }
110 
111  public int NumTuples() {
113  return ret;
114  }
115 
116  public long Value(int tuple_index, int pos_in_tuple) {
117  long ret = operations_research_constraint_solverPINVOKE.IntTupleSet_Value(swigCPtr, tuple_index, pos_in_tuple);
118  return ret;
119  }
120 
121  public int Arity() {
123  return ret;
124  }
125 
126  public int NumDifferentValuesInColumn(int col) {
128  return ret;
129  }
130 
131  public IntTupleSet SortedByColumn(int col) {
133  return ret;
134  }
135 
138  return ret;
139  }
140 
141 }
142 
143 }
void InsertAll(long[][] tuples)
Definition: IntTupleSet.cs:88
static void IntTupleSet_Clear(global::System.Runtime.InteropServices.HandleRef jarg1)
static void IntTupleSet_InsertAll__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
void InsertAll(SWIGTYPE_p_std__vectorT_std__vectorT_int_t_t tuples)
Definition: IntTupleSet.cs:96
virtual void Dispose(bool disposing)
Definition: IntTupleSet.cs:40
int Insert2(long v0, long v1)
Definition: IntTupleSet.cs:73
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:126
void Dispose()
Definition: IntTupleSet.cs:35
static int IntTupleSet_Insert3(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, long jarg4)
void Clear()
Definition: IntTupleSet.cs:59
static int IntTupleSet_Insert__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, int[] jarg2)
IntTupleSet(IntTupleSet set)
Definition: IntTupleSet.cs:55
int NumTuples()
Definition: IntTupleSet.cs:111
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:83
IntTupleSet SortedLexicographically()
Definition: IntTupleSet.cs:136
static int IntTupleSet_Arity(global::System.Runtime.InteropServices.HandleRef jarg1)
int Insert3(long v0, long v1, long v2)
Definition: IntTupleSet.cs:78
IntTupleSet SortedByColumn(int col)
Definition: IntTupleSet.cs:131
bool Contains(long[] tuple)
Definition: IntTupleSet.cs:106
int Arity()
Definition: IntTupleSet.cs:121
static int IntTupleSet_NumDifferentValuesInColumn(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
int Insert(long[] tuple)
Definition: IntTupleSet.cs:68
int Insert(int[] tuple)
Definition: IntTupleSet.cs:63
static void IntTupleSet_InsertAll__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int len2_1, int[] len2_2, long[] 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:52
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:101
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:116