/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 1.3.36
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */


public class vvInt {
  private long swigCPtr;
  protected boolean swigCMemOwn;

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

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

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if(swigCPtr != 0 && swigCMemOwn) {
      swigCMemOwn = false;
      openbabelJNI.delete_vvInt(swigCPtr);
    }
    swigCPtr = 0;
  }

  public vvInt() {
    this(openbabelJNI.new_vvInt__SWIG_0(), true);
  }

  public vvInt(long n) {
    this(openbabelJNI.new_vvInt__SWIG_1(n), true);
  }

  public long size() {
    return openbabelJNI.vvInt_size(swigCPtr, this);
  }

  public long capacity() {
    return openbabelJNI.vvInt_capacity(swigCPtr, this);
  }

  public void reserve(long n) {
    openbabelJNI.vvInt_reserve(swigCPtr, this, n);
  }

  public boolean isEmpty() {
    return openbabelJNI.vvInt_isEmpty(swigCPtr, this);
  }

  public void clear() {
    openbabelJNI.vvInt_clear(swigCPtr, this);
  }

  public void add(vectorInt x) {
    openbabelJNI.vvInt_add(swigCPtr, this, vectorInt.getCPtr(x), x);
  }

  public vectorInt get(int i) {
    return new vectorInt(openbabelJNI.vvInt_get(swigCPtr, this, i), false);
  }

  public void set(int i, vectorInt val) {
    openbabelJNI.vvInt_set(swigCPtr, this, i, vectorInt.getCPtr(val), val);
  }

}
