36 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"SWIGRegisterExceptionCallbacks_operations_research_util")]
50 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"SWIGRegisterExceptionArgumentCallbacks_operations_research_util")]
56 static void SetPendingApplicationException(
string message) {
59 static void SetPendingArithmeticException(
string message) {
62 static void SetPendingDivideByZeroException(
string message) {
63 SWIGPendingException.Set(
new global::System.DivideByZeroException(message, SWIGPendingException.Retrieve()));
65 static void SetPendingIndexOutOfRangeException(
string message) {
66 SWIGPendingException.Set(
new global::System.IndexOutOfRangeException(message, SWIGPendingException.Retrieve()));
68 static void SetPendingInvalidCastException(
string message) {
69 SWIGPendingException.Set(
new global::System.InvalidCastException(message, SWIGPendingException.Retrieve()));
71 static void SetPendingInvalidOperationException(
string message) {
72 SWIGPendingException.Set(
new global::System.InvalidOperationException(message, SWIGPendingException.Retrieve()));
74 static void SetPendingIOException(
string message) {
75 SWIGPendingException.Set(
new global::System.IO.IOException(message, SWIGPendingException.Retrieve()));
77 static void SetPendingNullReferenceException(
string message) {
78 SWIGPendingException.Set(
new global::System.NullReferenceException(message, SWIGPendingException.Retrieve()));
80 static void SetPendingOutOfMemoryException(
string message) {
81 SWIGPendingException.Set(
new global::System.OutOfMemoryException(message, SWIGPendingException.Retrieve()));
83 static void SetPendingOverflowException(
string message) {
84 SWIGPendingException.Set(
new global::System.OverflowException(message, SWIGPendingException.Retrieve()));
86 static void SetPendingSystemException(
string message) {
87 SWIGPendingException.Set(
new global::System.SystemException(message, SWIGPendingException.Retrieve()));
90 static void SetPendingArgumentException(
string message,
string paramName) {
91 SWIGPendingException.Set(
new global::System.ArgumentException(message, paramName, SWIGPendingException.Retrieve()));
93 static void SetPendingArgumentNullException(
string message,
string paramName) {
94 global::System.Exception e = SWIGPendingException.Retrieve();
95 if (e !=
null) message = message +
" Inner Exception: " + e.Message;
96 SWIGPendingException.Set(
new global::System.ArgumentNullException(paramName, message));
98 static void SetPendingArgumentOutOfRangeException(
string message,
string paramName) {
99 global::System.Exception e = SWIGPendingException.Retrieve();
100 if (e !=
null) message = message +
" Inner Exception: " + e.Message;
101 SWIGPendingException.Set(
new global::System.ArgumentOutOfRangeException(paramName, message));
104 static SWIGExceptionHelper() {
108 divideByZeroDelegate,
109 indexOutOfRangeDelegate,
111 invalidOperationDelegate,
113 nullReferenceDelegate,
120 argumentNullDelegate,
121 argumentOutOfRangeDelegate);
128 [global::System.ThreadStatic]
129 private static global::System.Exception pendingException =
null;
130 private static int numExceptionsPending = 0;
131 private static global::System.Object exceptionsLock =
null;
135 bool pending =
false;
136 if (numExceptionsPending > 0)
137 if (pendingException !=
null)
143 public static void Set(global::System.Exception e) {
144 if (pendingException !=
null)
145 throw new global::System.ApplicationException(
"FATAL: An earlier pending exception from unmanaged code was missed and thus not thrown (" + pendingException.ToString() +
")", e);
146 pendingException = e;
147 lock(exceptionsLock) {
148 numExceptionsPending++;
152 public static global::System.Exception
Retrieve() {
153 global::System.Exception e =
null;
154 if (numExceptionsPending > 0) {
155 if (pendingException !=
null) {
156 e = pendingException;
157 pendingException =
null;
158 lock(exceptionsLock) {
159 numExceptionsPending--;
166 static SWIGPendingException() {
167 exceptionsLock =
new global::System.Object();
172 protected class SWIGStringHelper {
177 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"SWIGRegisterStringCallback_operations_research_util")]
180 static string CreateString(
string cString) {
189 static protected SWIGStringHelper
swigStringHelper =
new SWIGStringHelper();
196 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_new_Int64Vector__SWIG_0___")]
199 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_new_Int64Vector__SWIG_1___")]
200 public static extern global::System.IntPtr
new_Int64Vector__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1);
202 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Int64Vector_Clear___")]
203 public static extern void Int64Vector_Clear(global::System.Runtime.InteropServices.HandleRef jarg1);
205 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Int64Vector_Add___")]
206 public static extern void Int64Vector_Add(global::System.Runtime.InteropServices.HandleRef jarg1,
long jarg2);
208 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Int64Vector_size___")]
209 public static extern uint
Int64Vector_size(global::System.Runtime.InteropServices.HandleRef jarg1);
211 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Int64Vector_empty___")]
212 public static extern bool Int64Vector_empty(global::System.Runtime.InteropServices.HandleRef jarg1);
214 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Int64Vector_capacity___")]
215 public static extern uint
Int64Vector_capacity(global::System.Runtime.InteropServices.HandleRef jarg1);
217 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Int64Vector_reserve___")]
218 public static extern void Int64Vector_reserve(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2);
220 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_new_Int64Vector__SWIG_2___")]
223 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Int64Vector_getitemcopy___")]
224 public static extern long Int64Vector_getitemcopy(global::System.Runtime.InteropServices.HandleRef jarg1,
int jarg2);
226 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Int64Vector_getitem___")]
227 public static extern long Int64Vector_getitem(global::System.Runtime.InteropServices.HandleRef jarg1,
int jarg2);
229 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Int64Vector_setitem___")]
230 public static extern void Int64Vector_setitem(global::System.Runtime.InteropServices.HandleRef jarg1,
int jarg2,
long jarg3);
232 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Int64Vector_AddRange___")]
233 public static extern void Int64Vector_AddRange(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
235 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Int64Vector_GetRange___")]
236 public static extern global::System.IntPtr
Int64Vector_GetRange(global::System.Runtime.InteropServices.HandleRef jarg1,
int jarg2,
int jarg3);
238 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Int64Vector_Insert___")]
239 public static extern void Int64Vector_Insert(global::System.Runtime.InteropServices.HandleRef jarg1,
int jarg2,
long jarg3);
241 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Int64Vector_InsertRange___")]
242 public static extern void Int64Vector_InsertRange(global::System.Runtime.InteropServices.HandleRef jarg1,
int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
244 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Int64Vector_RemoveAt___")]
245 public static extern void Int64Vector_RemoveAt(global::System.Runtime.InteropServices.HandleRef jarg1,
int jarg2);
247 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Int64Vector_RemoveRange___")]
248 public static extern void Int64Vector_RemoveRange(global::System.Runtime.InteropServices.HandleRef jarg1,
int jarg2,
int jarg3);
250 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Int64Vector_Repeat___")]
253 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Int64Vector_Reverse__SWIG_0___")]
256 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Int64Vector_Reverse__SWIG_1___")]
257 public static extern void Int64Vector_Reverse__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1,
int jarg2,
int jarg3);
259 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Int64Vector_SetRange___")]
260 public static extern void Int64Vector_SetRange(global::System.Runtime.InteropServices.HandleRef jarg1,
int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
262 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Int64Vector_Contains___")]
263 public static extern bool Int64Vector_Contains(global::System.Runtime.InteropServices.HandleRef jarg1,
long jarg2);
265 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Int64Vector_IndexOf___")]
266 public static extern int Int64Vector_IndexOf(global::System.Runtime.InteropServices.HandleRef jarg1,
long jarg2);
268 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Int64Vector_LastIndexOf___")]
269 public static extern int Int64Vector_LastIndexOf(global::System.Runtime.InteropServices.HandleRef jarg1,
long jarg2);
271 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Int64Vector_Remove___")]
272 public static extern bool Int64Vector_Remove(global::System.Runtime.InteropServices.HandleRef jarg1,
long jarg2);
274 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_delete_Int64Vector___")]
275 public static extern void delete_Int64Vector(global::System.Runtime.InteropServices.HandleRef jarg1);
277 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_new_Int64VectorVector__SWIG_0___")]
280 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_new_Int64VectorVector__SWIG_1___")]
283 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Int64VectorVector_Clear___")]
286 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Int64VectorVector_Add___")]
287 public static extern void Int64VectorVector_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
289 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Int64VectorVector_size___")]
292 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Int64VectorVector_empty___")]
295 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Int64VectorVector_capacity___")]
298 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Int64VectorVector_reserve___")]
301 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_new_Int64VectorVector__SWIG_2___")]
304 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Int64VectorVector_getitemcopy___")]
307 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Int64VectorVector_getitem___")]
308 public static extern global::System.IntPtr
Int64VectorVector_getitem(global::System.Runtime.InteropServices.HandleRef jarg1,
int jarg2);
310 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Int64VectorVector_setitem___")]
311 public static extern void Int64VectorVector_setitem(global::System.Runtime.InteropServices.HandleRef jarg1,
int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
313 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Int64VectorVector_AddRange___")]
314 public static extern void Int64VectorVector_AddRange(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
316 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Int64VectorVector_GetRange___")]
317 public static extern global::System.IntPtr
Int64VectorVector_GetRange(global::System.Runtime.InteropServices.HandleRef jarg1,
int jarg2,
int jarg3);
319 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Int64VectorVector_Insert___")]
320 public static extern void Int64VectorVector_Insert(global::System.Runtime.InteropServices.HandleRef jarg1,
int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
322 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Int64VectorVector_InsertRange___")]
323 public static extern void Int64VectorVector_InsertRange(global::System.Runtime.InteropServices.HandleRef jarg1,
int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
325 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Int64VectorVector_RemoveAt___")]
328 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Int64VectorVector_RemoveRange___")]
331 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Int64VectorVector_Repeat___")]
332 public static extern global::System.IntPtr
Int64VectorVector_Repeat(global::System.Runtime.InteropServices.HandleRef jarg1,
int jarg2);
334 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Int64VectorVector_Reverse__SWIG_0___")]
337 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Int64VectorVector_Reverse__SWIG_1___")]
340 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Int64VectorVector_SetRange___")]
341 public static extern void Int64VectorVector_SetRange(global::System.Runtime.InteropServices.HandleRef jarg1,
int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
343 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_delete_Int64VectorVector___")]
346 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_new_Domain__SWIG_0___")]
349 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_new_Domain__SWIG_1___")]
352 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_new_Domain__SWIG_2___")]
353 public static extern global::System.IntPtr
new_Domain__SWIG_2(
long jarg1,
long jarg2);
355 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Domain_AllValues___")]
358 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Domain_FromValues___")]
359 public static extern global::System.IntPtr
Domain_FromValues(
int length1,
long[] jarg1);
361 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Domain_FromIntervals___")]
363 int len1_1,
int[] len1_2,
long[]
366 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Domain_FromFlatIntervals___")]
369 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Domain_FlattenedIntervals___")]
370 public static extern global::System.IntPtr
Domain_FlattenedIntervals(global::System.Runtime.InteropServices.HandleRef jarg1);
372 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Domain_IsEmpty___")]
373 public static extern bool Domain_IsEmpty(global::System.Runtime.InteropServices.HandleRef jarg1);
375 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Domain_Size___")]
376 public static extern long Domain_Size(global::System.Runtime.InteropServices.HandleRef jarg1);
378 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Domain_Min___")]
379 public static extern long Domain_Min(global::System.Runtime.InteropServices.HandleRef jarg1);
381 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Domain_Max___")]
382 public static extern long Domain_Max(global::System.Runtime.InteropServices.HandleRef jarg1);
384 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Domain_Contains___")]
385 public static extern bool Domain_Contains(global::System.Runtime.InteropServices.HandleRef jarg1,
long jarg2);
387 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Domain_Complement___")]
388 public static extern global::System.IntPtr
Domain_Complement(global::System.Runtime.InteropServices.HandleRef jarg1);
390 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Domain_Negation___")]
391 public static extern global::System.IntPtr
Domain_Negation(global::System.Runtime.InteropServices.HandleRef jarg1);
393 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Domain_IntersectionWith___")]
394 public static extern global::System.IntPtr
Domain_IntersectionWith(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
396 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Domain_UnionWith___")]
397 public static extern global::System.IntPtr
Domain_UnionWith(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
399 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Domain_AdditionWith___")]
400 public static extern global::System.IntPtr
Domain_AdditionWith(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
402 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_Domain_ToString___")]
403 public static extern string Domain_ToString(global::System.Runtime.InteropServices.HandleRef jarg1);
405 [global::System.Runtime.InteropServices.DllImport(
"google-ortools-native", EntryPoint=
"CSharp_GooglefOrToolsfUtil_delete_Domain___")]
406 public static extern void delete_Domain(global::System.Runtime.InteropServices.HandleRef jarg1);