Google OR-Tools
v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
BaseIntExpr.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
11
public
class
BaseIntExpr
extends
IntExpr
{
12
private
transient
long
swigCPtr;
13
14
protected
BaseIntExpr
(
long
cPtr,
boolean
cMemoryOwn) {
15
super(mainJNI.BaseIntExpr_SWIGUpcast(cPtr), cMemoryOwn);
16
swigCPtr = cPtr;
17
}
18
19
protected
static
long
getCPtr
(
BaseIntExpr
obj) {
20
return
(obj ==
null
) ? 0 : obj.swigCPtr;
21
}
22
23
protected
static
long
swigRelease
(
BaseIntExpr
obj) {
24
long
ptr = 0;
25
if
(obj !=
null
) {
26
if
(!obj.
swigCMemOwn
)
27
throw
new
RuntimeException(
"Cannot release ownership as memory is not owned"
);
28
ptr = obj.swigCPtr;
29
obj.swigCMemOwn =
false
;
30
obj.
delete
();
31
}
32
return
ptr;
33
}
34
35
@SuppressWarnings({
"deprecation"
,
"removal"
})
36
protected
void
finalize
() {
37
delete
();
38
}
39
40
public
synchronized
void
delete
() {
41
if
(swigCPtr != 0) {
42
if
(
swigCMemOwn
) {
43
swigCMemOwn
=
false
;
44
mainJNI.delete_BaseIntExpr(swigCPtr);
45
}
46
swigCPtr = 0;
47
}
48
super.delete();
49
}
50
51
public
IntVar
var
() {
52
long
cPtr = mainJNI.BaseIntExpr_var(swigCPtr,
this
);
53
return
(cPtr == 0) ? null :
new
IntVar
(cPtr,
false
);
54
}
55
56
public
IntVar
castToVar
() {
57
long
cPtr = mainJNI.BaseIntExpr_castToVar(swigCPtr,
this
);
58
return
(cPtr == 0) ? null :
new
IntVar
(cPtr,
false
);
59
}
60
61
}
com.google.ortools.constraintsolver.BaseIntExpr
Definition
BaseIntExpr.java:11
com.google.ortools.constraintsolver.BaseIntExpr.finalize
void finalize()
Definition
BaseIntExpr.java:36
com.google.ortools.constraintsolver.BaseIntExpr.var
IntVar var()
Definition
BaseIntExpr.java:51
com.google.ortools.constraintsolver.BaseIntExpr.delete
synchronized void delete()
Definition
BaseIntExpr.java:40
com.google.ortools.constraintsolver.BaseIntExpr.BaseIntExpr
BaseIntExpr(long cPtr, boolean cMemoryOwn)
Definition
BaseIntExpr.java:14
com.google.ortools.constraintsolver.BaseIntExpr.getCPtr
static long getCPtr(BaseIntExpr obj)
Definition
BaseIntExpr.java:19
com.google.ortools.constraintsolver.BaseIntExpr.swigRelease
static long swigRelease(BaseIntExpr obj)
Definition
BaseIntExpr.java:23
com.google.ortools.constraintsolver.BaseIntExpr.castToVar
IntVar castToVar()
Definition
BaseIntExpr.java:56
com.google.ortools.constraintsolver.BaseObject.swigCMemOwn
transient boolean swigCMemOwn
Definition
BaseObject.java:18
com.google.ortools.constraintsolver.IntExpr
Definition
IntExpr.java:20
com.google.ortools.constraintsolver.IntVar
Definition
IntVar.java:16
build
java
ortools-java
src
main
java
com
google
ortools
constraintsolver
BaseIntExpr.java
Generated by
1.12.0