main.java.graphics.scenery.spirvcrossj.SpecializationConstantVec Maven / Gradle / Ivy
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.9
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package graphics.scenery.spirvcrossj;
public class SpecializationConstantVec {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected SpecializationConstantVec(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(SpecializationConstantVec obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
libspirvcrossjJNI.delete_SpecializationConstantVec(swigCPtr);
}
swigCPtr = 0;
}
}
public SpecializationConstantVec() {
this(libspirvcrossjJNI.new_SpecializationConstantVec__SWIG_0(), true);
}
public SpecializationConstantVec(long n) {
this(libspirvcrossjJNI.new_SpecializationConstantVec__SWIG_1(n), true);
}
public long size() {
return libspirvcrossjJNI.SpecializationConstantVec_size(swigCPtr, this);
}
public long capacity() {
return libspirvcrossjJNI.SpecializationConstantVec_capacity(swigCPtr, this);
}
public void reserve(long n) {
libspirvcrossjJNI.SpecializationConstantVec_reserve(swigCPtr, this, n);
}
public boolean empty() {
return libspirvcrossjJNI.SpecializationConstantVec_empty(swigCPtr, this);
}
public void clear() {
libspirvcrossjJNI.SpecializationConstantVec_clear(swigCPtr, this);
}
public void pushBack(SpecializationConstant x) {
libspirvcrossjJNI.SpecializationConstantVec_pushBack(swigCPtr, this, SpecializationConstant.getCPtr(x), x);
}
public SpecializationConstant get(int i) {
return new SpecializationConstant(libspirvcrossjJNI.SpecializationConstantVec_get(swigCPtr, this, i), false);
}
public void set(int i, SpecializationConstant val) {
libspirvcrossjJNI.SpecializationConstantVec_set(swigCPtr, this, i, SpecializationConstant.getCPtr(val), val);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy