/* ###
 * IP: Apache License 2.0 with LLVM Exceptions
 */
/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 4.0.1
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

package SWIG;

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

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

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

  @SuppressWarnings("deprecation")
  protected void finalize() {
    delete();
  }

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

  public SBFileSpecList() {
    this(lldbJNI.new_SBFileSpecList__SWIG_0(), true);
  }

  public SBFileSpecList(SBFileSpecList rhs) {
    this(lldbJNI.new_SBFileSpecList__SWIG_1(SBFileSpecList.getCPtr(rhs), rhs), true);
  }

  public long GetSize() {
    return lldbJNI.SBFileSpecList_GetSize(swigCPtr, this);
  }

  public boolean GetDescription(SBStream description) {
    return lldbJNI.SBFileSpecList_GetDescription(swigCPtr, this, SBStream.getCPtr(description), description);
  }

  public void Append(SBFileSpec sb_file) {
    lldbJNI.SBFileSpecList_Append(swigCPtr, this, SBFileSpec.getCPtr(sb_file), sb_file);
  }

  public boolean AppendIfUnique(SBFileSpec sb_file) {
    return lldbJNI.SBFileSpecList_AppendIfUnique(swigCPtr, this, SBFileSpec.getCPtr(sb_file), sb_file);
  }

  public void Clear() {
    lldbJNI.SBFileSpecList_Clear(swigCPtr, this);
  }

  public long FindFileIndex(long idx, SBFileSpec sb_file, boolean full) {
    return lldbJNI.SBFileSpecList_FindFileIndex(swigCPtr, this, idx, SBFileSpec.getCPtr(sb_file), sb_file, full);
  }

  public SBFileSpec GetFileSpecAtIndex(long idx) {
    return new SBFileSpec(lldbJNI.SBFileSpecList_GetFileSpecAtIndex(swigCPtr, this, idx), true);
  }

}
