DotNet Reference

.Net 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.2
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
13using System;
14using System.Runtime.InteropServices;
15using System.Collections;
16using System.Collections.Generic;
17
18public 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( int[][] tuples) {
98 tuples.GetLength(0),
99 NestedArrayHelper.GetArraySecondSize(tuples),
100 NestedArrayHelper.GetFlatArray(tuples)
101);
102 }
103
104 public bool Contains( int[] tuple) {
105 bool ret = operations_research_constraint_solverPINVOKE.IntTupleSet_Contains__SWIG_0(swigCPtr, tuple.Length, tuple );
106 return ret;
107 }
108
109 public bool Contains( long[] tuple) {
110 bool ret = operations_research_constraint_solverPINVOKE.IntTupleSet_Contains__SWIG_1(swigCPtr, tuple.Length, tuple );
111 return ret;
112 }
113
114 public int NumTuples() {
116 return ret;
117 }
118
119 public long Value(int tuple_index, int pos_in_tuple) {
120 long ret = operations_research_constraint_solverPINVOKE.IntTupleSet_Value(swigCPtr, tuple_index, pos_in_tuple);
121 return ret;
122 }
123
124 public int Arity() {
126 return ret;
127 }
128
129 public int NumDifferentValuesInColumn(int col) {
131 return ret;
132 }
133
134 public IntTupleSet SortedByColumn(int col) {
136 return ret;
137 }
138
141 return ret;
142 }
143
144}
145
146}
virtual void Dispose(bool disposing)
Definition: IntTupleSet.cs:40
int Insert4(long v0, long v1, long v2, long v3)
Definition: IntTupleSet.cs:83
int Insert3(long v0, long v1, long v2)
Definition: IntTupleSet.cs:78
long Value(int tuple_index, int pos_in_tuple)
Definition: IntTupleSet.cs:119
static bool IntTupleSet_Contains__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, int[] jarg2)
static void IntTupleSet_Clear(global::System.Runtime.InteropServices.HandleRef jarg1)
static void IntTupleSet_InsertAll__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int len2_1, int[] len2_2, int[] jarg2)
static int IntTupleSet_NumTuples(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_IntTupleSet(global::System.Runtime.InteropServices.HandleRef jarg1)
static int IntTupleSet_Insert3(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, long jarg4)
static global::System.IntPtr IntTupleSet_SortedLexicographically(global::System.Runtime.InteropServices.HandleRef jarg1)
static int IntTupleSet_NumDifferentValuesInColumn(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static bool IntTupleSet_Contains__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, long[] jarg2)
static int IntTupleSet_Insert__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, long[] jarg2)
static int IntTupleSet_Insert4(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, long jarg4, long jarg5)
static global::System.IntPtr IntTupleSet_SortedByColumn(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static int IntTupleSet_Insert2(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3)
static void IntTupleSet_InsertAll__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int len2_1, int[] len2_2, long[] jarg2)
static long IntTupleSet_Value(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
static int IntTupleSet_Arity(global::System.Runtime.InteropServices.HandleRef jarg1)
static int IntTupleSet_Insert__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, int[] jarg2)