1 /* ---------------------------------------------------------------------------- 2 * This file was automatically generated by SWIG (http://www.swig.org). 3 * Version 3.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.extras; 10 11 import com.badlogic.gdx.physics.bullet.BulletBase; 12 import com.badlogic.gdx.physics.bullet.linearmath.*; 13 import com.badlogic.gdx.physics.bullet.collision.*; 14 import com.badlogic.gdx.physics.bullet.dynamics.*; 15 import com.badlogic.gdx.math.Vector3; 16 import com.badlogic.gdx.math.Quaternion; 17 import com.badlogic.gdx.math.Matrix3; 18 import com.badlogic.gdx.math.Matrix4; 19 20 public class btStringArray extends BulletBase { 21 private long swigCPtr; 22 23 protected btStringArray(final String className, long cPtr, boolean cMemoryOwn) { 24 super(className, cPtr, cMemoryOwn); 25 swigCPtr = cPtr; 26 } 27 28 /** Construct a new btStringArray, normally you should not need this constructor it's intended for low-level usage. */ 29 public btStringArray(long cPtr, boolean cMemoryOwn) { 30 this("btStringArray", cPtr, cMemoryOwn); 31 construct(); 32 } 33 34 @Override 35 protected void reset(long cPtr, boolean cMemoryOwn) { 36 if (!destroyed) 37 destroy(); 38 super.reset(swigCPtr = cPtr, cMemoryOwn); 39 } 40 41 public static long getCPtr(btStringArray obj) { 42 return (obj == null) ? 0 : obj.swigCPtr; 43 } 44 45 @Override 46 protected void finalize() throws Throwable { 47 if (!destroyed) 48 destroy(); 49 super.finalize(); 50 } 51 52 @Override protected synchronized void delete() { 53 if (swigCPtr != 0) { 54 if (swigCMemOwn) { 55 swigCMemOwn = false; 56 ExtrasJNI.delete_btStringArray(swigCPtr); 57 } 58 swigCPtr = 0; 59 } 60 super.delete(); 61 } 62 63 public btStringArray() { 64 this(ExtrasJNI.new_btStringArray__SWIG_0(), true); 65 } 66 67 public btStringArray(btStringArray otherArray) { 68 this(ExtrasJNI.new_btStringArray__SWIG_1(btStringArray.getCPtr(otherArray), otherArray), true); 69 } 70 71 public int size() { 72 return ExtrasJNI.btStringArray_size(swigCPtr, this); 73 } 74 75 public String at(int n) { 76 return ExtrasJNI.btStringArray_at__SWIG_0(swigCPtr, this, n); 77 } 78 79 public void clear() { 80 ExtrasJNI.btStringArray_clear(swigCPtr, this); 81 } 82 83 public void pop_back() { 84 ExtrasJNI.btStringArray_pop_back(swigCPtr, this); 85 } 86 87 public void resizeNoInitialize(int newsize) { 88 ExtrasJNI.btStringArray_resizeNoInitialize(swigCPtr, this, newsize); 89 } 90 91 public void resize(int newsize, String fillData) { 92 ExtrasJNI.btStringArray_resize__SWIG_0(swigCPtr, this, newsize, fillData); 93 } 94 95 public void resize(int newsize) { 96 ExtrasJNI.btStringArray_resize__SWIG_1(swigCPtr, this, newsize); 97 } 98 99 public String expandNonInitializing() { 100 return ExtrasJNI.btStringArray_expandNonInitializing(swigCPtr, this); 101 } 102 103 public String expand(String fillValue) { 104 return ExtrasJNI.btStringArray_expand__SWIG_0(swigCPtr, this, fillValue); 105 } 106 107 public String expand() { 108 return ExtrasJNI.btStringArray_expand__SWIG_1(swigCPtr, this); 109 } 110 111 public void push_back(String _Val) { 112 ExtrasJNI.btStringArray_push_back(swigCPtr, this, _Val); 113 } 114 115 public int capacity() { 116 return ExtrasJNI.btStringArray_capacity(swigCPtr, this); 117 } 118 119 public void reserve(int _Count) { 120 ExtrasJNI.btStringArray_reserve(swigCPtr, this, _Count); 121 } 122 123 static public class less extends BulletBase { 124 private long swigCPtr; 125 126 protected less(final String className, long cPtr, boolean cMemoryOwn) { 127 super(className, cPtr, cMemoryOwn); 128 swigCPtr = cPtr; 129 } 130 131 /** Construct a new less, normally you should not need this constructor it's intended for low-level usage. */ 132 public less(long cPtr, boolean cMemoryOwn) { 133 this("less", cPtr, cMemoryOwn); 134 construct(); 135 } 136 137 @Override 138 protected void reset(long cPtr, boolean cMemoryOwn) { 139 if (!destroyed) 140 destroy(); 141 super.reset(swigCPtr = cPtr, cMemoryOwn); 142 } 143 144 public static long getCPtr(less obj) { 145 return (obj == null) ? 0 : obj.swigCPtr; 146 } 147 148 @Override 149 protected void finalize() throws Throwable { 150 if (!destroyed) 151 destroy(); 152 super.finalize(); 153 } 154 155 @Override protected synchronized void delete() { 156 if (swigCPtr != 0) { 157 if (swigCMemOwn) { 158 swigCMemOwn = false; 159 ExtrasJNI.delete_btStringArray_less(swigCPtr); 160 } 161 swigCPtr = 0; 162 } 163 super.delete(); 164 } 165 166 public less() { 167 this(ExtrasJNI.new_btStringArray_less(), true); 168 } 169 170 } 171 172 public void swap(int index0, int index1) { 173 ExtrasJNI.btStringArray_swap(swigCPtr, this, index0, index1); 174 } 175 176 public int findBinarySearch(String key) { 177 return ExtrasJNI.btStringArray_findBinarySearch(swigCPtr, this, key); 178 } 179 180 public int findLinearSearch(String key) { 181 return ExtrasJNI.btStringArray_findLinearSearch(swigCPtr, this, key); 182 } 183 184 public void remove(String key) { 185 ExtrasJNI.btStringArray_remove(swigCPtr, this, key); 186 } 187 188 public void initializeFromBuffer(long buffer, int size, int capacity) { 189 ExtrasJNI.btStringArray_initializeFromBuffer(swigCPtr, this, buffer, size, capacity); 190 } 191 192 public void copyFromArray(btStringArray otherArray) { 193 ExtrasJNI.btStringArray_copyFromArray(swigCPtr, this, btStringArray.getCPtr(otherArray), otherArray); 194 } 195 196 } 197