DotNet Reference
DotNet Reference
operations_research_graphPINVOKE.cs
Go to the documentation of this file.
20 static ExceptionDelegate applicationDelegate = new ExceptionDelegate(SetPendingApplicationException);
21 static ExceptionDelegate arithmeticDelegate = new ExceptionDelegate(SetPendingArithmeticException);
22 static ExceptionDelegate divideByZeroDelegate = new ExceptionDelegate(SetPendingDivideByZeroException);
23 static ExceptionDelegate indexOutOfRangeDelegate = new ExceptionDelegate(SetPendingIndexOutOfRangeException);
24 static ExceptionDelegate invalidCastDelegate = new ExceptionDelegate(SetPendingInvalidCastException);
25 static ExceptionDelegate invalidOperationDelegate = new ExceptionDelegate(SetPendingInvalidOperationException);
27 static ExceptionDelegate nullReferenceDelegate = new ExceptionDelegate(SetPendingNullReferenceException);
28 static ExceptionDelegate outOfMemoryDelegate = new ExceptionDelegate(SetPendingOutOfMemoryException);
32 static ExceptionArgumentDelegate argumentDelegate = new ExceptionArgumentDelegate(SetPendingArgumentException);
33 static ExceptionArgumentDelegate argumentNullDelegate = new ExceptionArgumentDelegate(SetPendingArgumentNullException);
34 static ExceptionArgumentDelegate argumentOutOfRangeDelegate = new ExceptionArgumentDelegate(SetPendingArgumentOutOfRangeException);
36 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="SWIGRegisterExceptionCallbacks_operations_research_graph")]
50 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="SWIGRegisterExceptionArgumentCallbacks_operations_research_graph")]
57 SWIGPendingException.Set(new global::System.ApplicationException(message, SWIGPendingException.Retrieve()));
60 SWIGPendingException.Set(new global::System.ArithmeticException(message, SWIGPendingException.Retrieve()));
63 SWIGPendingException.Set(new global::System.DivideByZeroException(message, SWIGPendingException.Retrieve()));
66 SWIGPendingException.Set(new global::System.IndexOutOfRangeException(message, SWIGPendingException.Retrieve()));
69 SWIGPendingException.Set(new global::System.InvalidCastException(message, SWIGPendingException.Retrieve()));
72 SWIGPendingException.Set(new global::System.InvalidOperationException(message, SWIGPendingException.Retrieve()));
75 SWIGPendingException.Set(new global::System.IO.IOException(message, SWIGPendingException.Retrieve()));
78 SWIGPendingException.Set(new global::System.NullReferenceException(message, SWIGPendingException.Retrieve()));
81 SWIGPendingException.Set(new global::System.OutOfMemoryException(message, SWIGPendingException.Retrieve()));
84 SWIGPendingException.Set(new global::System.OverflowException(message, SWIGPendingException.Retrieve()));
87 SWIGPendingException.Set(new global::System.SystemException(message, SWIGPendingException.Retrieve()));
91 SWIGPendingException.Set(new global::System.ArgumentException(message, paramName, SWIGPendingException.Retrieve()));
145 throw new global::System.ApplicationException("FATAL: An earlier pending exception from unmanaged code was missed and thus not thrown (" + pendingException.ToString() + ")", e);
177 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="SWIGRegisterStringCallback_operations_research_graph")]
178 public static extern void SWIGRegisterStringCallback_operations_research_graph(SWIGStringDelegate stringDelegate);
196 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="CSharp_GooglefOrToolsfGraph_new_MaxFlow___")]
199 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="CSharp_GooglefOrToolsfGraph_MaxFlow_AddArcWithCapacity___")]
200 public static extern int MaxFlow_AddArcWithCapacity(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3, long jarg4);
202 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="CSharp_GooglefOrToolsfGraph_MaxFlow_NumNodes___")]
203 public static extern int MaxFlow_NumNodes(global::System.Runtime.InteropServices.HandleRef jarg1);
205 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="CSharp_GooglefOrToolsfGraph_MaxFlow_NumArcs___")]
206 public static extern int MaxFlow_NumArcs(global::System.Runtime.InteropServices.HandleRef jarg1);
208 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="CSharp_GooglefOrToolsfGraph_MaxFlow_Tail___")]
209 public static extern int MaxFlow_Tail(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
211 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="CSharp_GooglefOrToolsfGraph_MaxFlow_Head___")]
212 public static extern int MaxFlow_Head(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
214 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="CSharp_GooglefOrToolsfGraph_MaxFlow_Capacity___")]
215 public static extern long MaxFlow_Capacity(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
217 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="CSharp_GooglefOrToolsfGraph_MaxFlow_Solve___")]
218 public static extern int MaxFlow_Solve(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3);
220 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="CSharp_GooglefOrToolsfGraph_MaxFlow_OptimalFlow___")]
221 public static extern long MaxFlow_OptimalFlow(global::System.Runtime.InteropServices.HandleRef jarg1);
223 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="CSharp_GooglefOrToolsfGraph_MaxFlow_Flow___")]
224 public static extern long MaxFlow_Flow(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
226 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="CSharp_GooglefOrToolsfGraph_delete_MaxFlow___")]
227 public static extern void delete_MaxFlow(global::System.Runtime.InteropServices.HandleRef jarg1);
229 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="CSharp_GooglefOrToolsfGraph_new_MinCostFlowBase___")]
232 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="CSharp_GooglefOrToolsfGraph_delete_MinCostFlowBase___")]
233 public static extern void delete_MinCostFlowBase(global::System.Runtime.InteropServices.HandleRef jarg1);
235 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="CSharp_GooglefOrToolsfGraph_new_MinCostFlow__SWIG_0___")]
238 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="CSharp_GooglefOrToolsfGraph_new_MinCostFlow__SWIG_1___")]
241 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="CSharp_GooglefOrToolsfGraph_new_MinCostFlow__SWIG_2___")]
244 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="CSharp_GooglefOrToolsfGraph_MinCostFlow_AddArcWithCapacityAndUnitCost___")]
245 public static extern int MinCostFlow_AddArcWithCapacityAndUnitCost(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3, long jarg4, long jarg5);
247 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="CSharp_GooglefOrToolsfGraph_MinCostFlow_SetNodeSupply___")]
248 public static extern void MinCostFlow_SetNodeSupply(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, long jarg3);
250 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="CSharp_GooglefOrToolsfGraph_MinCostFlow_Solve___")]
251 public static extern int MinCostFlow_Solve(global::System.Runtime.InteropServices.HandleRef jarg1);
253 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="CSharp_GooglefOrToolsfGraph_MinCostFlow_SolveMaxFlowWithMinCost___")]
254 public static extern int MinCostFlow_SolveMaxFlowWithMinCost(global::System.Runtime.InteropServices.HandleRef jarg1);
256 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="CSharp_GooglefOrToolsfGraph_MinCostFlow_OptimalCost___")]
257 public static extern long MinCostFlow_OptimalCost(global::System.Runtime.InteropServices.HandleRef jarg1);
259 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="CSharp_GooglefOrToolsfGraph_MinCostFlow_MaximumFlow___")]
260 public static extern long MinCostFlow_MaximumFlow(global::System.Runtime.InteropServices.HandleRef jarg1);
262 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="CSharp_GooglefOrToolsfGraph_MinCostFlow_Flow___")]
263 public static extern long MinCostFlow_Flow(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
265 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="CSharp_GooglefOrToolsfGraph_MinCostFlow_NumNodes___")]
266 public static extern int MinCostFlow_NumNodes(global::System.Runtime.InteropServices.HandleRef jarg1);
268 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="CSharp_GooglefOrToolsfGraph_MinCostFlow_NumArcs___")]
269 public static extern int MinCostFlow_NumArcs(global::System.Runtime.InteropServices.HandleRef jarg1);
271 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="CSharp_GooglefOrToolsfGraph_MinCostFlow_Tail___")]
272 public static extern int MinCostFlow_Tail(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
274 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="CSharp_GooglefOrToolsfGraph_MinCostFlow_Head___")]
275 public static extern int MinCostFlow_Head(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
277 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="CSharp_GooglefOrToolsfGraph_MinCostFlow_Capacity___")]
278 public static extern long MinCostFlow_Capacity(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
280 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="CSharp_GooglefOrToolsfGraph_MinCostFlow_Supply___")]
281 public static extern long MinCostFlow_Supply(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
283 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="CSharp_GooglefOrToolsfGraph_MinCostFlow_UnitCost___")]
284 public static extern long MinCostFlow_UnitCost(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
286 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="CSharp_GooglefOrToolsfGraph_delete_MinCostFlow___")]
287 public static extern void delete_MinCostFlow(global::System.Runtime.InteropServices.HandleRef jarg1);
289 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="CSharp_GooglefOrToolsfGraph_new_LinearSumAssignment___")]
292 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="CSharp_GooglefOrToolsfGraph_LinearSumAssignment_AddArcWithCost___")]
293 public static extern int LinearSumAssignment_AddArcWithCost(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3, long jarg4);
295 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="CSharp_GooglefOrToolsfGraph_LinearSumAssignment_NumNodes___")]
296 public static extern int LinearSumAssignment_NumNodes(global::System.Runtime.InteropServices.HandleRef jarg1);
298 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="CSharp_GooglefOrToolsfGraph_LinearSumAssignment_NumArcs___")]
299 public static extern int LinearSumAssignment_NumArcs(global::System.Runtime.InteropServices.HandleRef jarg1);
301 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="CSharp_GooglefOrToolsfGraph_LinearSumAssignment_LeftNode___")]
302 public static extern int LinearSumAssignment_LeftNode(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
304 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="CSharp_GooglefOrToolsfGraph_LinearSumAssignment_RightNode___")]
305 public static extern int LinearSumAssignment_RightNode(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
307 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="CSharp_GooglefOrToolsfGraph_LinearSumAssignment_Cost___")]
308 public static extern long LinearSumAssignment_Cost(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
310 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="CSharp_GooglefOrToolsfGraph_LinearSumAssignment_Solve___")]
311 public static extern int LinearSumAssignment_Solve(global::System.Runtime.InteropServices.HandleRef jarg1);
313 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="CSharp_GooglefOrToolsfGraph_LinearSumAssignment_OptimalCost___")]
314 public static extern long LinearSumAssignment_OptimalCost(global::System.Runtime.InteropServices.HandleRef jarg1);
316 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="CSharp_GooglefOrToolsfGraph_LinearSumAssignment_RightMate___")]
317 public static extern int LinearSumAssignment_RightMate(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
319 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="CSharp_GooglefOrToolsfGraph_LinearSumAssignment_AssignmentCost___")]
320 public static extern long LinearSumAssignment_AssignmentCost(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
322 [global::System.Runtime.InteropServices.DllImport("google-ortools-native", EntryPoint="CSharp_GooglefOrToolsfGraph_delete_LinearSumAssignment___")]
323 public static extern void delete_LinearSumAssignment(global::System.Runtime.InteropServices.HandleRef jarg1);
static global::System.IntPtr new_MinCostFlow__SWIG_0(int jarg1, int jarg2)
static int MinCostFlow_Solve(global::System.Runtime.InteropServices.HandleRef jarg1)
Definition: LinearSumAssignment.cs:11
static int MinCostFlow_Tail(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void SWIGRegisterExceptionCallbacks_operations_research_graph(ExceptionDelegate applicationDelegate, ExceptionDelegate arithmeticDelegate, ExceptionDelegate divideByZeroDelegate, ExceptionDelegate indexOutOfRangeDelegate, ExceptionDelegate invalidCastDelegate, ExceptionDelegate invalidOperationDelegate, ExceptionDelegate ioDelegate, ExceptionDelegate nullReferenceDelegate, ExceptionDelegate outOfMemoryDelegate, ExceptionDelegate overflowDelegate, ExceptionDelegate systemExceptionDelegate)
static SWIGExceptionHelper swigExceptionHelper
Definition: operations_research_graphPINVOKE.cs:125
Definition: operations_research_graphPINVOKE.cs:127
static long MaxFlow_OptimalFlow(global::System.Runtime.InteropServices.HandleRef jarg1)
static int MinCostFlow_NumArcs(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.Exception Retrieve()
Definition: operations_research_graphPINVOKE.cs:152
static int MinCostFlow_SolveMaxFlowWithMinCost(global::System.Runtime.InteropServices.HandleRef jarg1)
Definition: operations_research_graphPINVOKE.cs:172
static int MinCostFlow_AddArcWithCapacityAndUnitCost(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3, long jarg4, long jarg5)
static int LinearSumAssignment_RightNode(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void Set(global::System.Exception e)
Definition: operations_research_graphPINVOKE.cs:143
static long MinCostFlow_Supply(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static int LinearSumAssignment_Solve(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_MinCostFlow(global::System.Runtime.InteropServices.HandleRef jarg1)
static int LinearSumAssignment_NumArcs(global::System.Runtime.InteropServices.HandleRef jarg1)
static int MaxFlow_Solve(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
delegate string SWIGStringDelegate(string message)
static int MaxFlow_Tail(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void SWIGRegisterStringCallback_operations_research_graph(SWIGStringDelegate stringDelegate)
static SWIGStringHelper swigStringHelper
Definition: operations_research_graphPINVOKE.cs:189
static void SWIGRegisterExceptionCallbacksArgument_operations_research_graph(ExceptionArgumentDelegate argumentDelegate, ExceptionArgumentDelegate argumentNullDelegate, ExceptionArgumentDelegate argumentOutOfRangeDelegate)
static long MaxFlow_Flow(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static long MinCostFlow_MaximumFlow(global::System.Runtime.InteropServices.HandleRef jarg1)
static long LinearSumAssignment_AssignmentCost(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static long LinearSumAssignment_Cost(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static int LinearSumAssignment_LeftNode(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static int MaxFlow_Head(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static global::System.IntPtr new_MinCostFlow__SWIG_2()
static int MinCostFlow_NumNodes(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr new_MinCostFlow__SWIG_1(int jarg1)
static void MinCostFlow_SetNodeSupply(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, long jarg3)
static void delete_MaxFlow(global::System.Runtime.InteropServices.HandleRef jarg1)
delegate void ExceptionArgumentDelegate(string message, string paramName)
static int MinCostFlow_Head(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static long MinCostFlow_UnitCost(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static bool Pending
Definition: operations_research_graphPINVOKE.cs:133
delegate void ExceptionDelegate(string message)
static int MaxFlow_NumNodes(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr new_MinCostFlowBase()
static long MinCostFlow_Flow(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static int MaxFlow_AddArcWithCapacity(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3, long jarg4)
static long MinCostFlow_Capacity(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static long MaxFlow_Capacity(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static int LinearSumAssignment_NumNodes(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr new_MaxFlow()
static int LinearSumAssignment_AddArcWithCost(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3, long jarg4)
static int MaxFlow_NumArcs(global::System.Runtime.InteropServices.HandleRef jarg1)
Definition: operations_research_graphPINVOKE.cs:13
static void delete_MinCostFlowBase(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr MinCostFlow_SWIGUpcast(global::System.IntPtr jarg1)
static void delete_LinearSumAssignment(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr new_LinearSumAssignment()
Definition: operations_research_graphPINVOKE.cs:15
static long MinCostFlow_OptimalCost(global::System.Runtime.InteropServices.HandleRef jarg1)
static int LinearSumAssignment_RightMate(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static long LinearSumAssignment_OptimalCost(global::System.Runtime.InteropServices.HandleRef jarg1)