18 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
22 return (obj ==
null) ?
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero) : obj.swigCPtr;
25 internal static global::System.Runtime.InteropServices.HandleRef swigRelease(TypeRegulationsConstraint obj) {
28 throw new global::System.ApplicationException(
"Cannot release ownership as memory is not owned");
29 global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
30 obj.swigCMemOwn =
false;
34 return new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
38 protected override void Dispose(
bool disposing) {
40 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
45 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
47 base.Dispose(disposing);
51 public TypeRegulationsConstraint(RoutingModel model) : this(operations_research_constraint_solverPINVOKE.new_TypeRegulationsConstraint(RoutingModel.getCPtr(model)), true) {
52 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending)
throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
55 public override void Post() {