Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
CppFlags.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.1
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.init;
10
14public class CppFlags {
15 private transient long swigCPtr;
16 protected transient boolean swigCMemOwn;
17
18 protected CppFlags(long cPtr, boolean cMemoryOwn) {
19 swigCMemOwn = cMemoryOwn;
20 swigCPtr = cPtr;
21 }
22
23 protected static long getCPtr(CppFlags obj) {
24 return (obj == null) ? 0 : obj.swigCPtr;
25 }
26
27 protected static long swigRelease(CppFlags obj) {
28 long ptr = 0;
29 if (obj != null) {
30 if (!obj.swigCMemOwn)
31 throw new RuntimeException("Cannot release ownership as memory is not owned");
32 ptr = obj.swigCPtr;
33 obj.swigCMemOwn = false;
34 obj.delete();
35 }
36 return ptr;
37 }
38
39 @SuppressWarnings({"deprecation", "removal"})
40 protected void finalize() {
41 delete();
42 }
43
44 public synchronized void delete() {
45 if (swigCPtr != 0) {
46 if (swigCMemOwn) {
47 swigCMemOwn = false;
48 mainJNI.delete_CppFlags(swigCPtr);
49 }
50 swigCPtr = 0;
51 }
52 }
53
61 public void setStderrthreshold(int value) {
62 mainJNI.CppFlags_stderrthreshold_set(swigCPtr, this, value);
63 }
64
72 public int getStderrthreshold() {
73 return mainJNI.CppFlags_stderrthreshold_get(swigCPtr, this);
74 }
75
80 public void setLog_prefix(boolean value) {
81 mainJNI.CppFlags_log_prefix_set(swigCPtr, this, value);
82 }
83
88 public boolean getLog_prefix() {
89 return mainJNI.CppFlags_log_prefix_get(swigCPtr, this);
90 }
91
95 public void setCp_model_dump_prefix(String value) {
96 mainJNI.CppFlags_cp_model_dump_prefix_set(swigCPtr, this, value);
97 }
98
102 public String getCp_model_dump_prefix() {
103 return mainJNI.CppFlags_cp_model_dump_prefix_get(swigCPtr, this);
104 }
105
113 public void setCp_model_dump_models(boolean value) {
114 mainJNI.CppFlags_cp_model_dump_models_set(swigCPtr, this, value);
115 }
116
124 public boolean getCp_model_dump_models() {
125 return mainJNI.CppFlags_cp_model_dump_models_get(swigCPtr, this);
126 }
127
134 public void setCp_model_dump_submodels(boolean value) {
135 mainJNI.CppFlags_cp_model_dump_submodels_set(swigCPtr, this, value);
136 }
137
144 public boolean getCp_model_dump_submodels() {
145 return mainJNI.CppFlags_cp_model_dump_submodels_get(swigCPtr, this);
146 }
147
154 public void setCp_model_dump_response(boolean value) {
155 mainJNI.CppFlags_cp_model_dump_response_set(swigCPtr, this, value);
156 }
157
164 public boolean getCp_model_dump_response() {
165 return mainJNI.CppFlags_cp_model_dump_response_get(swigCPtr, this);
166 }
167
168 public CppFlags() {
169 this(mainJNI.new_CppFlags(), true);
170 }
171
172}
CppFlags(long cPtr, boolean cMemoryOwn)
Definition CppFlags.java:18
void setCp_model_dump_response(boolean value)
transient boolean swigCMemOwn
Definition CppFlags.java:16
void setCp_model_dump_submodels(boolean value)
static long getCPtr(CppFlags obj)
Definition CppFlags.java:23
synchronized void delete()
Definition CppFlags.java:44
void setCp_model_dump_prefix(String value)
Definition CppFlags.java:95
void setCp_model_dump_models(boolean value)
static long swigRelease(CppFlags obj)
Definition CppFlags.java:27
void setStderrthreshold(int value)
Definition CppFlags.java:61
void setLog_prefix(boolean value)
Definition CppFlags.java:80