Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
RoutingModelVisitor.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 RoutingModelVisitor : BaseObject {
15 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
17 internal RoutingModelVisitor(global::System.IntPtr cPtr, bool cMemoryOwn) : base(operations_research_constraint_solverPINVOKE.RoutingModelVisitor_SWIGUpcast(cPtr), cMemoryOwn) {
18 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
19 }
20
21 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(RoutingModelVisitor 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(RoutingModelVisitor 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 static string kLightElement {
52 get {
54 return ret;
55 }
56 }
57
58 public static string kLightElement2 {
59 get {
61 return ret;
62 }
63 }
64
65 public static string kRemoveValues {
66 get {
68 return ret;
69 }
70 }
71
72 public RoutingModelVisitor() : this(operations_research_constraint_solverPINVOKE.new_RoutingModelVisitor(), true) {
73 }
75}
76
77}
static void delete_RoutingModelVisitor(global::System.Runtime.InteropServices.HandleRef jarg1)