CONOPT
Loading...
Searching...
No Matches
IntArray3.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 conopt;
10
11public class IntArray3 {
12 private transient long swigCPtr;
13 protected transient boolean swigCMemOwn;
14
15 protected IntArray3(long cPtr, boolean cMemoryOwn) {
16 swigCMemOwn = cMemoryOwn;
17 swigCPtr = cPtr;
18 }
19
20 protected static long getCPtr(IntArray3 obj) {
21 return (obj == null) ? 0 : obj.swigCPtr;
22 }
23
24 protected static long swigRelease(IntArray3 obj) {
25 long ptr = 0;
26 if (obj != null) {
27 if (!obj.swigCMemOwn)
28 throw new RuntimeException("Cannot release ownership as memory is not owned");
29 ptr = obj.swigCPtr;
30 obj.swigCMemOwn = false;
31 obj.delete();
32 }
33 return ptr;
34 }
35
36 @SuppressWarnings({"deprecation", "removal"})
37 protected void finalize() {
38 delete();
39 }
40
41 public synchronized void delete() {
42 if (swigCPtr != 0) {
43 if (swigCMemOwn) {
44 swigCMemOwn = false;
46 }
47 swigCPtr = 0;
48 }
49 }
50
51 public IntArray3() {
53 }
54
55 public IntArray3(IntArray3 other) {
56 this(jconoptJNI.new_IntArray3__SWIG_1(IntArray3.getCPtr(other), other), true);
57 }
58
59 public boolean isEmpty() {
60 return jconoptJNI.IntArray3_isEmpty(swigCPtr, this);
61 }
62
63 public void fill(int u) {
64 jconoptJNI.IntArray3_fill(swigCPtr, this, u);
65 }
66
67 public int size() {
68 return jconoptJNI.IntArray3_size(swigCPtr, this);
69 }
70
71 public int get(int i) {
72 return jconoptJNI.IntArray3_get(swigCPtr, this, i);
73 }
74
75 public void set(int i, int val) {
76 jconoptJNI.IntArray3_set(swigCPtr, this, i, val);
77 }
78
79}
Proxy of C++ std::array< int,3 > class.
Definition conopt.py:1184
IntArray3(long cPtr, boolean cMemoryOwn)
boolean isEmpty()
static long swigRelease(IntArray3 obj)
synchronized void delete()
IntArray3(IntArray3 other)
transient boolean swigCMemOwn
void fill(int u)
static long getCPtr(IntArray3 obj)
static final native long new_IntArray3__SWIG_0()
static final native void IntArray3_fill(long jarg1, IntArray3 jarg1_, int jarg2)
static final native int IntArray3_size(long jarg1, IntArray3 jarg1_)
static final native boolean IntArray3_isEmpty(long jarg1, IntArray3 jarg1_)
static final native void IntArray3_set(long jarg1, IntArray3 jarg1_, int jarg2, int jarg3)
static final native void delete_IntArray3(long jarg1)
static final native long new_IntArray3__SWIG_1(long jarg1, IntArray3 jarg1_)
static final native int IntArray3_get(long jarg1, IntArray3 jarg1_, int jarg2)