the-algorithm/ann/src/main/java/com/twitter/ann/faiss/swig/LongVectorVector.java

77 lines
2.1 KiB
Java

/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.twitter.ann.faiss;
public class LongVectorVector {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected LongVectorVector(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(LongVectorVector obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
swigfaissJNI.delete_LongVectorVector(swigCPtr);
}
swigCPtr = 0;
}
}
public LongVectorVector() {
this(swigfaissJNI.new_LongVectorVector(), true);
}
public void push_back(SWIGTYPE_p_std__vectorT_long_t arg0) {
swigfaissJNI.LongVectorVector_push_back(swigCPtr, this, SWIGTYPE_p_std__vectorT_long_t.getCPtr(arg0));
}
public void clear() {
swigfaissJNI.LongVectorVector_clear(swigCPtr, this);
}
public SWIGTYPE_p_std__vectorT_long_t data() {
long cPtr = swigfaissJNI.LongVectorVector_data(swigCPtr, this);
return (cPtr == 0) ? null : new SWIGTYPE_p_std__vectorT_long_t(cPtr, false);
}
public long size() {
return swigfaissJNI.LongVectorVector_size(swigCPtr, this);
}
public SWIGTYPE_p_std__vectorT_long_t at(long n) {
return new SWIGTYPE_p_std__vectorT_long_t(swigfaissJNI.LongVectorVector_at(swigCPtr, this, n), true);
}
public void resize(long n) {
swigfaissJNI.LongVectorVector_resize(swigCPtr, this, n);
}
public void reserve(long n) {
swigfaissJNI.LongVectorVector_reserve(swigCPtr, this, n);
}
public void swap(LongVectorVector other) {
swigfaissJNI.LongVectorVector_swap(swigCPtr, this, LongVectorVector.getCPtr(other), other);
}
}