//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (http://www.swig.org).
// Version 4.0.2
//
// Do not make changes to this file unless you know what you are doing--modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------

namespace QuantLib {

public class SofrFutureRateHelper : OvernightIndexFutureRateHelper {
  private global::System.Runtime.InteropServices.HandleRef swigCPtr;
  private bool swigCMemOwnDerived;

  internal SofrFutureRateHelper(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NQuantLibcPINVOKE.SofrFutureRateHelper_SWIGSmartPtrUpcast(cPtr), true) {
    swigCMemOwnDerived = cMemoryOwn;
    swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
  }

  internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SofrFutureRateHelper obj) {
    return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
  }

  protected override void Dispose(bool disposing) {
    lock(this) {
      if (swigCPtr.Handle != global::System.IntPtr.Zero) {
        if (swigCMemOwnDerived) {
          swigCMemOwnDerived = false;
          NQuantLibcPINVOKE.delete_SofrFutureRateHelper(swigCPtr);
        }
        swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
      }
      base.Dispose(disposing);
    }
  }

  public SofrFutureRateHelper(QuoteHandle price, Month referenceMonth, int referenceYear, Frequency referenceFreq, OvernightIndex index, QuoteHandle convexityAdjustment, RateAveraging.Type averagingMethod) : this(NQuantLibcPINVOKE.new_SofrFutureRateHelper__SWIG_0(QuoteHandle.getCPtr(price), (int)referenceMonth, referenceYear, (int)referenceFreq, OvernightIndex.getCPtr(index), QuoteHandle.getCPtr(convexityAdjustment), (int)averagingMethod), true) {
    if (NQuantLibcPINVOKE.SWIGPendingException.Pending) throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();
  }

  public SofrFutureRateHelper(QuoteHandle price, Month referenceMonth, int referenceYear, Frequency referenceFreq, OvernightIndex index, QuoteHandle convexityAdjustment) : this(NQuantLibcPINVOKE.new_SofrFutureRateHelper__SWIG_1(QuoteHandle.getCPtr(price), (int)referenceMonth, referenceYear, (int)referenceFreq, OvernightIndex.getCPtr(index), QuoteHandle.getCPtr(convexityAdjustment)), true) {
    if (NQuantLibcPINVOKE.SWIGPendingException.Pending) throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();
  }

  public SofrFutureRateHelper(QuoteHandle price, Month referenceMonth, int referenceYear, Frequency referenceFreq, OvernightIndex index) : this(NQuantLibcPINVOKE.new_SofrFutureRateHelper__SWIG_2(QuoteHandle.getCPtr(price), (int)referenceMonth, referenceYear, (int)referenceFreq, OvernightIndex.getCPtr(index)), true) {
    if (NQuantLibcPINVOKE.SWIGPendingException.Pending) throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();
  }

  public SofrFutureRateHelper(double price, Month referenceMonth, int referenceYear, Frequency referenceFreq, OvernightIndex index, double convexityAdjustment, RateAveraging.Type averagingMethod) : this(NQuantLibcPINVOKE.new_SofrFutureRateHelper__SWIG_3(price, (int)referenceMonth, referenceYear, (int)referenceFreq, OvernightIndex.getCPtr(index), convexityAdjustment, (int)averagingMethod), true) {
    if (NQuantLibcPINVOKE.SWIGPendingException.Pending) throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();
  }

  public SofrFutureRateHelper(double price, Month referenceMonth, int referenceYear, Frequency referenceFreq, OvernightIndex index, double convexityAdjustment) : this(NQuantLibcPINVOKE.new_SofrFutureRateHelper__SWIG_4(price, (int)referenceMonth, referenceYear, (int)referenceFreq, OvernightIndex.getCPtr(index), convexityAdjustment), true) {
    if (NQuantLibcPINVOKE.SWIGPendingException.Pending) throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();
  }

  public SofrFutureRateHelper(double price, Month referenceMonth, int referenceYear, Frequency referenceFreq, OvernightIndex index) : this(NQuantLibcPINVOKE.new_SofrFutureRateHelper__SWIG_5(price, (int)referenceMonth, referenceYear, (int)referenceFreq, OvernightIndex.getCPtr(index)), true) {
    if (NQuantLibcPINVOKE.SWIGPendingException.Pending) throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();
  }

  public SofrFutureRateHelper(QuoteHandle price, Month referenceMonth, int referenceYear, Frequency referenceFreq, QuoteHandle convexityAdjustment) : this(NQuantLibcPINVOKE.new_SofrFutureRateHelper__SWIG_6(QuoteHandle.getCPtr(price), (int)referenceMonth, referenceYear, (int)referenceFreq, QuoteHandle.getCPtr(convexityAdjustment)), true) {
    if (NQuantLibcPINVOKE.SWIGPendingException.Pending) throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();
  }

  public SofrFutureRateHelper(QuoteHandle price, Month referenceMonth, int referenceYear, Frequency referenceFreq) : this(NQuantLibcPINVOKE.new_SofrFutureRateHelper__SWIG_7(QuoteHandle.getCPtr(price), (int)referenceMonth, referenceYear, (int)referenceFreq), true) {
    if (NQuantLibcPINVOKE.SWIGPendingException.Pending) throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();
  }

  public SofrFutureRateHelper(double price, Month referenceMonth, int referenceYear, Frequency referenceFreq, double convexityAdjustment) : this(NQuantLibcPINVOKE.new_SofrFutureRateHelper__SWIG_8(price, (int)referenceMonth, referenceYear, (int)referenceFreq, convexityAdjustment), true) {
    if (NQuantLibcPINVOKE.SWIGPendingException.Pending) throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();
  }

  public SofrFutureRateHelper(double price, Month referenceMonth, int referenceYear, Frequency referenceFreq) : this(NQuantLibcPINVOKE.new_SofrFutureRateHelper__SWIG_9(price, (int)referenceMonth, referenceYear, (int)referenceFreq), true) {
    if (NQuantLibcPINVOKE.SWIGPendingException.Pending) throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();
  }

}

}
