21 internal RoutingIndexManager(global::System.IntPtr cPtr,
bool cMemoryOwn) {
23 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
26 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(
RoutingIndexManager obj) {
27 return (obj ==
null) ?
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero) : obj.swigCPtr;
30 internal static global::System.Runtime.InteropServices.HandleRef swigRelease(RoutingIndexManager obj) {
33 throw new global::System.ApplicationException(
"Cannot release ownership as memory is not owned");
34 global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
35 obj.swigCMemOwn =
false;
39 return new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
43 ~RoutingIndexManager() {
49 global::System.GC.SuppressFinalize(
this);
52 protected virtual void Dispose(
bool disposing) {
54 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
59 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
64 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) {
67 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) {
103 if (cPtr != global::System.IntPtr.Zero) {
105 long[] outArray =
new long[tmpVector.
Count];
106 tmpVector.
CopyTo(outArray);
113 return operations_research_constraint_solverPINVOKE.RoutingIndexManager_IndexToNode(swigCPtr, index);