DotNet Reference
.Net Reference
RoutingIndexManager.cs
Go to the documentation of this file.
27 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(RoutingIndexManager obj) {
28 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
47 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
52 public RoutingIndexManager(int num_nodes, int num_vehicles, int depot) : this(operations_research_constraint_solverPINVOKE.new_RoutingIndexManager__SWIG_0(num_nodes, num_vehicles, depot), true) {
55 public RoutingIndexManager(int num_nodes, int num_vehicles, int[] starts, int[] ends) : this(operations_research_constraint_solverPINVOKE.new_RoutingIndexManager__SWIG_1(num_nodes, num_vehicles, starts.Length, starts , ends.Length, ends ), true) {
59 int ret = operations_research_constraint_solverPINVOKE.RoutingIndexManager_GetNumberOfNodes(swigCPtr);
64 int ret = operations_research_constraint_solverPINVOKE.RoutingIndexManager_GetNumberOfVehicles(swigCPtr);
69 int ret = operations_research_constraint_solverPINVOKE.RoutingIndexManager_GetNumberOfIndices(swigCPtr);
74 long ret = operations_research_constraint_solverPINVOKE.RoutingIndexManager_NodeToIndex(swigCPtr, node);
79 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingIndexManager_NodesToIndices(swigCPtr, nodes.Length, nodes );
91 return operations_research_constraint_solverPINVOKE.RoutingIndexManager_IndexToNode(swigCPtr, index);
static global::System.IntPtr RoutingIndexManager_NodesToIndices(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, int[] jarg2)
int GetNumberOfNodes()
Definition: RoutingIndexManager.cs:58
long NodeToIndex(int node)
Definition: RoutingIndexManager.cs:73
int IndexToNode(long index)
Definition: RoutingIndexManager.cs:90
static int RoutingIndexManager_GetNumberOfVehicles(global::System.Runtime.InteropServices.HandleRef jarg1)
static int RoutingIndexManager_IndexToNode(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
long[] NodesToIndices(int[] nodes)
Definition: RoutingIndexManager.cs:78
virtual void Dispose(bool disposing)
Definition: RoutingIndexManager.cs:40
RoutingIndexManager(int num_nodes, int num_vehicles, int depot)
Definition: RoutingIndexManager.cs:52
static long RoutingIndexManager_NodeToIndex(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
int GetNumberOfVehicles()
Definition: RoutingIndexManager.cs:63
void CopyTo(long[] array)
Definition: constraint_solver/Int64Vector.cs:113
bool swigCMemOwn
Definition: RoutingIndexManager.cs:20
static void delete_RoutingIndexManager(global::System.Runtime.InteropServices.HandleRef jarg1)
int GetNumberOfIndices()
Definition: RoutingIndexManager.cs:68
RoutingIndexManager(int num_nodes, int num_vehicles, int[] starts, int[] ends)
Definition: RoutingIndexManager.cs:55
static int RoutingIndexManager_GetNumberOfNodes(global::System.Runtime.InteropServices.HandleRef jarg1)
void Dispose()
Definition: RoutingIndexManager.cs:35
int Count
Definition: constraint_solver/Int64Vector.cs:101
static int RoutingIndexManager_GetNumberOfIndices(global::System.Runtime.InteropServices.HandleRef jarg1)