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

package com.steelsidekick.sguitar;

public class IntVector {
  private transient long swigCPtr;
  protected transient boolean swigCMemOwn;

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

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

  protected void finalize() {
    delete();
  }

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

  public IntVector() {
    this(SGJNI.new_IntVector__SWIG_0(), true);
  }

  public IntVector(long n) {
    this(SGJNI.new_IntVector__SWIG_1(n), true);
  }

  public long size() {
    return SGJNI.IntVector_size(swigCPtr, this);
  }

  public long capacity() {
    return SGJNI.IntVector_capacity(swigCPtr, this);
  }

  public void reserve(long n) {
    SGJNI.IntVector_reserve(swigCPtr, this, n);
  }

  public boolean isEmpty() {
    return SGJNI.IntVector_isEmpty(swigCPtr, this);
  }

  public void clear() {
    SGJNI.IntVector_clear(swigCPtr, this);
  }

  public void add(int x) {
    SGJNI.IntVector_add(swigCPtr, this, x);
  }

  public int get(int i) {
    return SGJNI.IntVector_get(swigCPtr, this, i);
  }

  public void set(int i, int val) {
    SGJNI.IntVector_set(swigCPtr, this, i, val);
  }

}
