Google OR-Tools
v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
TypeRequirementChecker.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
9
package
com.google.ortools.constraintsolver;
10
14
public
class
TypeRequirementChecker
extends
TypeRegulationsChecker
{
15
private
transient
long
swigCPtr;
16
17
public
TypeRequirementChecker
(
long
cPtr,
boolean
cMemoryOwn) {
18
super(mainJNI.TypeRequirementChecker_SWIGUpcast(cPtr), cMemoryOwn);
19
swigCPtr = cPtr;
20
}
21
22
public
static
long
getCPtr
(
TypeRequirementChecker
obj) {
23
return
(obj ==
null
) ? 0 : obj.swigCPtr;
24
}
25
26
public
static
long
swigRelease
(
TypeRequirementChecker
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_TypeRequirementChecker(swigCPtr);
48
}
49
swigCPtr = 0;
50
}
51
super.delete();
52
}
53
54
public
TypeRequirementChecker
(
RoutingModel
model) {
55
this
(mainJNI.new_TypeRequirementChecker(
RoutingModel
.
getCPtr
(model), model),
true
);
56
}
57
58
}
com.google.ortools.constraintsolver.RoutingModel
Definition
RoutingModel.java:20
com.google.ortools.constraintsolver.RoutingModel.getCPtr
static long getCPtr(RoutingModel obj)
Definition
RoutingModel.java:29
com.google.ortools.constraintsolver.TypeRegulationsChecker
Definition
TypeRegulationsChecker.java:11
com.google.ortools.constraintsolver.TypeRegulationsChecker.swigCMemOwn
transient boolean swigCMemOwn
Definition
TypeRegulationsChecker.java:13
com.google.ortools.constraintsolver.TypeRequirementChecker
Definition
TypeRequirementChecker.java:14
com.google.ortools.constraintsolver.TypeRequirementChecker.swigRelease
static long swigRelease(TypeRequirementChecker obj)
Definition
TypeRequirementChecker.java:26
com.google.ortools.constraintsolver.TypeRequirementChecker.getCPtr
static long getCPtr(TypeRequirementChecker obj)
Definition
TypeRequirementChecker.java:22
com.google.ortools.constraintsolver.TypeRequirementChecker.finalize
void finalize()
Definition
TypeRequirementChecker.java:39
com.google.ortools.constraintsolver.TypeRequirementChecker.TypeRequirementChecker
TypeRequirementChecker(long cPtr, boolean cMemoryOwn)
Definition
TypeRequirementChecker.java:17
com.google.ortools.constraintsolver.TypeRequirementChecker.TypeRequirementChecker
TypeRequirementChecker(RoutingModel model)
Definition
TypeRequirementChecker.java:54
com.google.ortools.constraintsolver.TypeRequirementChecker.delete
synchronized void delete()
Definition
TypeRequirementChecker.java:43
build
java
ortools-java
src
main
java
com
google
ortools
constraintsolver
TypeRequirementChecker.java
Generated by
1.12.0