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

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

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

  protected void finalize() {
    delete();
  }

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

  public FastSearchIndexer(SWIGTYPE_p_std__string datafilename, SWIGTYPE_p_std__ostream os, SWIGTYPE_p_std__string fpid, int FptBits) {
    this(openbabelJNI.new_FastSearchIndexer__SWIG_0(SWIGTYPE_p_std__string.getCPtr(datafilename), SWIGTYPE_p_std__ostream.getCPtr(os), SWIGTYPE_p_std__string.getCPtr(fpid), FptBits), true);
  }

  public FastSearchIndexer(SWIGTYPE_p_std__string datafilename, SWIGTYPE_p_std__ostream os, SWIGTYPE_p_std__string fpid) {
    this(openbabelJNI.new_FastSearchIndexer__SWIG_1(SWIGTYPE_p_std__string.getCPtr(datafilename), SWIGTYPE_p_std__ostream.getCPtr(os), SWIGTYPE_p_std__string.getCPtr(fpid)), true);
  }

  public FastSearchIndexer(FptIndex pindex, SWIGTYPE_p_std__ostream os) {
    this(openbabelJNI.new_FastSearchIndexer__SWIG_2(FptIndex.getCPtr(pindex), pindex, SWIGTYPE_p_std__ostream.getCPtr(os)), true);
  }

  public boolean Add(OBBase pOb, SWIGTYPE_p_std__streampos seekpos) {
    return openbabelJNI.FastSearchIndexer_Add(swigCPtr, this, OBBase.getCPtr(pOb), pOb, SWIGTYPE_p_std__streampos.getCPtr(seekpos));
  }

}
