OSDN Git Service

Merge branch 'master' of https://github.com/libgdx/libgdx
[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.5
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 public class btGEN_List {
12         private long swigCPtr;
13         protected boolean swigCMemOwn;
14
15         protected btGEN_List (long cPtr, boolean cMemoryOwn) {
16                 swigCMemOwn = cMemoryOwn;
17                 swigCPtr = cPtr;
18         }
19
20         public static long getCPtr (btGEN_List obj) {
21                 return (obj == null) ? 0 : obj.swigCPtr;
22         }
23
24         protected void finalize () {
25                 delete();
26         }
27
28         public synchronized void delete () {
29                 if (swigCPtr != 0) {
30                         if (swigCMemOwn) {
31                                 swigCMemOwn = false;
32                                 gdxBulletJNI.delete_btGEN_List(swigCPtr);
33                         }
34                         swigCPtr = 0;
35                 }
36         }
37
38         public btGEN_List () {
39                 this(gdxBulletJNI.new_btGEN_List(), true);
40         }
41
42         public btGEN_Link getHead () {
43                 long cPtr = gdxBulletJNI.btGEN_List_getHead(swigCPtr, this);
44                 return (cPtr == 0) ? null : new btGEN_Link(cPtr, false);
45         }
46
47         public btGEN_Link getTail () {
48                 long cPtr = gdxBulletJNI.btGEN_List_getTail(swigCPtr, this);
49                 return (cPtr == 0) ? null : new btGEN_Link(cPtr, false);
50         }
51
52         public void addHead (btGEN_Link link) {
53                 gdxBulletJNI.btGEN_List_addHead(swigCPtr, this, btGEN_Link.getCPtr(link), link);
54         }
55
56         public void addTail (btGEN_Link link) {
57                 gdxBulletJNI.btGEN_List_addTail(swigCPtr, this, btGEN_Link.getCPtr(link), link);
58         }
59
60 }