Files
upm/build/interfaces/floatVector.java

99 lines
2.6 KiB
Java
Raw Normal View History

/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (https://www.swig.org).
* Version 4.4.1
*
* Do not make changes to this file unless you know what you are doing - modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package upm_interfaces;
import java.util.AbstractList;
import java.lang.Float;
public class floatVector extends java.util.AbstractList<Float> {
private long swigCPtr;
protected boolean swigCMemOwn;
public floatVector(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
public static long getCPtr(floatVector obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings({"deprecation", "removal"})
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
javaupm_interfacesJNI.delete_floatVector(swigCPtr);
}
swigCPtr = 0;
}
}
floatVector(java.util.Collection<Float> e) {
this.reserve(e.size());
for(Float value : e) {
this.push_back(value);
}
}
public Float get(int idx) {
return get_impl(idx);
}
public floatVector() {
this(javaupm_interfacesJNI.new_floatVector__SWIG_0(), true);
}
public floatVector(long n) {
this(javaupm_interfacesJNI.new_floatVector__SWIG_1(n), true);
}
public floatVector(floatVector o) {
this(javaupm_interfacesJNI.new_floatVector__SWIG_2(floatVector.getCPtr(o), o), true);
}
public long capacity() {
return javaupm_interfacesJNI.floatVector_capacity(swigCPtr, this);
}
public void reserve(long n) {
javaupm_interfacesJNI.floatVector_reserve(swigCPtr, this, n);
}
public boolean isEmpty() {
return javaupm_interfacesJNI.floatVector_isEmpty(swigCPtr, this);
}
public void clear() {
javaupm_interfacesJNI.floatVector_clear(swigCPtr, this);
}
public void push_back(float x) {
javaupm_interfacesJNI.floatVector_push_back(swigCPtr, this, x);
}
public float get_impl(int i) {
return javaupm_interfacesJNI.floatVector_get_impl(swigCPtr, this, i);
}
public float set(int i, float VECTOR_VALUE_IN) {
return javaupm_interfacesJNI.floatVector_set(swigCPtr, this, i, VECTOR_VALUE_IN);
}
public int size() {
return javaupm_interfacesJNI.floatVector_size(swigCPtr, this);
}
public void removeRange(int from, int to) {
javaupm_interfacesJNI.floatVector_removeRange(swigCPtr, this, from, to);
}
}