|
Urbi SDK Remote for Java
2.7.5
|
00001 /* ---------------------------------------------------------------------------- 00002 * This file was automatically generated by SWIG (http://www.swig.org). 00003 * Version 2.0.4 00004 * 00005 * Do not make changes to this file unless you know what you are doing--modify 00006 * the SWIG interface file instead. 00007 * ----------------------------------------------------------------------------- */ 00008 00009 package urbi; 00010 /*--------. 00011 | UList. | 00012 `--------*/ 00013 /// Class storing URBI List type 00014 00015 public class UList { 00016 private long swigCPtr; 00017 protected boolean swigCMemOwn; 00018 00019 public UList(long cPtr, boolean cMemoryOwn) { 00020 swigCMemOwn = cMemoryOwn; 00021 swigCPtr = cPtr; 00022 } 00023 00024 public static long getCPtr(UList obj) { 00025 return (obj == null) ? 0 : obj.swigCPtr; 00026 } 00027 00028 protected void finalize() { 00029 delete(); 00030 } 00031 00032 public synchronized void delete() { 00033 if (swigCPtr != 0) { 00034 if (swigCMemOwn) { 00035 swigCMemOwn = false; 00036 urbiJNI.delete_UList(swigCPtr); 00037 } 00038 swigCPtr = 0; 00039 } 00040 } 00041 00042 public UList() { 00043 this(urbiJNI.new_UList__SWIG_0(), true); 00044 } 00045 00046 public UList(UList b) { 00047 this(urbiJNI.new_UList__SWIG_1(UList.getCPtr(b), b), true); 00048 } 00049 00050 public UList setValue(UList b) { 00051 return new UList(urbiJNI.UList_setValue__SWIG_0(swigCPtr, this, UList.getCPtr(b), b), false); 00052 } 00053 00054 public UList setValue(UVar v) { 00055 return new UList(urbiJNI.UList_setValue__SWIG_2(swigCPtr, this, UVar.getCPtr(v), v), false); 00056 } 00057 00058 public SWIGTYPE_p_urbi__UList__list_type__iterator begin() { 00059 return new SWIGTYPE_p_urbi__UList__list_type__iterator(urbiJNI.UList_begin__SWIG_0(swigCPtr, this), true); 00060 } 00061 00062 public SWIGTYPE_p_urbi__UList__list_type__iterator end() { 00063 return new SWIGTYPE_p_urbi__UList__list_type__iterator(urbiJNI.UList_end__SWIG_0(swigCPtr, this), true); 00064 } 00065 00066 public void pop_back() { 00067 urbiJNI.UList_pop_back(swigCPtr, this); 00068 } 00069 00070 public UValue front() { 00071 return new UValue(urbiJNI.UList_front(swigCPtr, this), false); 00072 } 00073 00074 public UValue get(long i) { 00075 return new UValue(urbiJNI.UList_get__SWIG_0(swigCPtr, this, i), false); 00076 } 00077 00078 public long size() { 00079 return urbiJNI.UList_size(swigCPtr, this); 00080 } 00081 00082 public void setOffset(long n) { 00083 urbiJNI.UList_setOffset(swigCPtr, this, n); 00084 } 00085 00086 public void setArray(UValueVector value) { 00087 urbiJNI.UList_array_set(swigCPtr, this, UValueVector.getCPtr(value), value); 00088 } 00089 00090 public UValueVector getArray() { 00091 long cPtr = urbiJNI.UList_array_get(swigCPtr, this); 00092 return (cPtr == 0) ? null : new UValueVector(cPtr, false); 00093 } 00094 00095 public UList push_back(UValue v) { 00096 return new UList(urbiJNI.UList_push_back__SWIG_1(swigCPtr, this, UValue.getCPtr(v), v), false); 00097 } 00098 00099 public UList push_back(UList v) { 00100 return new UList(urbiJNI.UList_push_back__SWIG_2(swigCPtr, this, UList.getCPtr(v), v), false); 00101 } 00102 00103 public UList push_back(UBinary v) { 00104 return new UList(urbiJNI.UList_push_back__SWIG_3(swigCPtr, this, UBinary.getCPtr(v), v), false); 00105 } 00106 00107 public UList push_back(USound v) { 00108 return new UList(urbiJNI.UList_push_back__SWIG_4(swigCPtr, this, USound.getCPtr(v), v), false); 00109 } 00110 00111 public UList push_back(UImage v) { 00112 return new UList(urbiJNI.UList_push_back__SWIG_5(swigCPtr, this, UImage.getCPtr(v), v), false); 00113 } 00114 00115 public UList push_back(String v) { 00116 return new UList(urbiJNI.UList_push_back__SWIG_6(swigCPtr, this, v), false); 00117 } 00118 00119 public UList push_back(int v) { 00120 return new UList(urbiJNI.UList_push_back__SWIG_7(swigCPtr, this, v), false); 00121 } 00122 00123 public UList push_back(long v) { 00124 return new UList(urbiJNI.UList_push_back__SWIG_8(swigCPtr, this, v), false); 00125 } 00126 00127 public UList push_back(double v) { 00128 return new UList(urbiJNI.UList_push_back__SWIG_9(swigCPtr, this, v), false); 00129 } 00130 00131 public UList push_back(float v) { 00132 return new UList(urbiJNI.UList_push_back__SWIG_10(swigCPtr, this, v), false); 00133 } 00134 00135 public UList push_back(char v) { 00136 return new UList(urbiJNI.UList_push_back__SWIG_11(swigCPtr, this, v), false); 00137 } 00138 00139 public UList push_back(boolean v) { 00140 return new UList(urbiJNI.UList_push_back__SWIG_12(swigCPtr, this, v), false); 00141 } 00142 00143 public String toString() { 00144 return urbiJNI.UList_toString(swigCPtr, this); 00145 } 00146 00147 }