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