All Downloads are FREE. Search and download functionalities are using the official Maven repository.

graphics.scenery.spirvcrossj.ResourceVec Maven / Gradle / Ivy

There is a newer version: 0.8.0-1.1.106.0
Show newest version
/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 3.0.12
 *
 * 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 ResourceVec {
  private transient long swigCPtr;
  protected transient boolean swigCMemOwn;

  protected ResourceVec(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  protected static long getCPtr(ResourceVec obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        libspirvcrossjJNI.delete_ResourceVec(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public ResourceVec() {
    this(libspirvcrossjJNI.new_ResourceVec__SWIG_0(), true);
  }

  public ResourceVec(long n) {
    this(libspirvcrossjJNI.new_ResourceVec__SWIG_1(n), true);
  }

  public long size() {
    return libspirvcrossjJNI.ResourceVec_size(swigCPtr, this);
  }

  public long capacity() {
    return libspirvcrossjJNI.ResourceVec_capacity(swigCPtr, this);
  }

  public void reserve(long n) {
    libspirvcrossjJNI.ResourceVec_reserve(swigCPtr, this, n);
  }

  public boolean empty() {
    return libspirvcrossjJNI.ResourceVec_empty(swigCPtr, this);
  }

  public void clear() {
    libspirvcrossjJNI.ResourceVec_clear(swigCPtr, this);
  }

  public void pushBack(Resource x) {
    libspirvcrossjJNI.ResourceVec_pushBack(swigCPtr, this, Resource.getCPtr(x), x);
  }

  public Resource get(int i) {
    return new Resource(libspirvcrossjJNI.ResourceVec_get(swigCPtr, this, i), false);
  }

  public void set(int i, Resource val) {
    libspirvcrossjJNI.ResourceVec_set(swigCPtr, this, i, Resource.getCPtr(val), val);
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy