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

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

  protected static long getCPtr(SBModuleSpecList 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_SBModuleSpecList(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public SBModuleSpecList() {
    this(lldbJNI.new_SBModuleSpecList__SWIG_0(), true);
  }

  public SBModuleSpecList(SBModuleSpecList rhs) {
    this(lldbJNI.new_SBModuleSpecList__SWIG_1(SBModuleSpecList.getCPtr(rhs), rhs), true);
  }

  public static SBModuleSpecList GetModuleSpecifications(String path) {
    return new SBModuleSpecList(lldbJNI.SBModuleSpecList_GetModuleSpecifications(path), true);
  }

  public void Append(SBModuleSpec spec) {
    lldbJNI.SBModuleSpecList_Append__SWIG_0(swigCPtr, this, SBModuleSpec.getCPtr(spec), spec);
  }

  public void Append(SBModuleSpecList spec_list) {
    lldbJNI.SBModuleSpecList_Append__SWIG_1(swigCPtr, this, SBModuleSpecList.getCPtr(spec_list), spec_list);
  }

  public SBModuleSpec FindFirstMatchingSpec(SBModuleSpec match_spec) {
    return new SBModuleSpec(lldbJNI.SBModuleSpecList_FindFirstMatchingSpec(swigCPtr, this, SBModuleSpec.getCPtr(match_spec), match_spec), true);
  }

  public SBModuleSpecList FindMatchingSpecs(SBModuleSpec match_spec) {
    return new SBModuleSpecList(lldbJNI.SBModuleSpecList_FindMatchingSpecs(swigCPtr, this, SBModuleSpec.getCPtr(match_spec), match_spec), true);
  }

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

  public SBModuleSpec GetSpecAtIndex(long i) {
    return new SBModuleSpec(lldbJNI.SBModuleSpecList_GetSpecAtIndex(swigCPtr, this, i), true);
  }

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

  public String __repr__() {
    return lldbJNI.SBModuleSpecList___repr__(swigCPtr, this);
  }

}
