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

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

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

  public SBQueue() {
    this(lldbJNI.new_SBQueue__SWIG_0(), true);
  }

  public SBQueue(SWIGTYPE_p_std__shared_ptrT_lldb_private__Queue_t queue_sp) {
    this(lldbJNI.new_SBQueue__SWIG_1(SWIGTYPE_p_std__shared_ptrT_lldb_private__Queue_t.getCPtr(queue_sp)), true);
  }

  public boolean IsValid() {
    return lldbJNI.SBQueue_IsValid(swigCPtr, this);
  }

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

  public SBProcess GetProcess() {
    return new SBProcess(lldbJNI.SBQueue_GetProcess(swigCPtr, this), true);
  }

  public java.math.BigInteger GetQueueID() {
    return lldbJNI.SBQueue_GetQueueID(swigCPtr, this);
  }

  public String GetName() {
    return lldbJNI.SBQueue_GetName(swigCPtr, this);
  }

  public QueueKind GetKind() {
    return QueueKind.swigToEnum(lldbJNI.SBQueue_GetKind(swigCPtr, this));
  }

  public long GetIndexID() {
    return lldbJNI.SBQueue_GetIndexID(swigCPtr, this);
  }

  public long GetNumThreads() {
    return lldbJNI.SBQueue_GetNumThreads(swigCPtr, this);
  }

  public SBThread GetThreadAtIndex(long arg0) {
    return new SBThread(lldbJNI.SBQueue_GetThreadAtIndex(swigCPtr, this, arg0), true);
  }

  public long GetNumPendingItems() {
    return lldbJNI.SBQueue_GetNumPendingItems(swigCPtr, this);
  }

  public SBQueueItem GetPendingItemAtIndex(long arg0) {
    return new SBQueueItem(lldbJNI.SBQueue_GetPendingItemAtIndex(swigCPtr, this, arg0), true);
  }

  public long GetNumRunningItems() {
    return lldbJNI.SBQueue_GetNumRunningItems(swigCPtr, this);
  }

}
