21 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
25 return (obj ==
null) ?
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero) : obj.swigCPtr;
28 internal static global::System.Runtime.InteropServices.HandleRef swigRelease(TypeIncompatibilityChecker obj) {
31 throw new global::System.ApplicationException(
"Cannot release ownership as memory is not owned");
32 global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
33 obj.swigCMemOwn =
false;
37 return new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
41 protected override void Dispose(
bool disposing) {
43 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
48 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
50 base.Dispose(disposing);
54 public TypeIncompatibilityChecker(RoutingModel model,
bool check_hard_incompatibilities) : this(operations_research_constraint_solverPINVOKE.new_TypeIncompatibilityChecker(RoutingModel.getCPtr(model), check_hard_incompatibilities), true) {
55 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending)
throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();