"Fossies" - the Fresh Open Source Software Archive

Member "xapian-bindings-1.4.14/csharp/generated-csharp/LMWeight.cs" (23 Nov 2019, 4005 Bytes) of package /linux/www/xapian-bindings-1.4.14.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C# source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 //------------------------------------------------------------------------------
    2 // <auto-generated />
    3 //
    4 // This file was automatically generated by SWIG (http://www.swig.org).
    5 // Version 3.0.13
    6 //
    7 // Do not make changes to this file unless you know what you are doing--modify
    8 // the SWIG interface file instead.
    9 //------------------------------------------------------------------------------
   10 
   11 namespace Xapian {
   12 
   13 public class LMWeight : Weight {
   14   private global::System.Runtime.InteropServices.HandleRef swigCPtr;
   15 
   16   internal LMWeight(global::System.IntPtr cPtr, bool cMemoryOwn) : base(XapianPINVOKE.LMWeight_SWIGUpcast(cPtr), cMemoryOwn) {
   17     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
   18   }
   19 
   20   internal static global::System.Runtime.InteropServices.HandleRef getCPtr(LMWeight obj) {
   21     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
   22   }
   23 
   24   ~LMWeight() {
   25     Dispose();
   26   }
   27 
   28   public override void Dispose() {
   29     lock(this) {
   30       if (swigCPtr.Handle != global::System.IntPtr.Zero) {
   31         if (swigCMemOwn) {
   32           swigCMemOwn = false;
   33           XapianPINVOKE.delete_LMWeight(swigCPtr);
   34         }
   35         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
   36       }
   37       global::System.GC.SuppressFinalize(this);
   38       base.Dispose();
   39     }
   40   }
   41 
   42   public LMWeight(double param_log_, Weight.type_smoothing select_smoothing_, double param_smoothing1_, double param_smoothing2_) : this(XapianPINVOKE.new_LMWeight__SWIG_0(param_log_, (int)select_smoothing_, param_smoothing1_, param_smoothing2_), true) {
   43     if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve();
   44   }
   45 
   46   public LMWeight(double param_log_, Weight.type_smoothing select_smoothing_, double param_smoothing1_) : this(XapianPINVOKE.new_LMWeight__SWIG_1(param_log_, (int)select_smoothing_, param_smoothing1_), true) {
   47     if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve();
   48   }
   49 
   50   public LMWeight(double param_log_, Weight.type_smoothing select_smoothing_) : this(XapianPINVOKE.new_LMWeight__SWIG_2(param_log_, (int)select_smoothing_), true) {
   51     if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve();
   52   }
   53 
   54   public LMWeight(double param_log_) : this(XapianPINVOKE.new_LMWeight__SWIG_3(param_log_), true) {
   55     if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve();
   56   }
   57 
   58   public LMWeight() : this(XapianPINVOKE.new_LMWeight__SWIG_4(), true) {
   59     if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve();
   60   }
   61 
   62   public override string Name() {
   63     string ret = XapianPINVOKE.LMWeight_Name(swigCPtr);
   64     if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve();
   65     return ret;
   66   }
   67 
   68   public override double GetSumPart(uint wdf, uint doclen, uint uniqterm) {
   69     double ret = XapianPINVOKE.LMWeight_GetSumPart(swigCPtr, wdf, doclen, uniqterm);
   70     if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve();
   71     return ret;
   72   }
   73 
   74   public override double GetMaxPart() {
   75     double ret = XapianPINVOKE.LMWeight_GetMaxPart(swigCPtr);
   76     if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve();
   77     return ret;
   78   }
   79 
   80   public override double GetSumExtra(uint doclen, uint arg1) {
   81     double ret = XapianPINVOKE.LMWeight_GetSumExtra(swigCPtr, doclen, arg1);
   82     if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve();
   83     return ret;
   84   }
   85 
   86   public override double GetMaxExtra() {
   87     double ret = XapianPINVOKE.LMWeight_GetMaxExtra(swigCPtr);
   88     if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve();
   89     return ret;
   90   }
   91 
   92 }
   93 
   94 }