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