Google OR-Tools v9.9
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
RoutingModelVisitor.java
Go to the documentation of this file.
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (https://www.swig.org).
3 * Version 4.2.0
4 *
5 * Do not make changes to this file unless you know what you are doing - modify
6 * the SWIG interface file instead.
7 * ----------------------------------------------------------------------------- */
8
9package com.google.ortools.constraintsolver;
10
14public class RoutingModelVisitor extends BaseObject {
15 private transient long swigCPtr;
16
17 public RoutingModelVisitor(long cPtr, boolean cMemoryOwn) {
18 super(mainJNI.RoutingModelVisitor_SWIGUpcast(cPtr), cMemoryOwn);
19 swigCPtr = cPtr;
20 }
21
22 public static long getCPtr(RoutingModelVisitor obj) {
23 return (obj == null) ? 0 : obj.swigCPtr;
24 }
25
26 public static long swigRelease(RoutingModelVisitor obj) {
27 long ptr = 0;
28 if (obj != null) {
29 if (!obj.swigCMemOwn)
30 throw new RuntimeException("Cannot release ownership as memory is not owned");
31 ptr = obj.swigCPtr;
32 obj.swigCMemOwn = false;
33 obj.delete();
34 }
35 return ptr;
36 }
37
38 @SuppressWarnings({"deprecation", "removal"})
39 protected void finalize() {
40 delete();
41 }
42
43 public synchronized void delete() {
44 if (swigCPtr != 0) {
45 if (swigCMemOwn) {
46 swigCMemOwn = false;
47 mainJNI.delete_RoutingModelVisitor(swigCPtr);
48 }
49 swigCPtr = 0;
50 }
51 super.delete();
52 }
53
57 public static String getKLightElement() {
58 return mainJNI.RoutingModelVisitor_kLightElement_get();
59 }
60
61 public static String getKLightElement2() {
62 return mainJNI.RoutingModelVisitor_kLightElement2_get();
63 }
64
65 public static String getKRemoveValues() {
66 return mainJNI.RoutingModelVisitor_kRemoveValues_get();
67 }
68
70 this(mainJNI.new_RoutingModelVisitor(), true);
71 }
72
73}