1
2
3
4
5
6
7
8
9 package org.gnu.glpk;
10
11
12
13
14
15
16
17
18
19 public class glp_tree {
20 private transient long swigCPtr;
21 protected transient boolean swigCMemOwn;
22
23 protected glp_tree(long cPtr, boolean cMemoryOwn) {
24 swigCMemOwn = cMemoryOwn;
25 swigCPtr = cPtr;
26 }
27
28 protected static long getCPtr(glp_tree obj) {
29 return (obj == null) ? 0 : obj.swigCPtr;
30 }
31
32 protected void finalize() {
33 delete();
34 }
35
36 public synchronized void delete() {
37 if (swigCPtr != 0) {
38 if (swigCMemOwn) {
39 swigCMemOwn = false;
40 GLPKJNI.delete_glp_tree(swigCPtr);
41 }
42 swigCPtr = 0;
43 }
44 }
45
46 public void setHidden_internal(int value) {
47 GLPKJNI.glp_tree_hidden_internal_set(swigCPtr, this, value);
48 }
49
50 public int getHidden_internal() {
51 return GLPKJNI.glp_tree_hidden_internal_get(swigCPtr, this);
52 }
53
54 public glp_tree() {
55 this(GLPKJNI.new_glp_tree(), true);
56 }
57
58 }