DotNet Reference

.Net Reference

LinearSumAssignment.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 
13 public class LinearSumAssignment : global::System.IDisposable {
14  private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15  protected bool swigCMemOwn;
16 
17  internal LinearSumAssignment(global::System.IntPtr cPtr, bool cMemoryOwn) {
18  swigCMemOwn = cMemoryOwn;
19  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
20  }
21 
22  internal static global::System.Runtime.InteropServices.HandleRef getCPtr(LinearSumAssignment obj) {
23  return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
24  }
25 
27  Dispose(false);
28  }
29 
30  public void Dispose() {
31  Dispose(true);
32  global::System.GC.SuppressFinalize(this);
33  }
34 
35  protected virtual void Dispose(bool disposing) {
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  }
45  }
46 
47  public LinearSumAssignment() : this(operations_research_graphPINVOKE.new_LinearSumAssignment(), true) {
48  }
49 
50  public int AddArcWithCost(int left_node, int right_node, long cost) {
51  int ret = operations_research_graphPINVOKE.LinearSumAssignment_AddArcWithCost(swigCPtr, left_node, right_node, cost);
52  return ret;
53  }
54 
55  public int NumNodes() {
57  return ret;
58  }
59 
60  public int NumArcs() {
62  return ret;
63  }
64 
65  public int LeftNode(int arc) {
67  return ret;
68  }
69 
70  public int RightNode(int arc) {
72  return ret;
73  }
74 
75  public long Cost(int arc) {
77  return ret;
78  }
79 
82  return ret;
83  }
84 
85  public long OptimalCost() {
87  return ret;
88  }
89 
90  public int RightMate(int left_node) {
92  return ret;
93  }
94 
95  public long AssignmentCost(int left_node) {
97  return ret;
98  }
99 
100  public enum Status {
101  OPTIMAL,
102  INFEASIBLE,
103  POSSIBLE_OVERFLOW
104  }
105 
106 }
107 
108 }
long OptimalCost()
long AssignmentCost(int left_node)
int AddArcWithCost(int left_node, int right_node, long cost)
int LeftNode(int arc)
static int LinearSumAssignment_RightNode(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static int LinearSumAssignment_Solve(global::System.Runtime.InteropServices.HandleRef jarg1)
static int LinearSumAssignment_NumArcs(global::System.Runtime.InteropServices.HandleRef jarg1)
int RightNode(int arc)
using System
Definition: Program.cs:14
static long LinearSumAssignment_AssignmentCost(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static long LinearSumAssignment_Cost(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
LinearSumAssignment.Status Solve()
static int LinearSumAssignment_LeftNode(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
bool swigCMemOwn
virtual void Dispose(bool disposing)
Status
long Cost(int arc)
LinearSumAssignment()
int NumArcs()
int NumNodes()
static int LinearSumAssignment_NumNodes(global::System.Runtime.InteropServices.HandleRef jarg1)
static int LinearSumAssignment_AddArcWithCost(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3, long jarg4)
int RightMate(int left_node)
static void delete_LinearSumAssignment(global::System.Runtime.InteropServices.HandleRef jarg1)
void Dispose()
static int LinearSumAssignment_RightMate(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static long LinearSumAssignment_OptimalCost(global::System.Runtime.InteropServices.HandleRef jarg1)