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


public class MultiSearcher extends Searcher {
  private long swigCPtr;

  protected MultiSearcher(long cPtr, boolean cMemoryOwn) {
    super(CLjavaJNI.SWIGMultiSearcherUpcast(cPtr), cMemoryOwn);
    swigCPtr = cPtr;
  }

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

  protected void finalize() {
    delete();
  }

  public void delete() {
    if(swigCPtr != 0 && swigCMemOwn) {
      swigCMemOwn = false;
      CLjavaJNI.delete_MultiSearcher(swigCPtr);
    }
    swigCPtr = 0;
    super.delete();
  }

  public MultiSearcher(longxx searchables) {
    this(CLjavaJNI.new_MultiSearcher(_CL_p_p_lucene__search__SearchableArray.getCPtr(new _CL_p_p_lucene__search__SearchableArray(searchables))), true);
  }

  public int searcherIndex(int n) {
    return CLjavaJNI.MultiSearcher_searcherIndex(swigCPtr, n);
  }

  public int subSearcher(int n) {
    return CLjavaJNI.MultiSearcher_subSearcher(swigCPtr, n);
  }

  public int subDoc(int n) {
    return CLjavaJNI.MultiSearcher_subDoc(swigCPtr, n);
  }

}
