OSDN Git Service

The swig generated files
[mikumikustudio/libgdx-mikumikustudio.git] / extensions / gdx-bullet / jni / swig-src / com / badlogic / gdx / physics / bullet / btGEN_List.java
1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 2.0.8
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.badlogic.gdx.physics.bullet;
10
11 import com.badlogic.gdx.math.Vector3;
12 import com.badlogic.gdx.math.Quaternion;
13 import com.badlogic.gdx.math.Matrix3;
14 import com.badlogic.gdx.math.Matrix4;
15
16 public class btGEN_List {
17   private long swigCPtr;
18   protected boolean swigCMemOwn;
19
20   protected btGEN_List(long cPtr, boolean cMemoryOwn) {
21     swigCMemOwn = cMemoryOwn;
22     swigCPtr = cPtr;
23   }
24
25   public static long getCPtr(btGEN_List obj) {
26     return (obj == null) ? 0 : obj.swigCPtr;
27   }
28
29   protected void finalize() {
30     delete();
31   }
32
33   public synchronized void delete() {
34     if (swigCPtr != 0) {
35       if (swigCMemOwn) {
36         swigCMemOwn = false;
37         gdxBulletJNI.delete_btGEN_List(swigCPtr);
38       }
39       swigCPtr = 0;
40     }
41   }
42
43   public btGEN_List() {
44     this(gdxBulletJNI.new_btGEN_List(), true);
45   }
46
47   public btGEN_Link getHead() {
48     long cPtr = gdxBulletJNI.btGEN_List_getHead(swigCPtr, this);
49     return (cPtr == 0) ? null : new btGEN_Link(cPtr, false);
50   }
51
52   public btGEN_Link getTail() {
53     long cPtr = gdxBulletJNI.btGEN_List_getTail(swigCPtr, this);
54     return (cPtr == 0) ? null : new btGEN_Link(cPtr, false);
55   }
56
57   public void addHead(btGEN_Link link) {
58     gdxBulletJNI.btGEN_List_addHead(swigCPtr, this, btGEN_Link.getCPtr(link), link);
59   }
60
61   public void addTail(btGEN_Link link) {
62     gdxBulletJNI.btGEN_List_addTail(swigCPtr, this, btGEN_Link.getCPtr(link), link);
63   }
64
65 }