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

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

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

  public SBBreakpointList(SBTarget target) {
    this(lldbJNI.new_SBBreakpointList(SBTarget.getCPtr(target), target), true);
  }

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

  public SBBreakpoint GetBreakpointAtIndex(long idx) {
    return new SBBreakpoint(lldbJNI.SBBreakpointList_GetBreakpointAtIndex(swigCPtr, this, idx), true);
  }

  public SBBreakpoint FindBreakpointByID(int arg0) {
    return new SBBreakpoint(lldbJNI.SBBreakpointList_FindBreakpointByID(swigCPtr, this, arg0), true);
  }

  public void Append(SBBreakpoint sb_bkpt) {
    lldbJNI.SBBreakpointList_Append(swigCPtr, this, SBBreakpoint.getCPtr(sb_bkpt), sb_bkpt);
  }

  public boolean AppendIfUnique(SBBreakpoint sb_bkpt) {
    return lldbJNI.SBBreakpointList_AppendIfUnique(swigCPtr, this, SBBreakpoint.getCPtr(sb_bkpt), sb_bkpt);
  }

  public void AppendByID(int id) {
    lldbJNI.SBBreakpointList_AppendByID(swigCPtr, this, id);
  }

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

}
