1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
5 * Do not make changes to this file unless you know what you are doing--modify
6 * the SWIG interface file instead.
7 * ----------------------------------------------------------------------------- */
9 package com.badlogic.gdx.physics.bullet;
11 public class btGEN_List {
12 private long swigCPtr;
13 protected boolean swigCMemOwn;
15 protected btGEN_List (long cPtr, boolean cMemoryOwn) {
16 swigCMemOwn = cMemoryOwn;
20 public static long getCPtr (btGEN_List obj) {
21 return (obj == null) ? 0 : obj.swigCPtr;
24 protected void finalize () {
28 public synchronized void delete () {
32 gdxBulletJNI.delete_btGEN_List(swigCPtr);
38 public btGEN_List () {
39 this(gdxBulletJNI.new_btGEN_List(), true);
42 public btGEN_Link getHead () {
43 long cPtr = gdxBulletJNI.btGEN_List_getHead(swigCPtr, this);
44 return (cPtr == 0) ? null : new btGEN_Link(cPtr, false);
47 public btGEN_Link getTail () {
48 long cPtr = gdxBulletJNI.btGEN_List_getTail(swigCPtr, this);
49 return (cPtr == 0) ? null : new btGEN_Link(cPtr, false);
52 public void addHead (btGEN_Link link) {
53 gdxBulletJNI.btGEN_List_addHead(swigCPtr, this, btGEN_Link.getCPtr(link), link);
56 public void addTail (btGEN_Link link) {
57 gdxBulletJNI.btGEN_List_addTail(swigCPtr, this, btGEN_Link.getCPtr(link), link);