Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
TypeRegulationsConstraint.cs
Go to the documentation of this file.
1//------------------------------------------------------------------------------
2// <auto-generated />
3//
4// This file was automatically generated by SWIG (https://www.swig.org).
5// Version 4.3.0
6//
7// Do not make changes to this file unless you know what you are doing - modify
8// the SWIG interface file instead.
9//------------------------------------------------------------------------------
10
12
13
14public partial class TypeRegulationsConstraint : Constraint {
15 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
17 internal TypeRegulationsConstraint(global::System.IntPtr cPtr, bool cMemoryOwn) : base(operations_research_constraint_solverPINVOKE.TypeRegulationsConstraint_SWIGUpcast(cPtr), cMemoryOwn) {
18 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
19 }
20
21 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TypeRegulationsConstraint obj) {
22 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
23 }
24
25 internal static global::System.Runtime.InteropServices.HandleRef swigRelease(TypeRegulationsConstraint obj) {
26 if (obj != null) {
27 if (!obj.swigCMemOwn)
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;
31 obj.Dispose();
32 return ptr;
33 } else {
34 return new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
35 }
36 }
37
38 protected override void Dispose(bool disposing) {
39 lock(this) {
40 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
41 if (swigCMemOwn) {
42 swigCMemOwn = false;
44 }
45 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
46 }
47 base.Dispose(disposing);
48 }
49 }
50
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();
53 }
54
55 public override void Post() {
57 }
58
59 public override void InitialPropagateWrapper() {
61 }
62
63}
64
65}
static void delete_TypeRegulationsConstraint(global::System.Runtime.InteropServices.HandleRef jarg1)
static void TypeRegulationsConstraint_InitialPropagateWrapper(global::System.Runtime.InteropServices.HandleRef jarg1)
static void TypeRegulationsConstraint_Post(global::System.Runtime.InteropServices.HandleRef jarg1)