"Fossies" - the Fresh Open Source Software Archive

Member "xapian-bindings-1.4.14/csharp/generated-csharp/IfB2Weight.cs" (23 Nov 2019, 3067 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 IfB2Weight : Weight {
   14   private global::System.Runtime.InteropServices.HandleRef swigCPtr;
   15 
   16   internal IfB2Weight(global::System.IntPtr cPtr, bool cMemoryOwn) : base(XapianPINVOKE.IfB2Weight_SWIGUpcast(cPtr), cMemoryOwn) {
   17     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
   18   }
   19 
   20   internal static global::System.Runtime.InteropServices.HandleRef getCPtr(IfB2Weight obj) {
   21     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
   22   }
   23 
   24   ~IfB2Weight() {
   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_IfB2Weight(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 IfB2Weight(double c) : this(XapianPINVOKE.new_IfB2Weight__SWIG_0(c), true) {
   43     if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve();
   44   }
   45 
   46   public IfB2Weight() : this(XapianPINVOKE.new_IfB2Weight__SWIG_1(), true) {
   47     if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve();
   48   }
   49 
   50   public override string Name() {
   51     string ret = XapianPINVOKE.IfB2Weight_Name(swigCPtr);
   52     if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve();
   53     return ret;
   54   }
   55 
   56   public override double GetSumPart(uint wdf, uint doclen, uint uniqterm) {
   57     double ret = XapianPINVOKE.IfB2Weight_GetSumPart(swigCPtr, wdf, doclen, uniqterm);
   58     if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve();
   59     return ret;
   60   }
   61 
   62   public override double GetMaxPart() {
   63     double ret = XapianPINVOKE.IfB2Weight_GetMaxPart(swigCPtr);
   64     if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve();
   65     return ret;
   66   }
   67 
   68   public override double GetSumExtra(uint doclen, uint uniqterms) {
   69     double ret = XapianPINVOKE.IfB2Weight_GetSumExtra(swigCPtr, doclen, uniqterms);
   70     if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve();
   71     return ret;
   72   }
   73 
   74   public override double GetMaxExtra() {
   75     double ret = XapianPINVOKE.IfB2Weight_GetMaxExtra(swigCPtr);
   76     if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve();
   77     return ret;
   78   }
   79 
   80 }
   81 
   82 }