/* ----------------------------------------------------------------------------
 * 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 vectorResidue {
  private long swigCPtr;
  protected boolean swigCMemOwn;

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

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

  protected void finalize() {
    delete();
  }

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

  public vectorResidue() {
    this(openbabelJNI.new_vectorResidue__SWIG_0(), true);
  }

  public vectorResidue(long n) {
    this(openbabelJNI.new_vectorResidue__SWIG_1(n), true);
  }

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

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

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

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

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

  public void add(OBResidue x) {
    openbabelJNI.vectorResidue_add(swigCPtr, this, OBResidue.getCPtr(x), x);
  }

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

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

}
