14using System.Collections.Generic;
16public partial class RoutingDimension : global::System.IDisposable {
22 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
25 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(
RoutingDimension obj) {
26 return (obj ==
null) ?
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero) : obj.swigCPtr;
29 internal static global::System.Runtime.InteropServices.HandleRef swigRelease(RoutingDimension obj) {
32 throw new global::System.ApplicationException(
"Cannot release ownership as memory is not owned");
33 global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
34 obj.swigCMemOwn =
false;
38 return new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
48 global::System.GC.SuppressFinalize(
this);
51 protected virtual void Dispose(
bool disposing) {
53 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
58 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
64 private List<IntIntToLong> limitCallbacks;
66 if (limitCallbacks ==
null)
67 limitCallbacks =
new List<IntIntToLong>();
68 limitCallbacks.Add(limit);
72 private List<LongLongToLong> groupDelayCallbacks;
74 if (groupDelayCallbacks ==
null)
75 groupDelayCallbacks =
new List<LongLongToLong>();
76 groupDelayCallbacks.Add(groupDelay);
80 public RoutingModel
Model() {
81 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RoutingDimension_Model(swigCPtr);
86 public long GetTransitValue(
long from_index,
long to_index,
long vehicle) {
98 IntVar ret = (cPtr == global::System.IntPtr.Zero) ?
null : new
IntVar(cPtr, false);
104 IntVar ret = (cPtr == global::System.IntPtr.Zero) ?
null : new
IntVar(cPtr, false);
110 IntVar ret = (cPtr == global::System.IntPtr.Zero) ?
null : new
IntVar(cPtr, false);
116 IntVar ret = (cPtr == global::System.IntPtr.Zero) ?
null : new
IntVar(cPtr, false);
256 public string Name() {