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 DecreasingValueWeightPostingSource : ValueWeightPostingSource { 14 private global::System.Runtime.InteropServices.HandleRef swigCPtr; 15 16 internal DecreasingValueWeightPostingSource(global::System.IntPtr cPtr, bool cMemoryOwn) : base(XapianPINVOKE.DecreasingValueWeightPostingSource_SWIGUpcast(cPtr), cMemoryOwn) { 17 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); 18 } 19 20 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(DecreasingValueWeightPostingSource obj) { 21 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; 22 } 23 24 ~DecreasingValueWeightPostingSource() { 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_DecreasingValueWeightPostingSource(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 DecreasingValueWeightPostingSource(uint slot_, uint range_start_, uint range_end_) : this(XapianPINVOKE.new_DecreasingValueWeightPostingSource__SWIG_0(slot_, range_start_, range_end_), true) { 43 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 44 } 45 46 public DecreasingValueWeightPostingSource(uint slot_, uint range_start_) : this(XapianPINVOKE.new_DecreasingValueWeightPostingSource__SWIG_1(slot_, range_start_), true) { 47 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 48 } 49 50 public DecreasingValueWeightPostingSource(uint slot_) : this(XapianPINVOKE.new_DecreasingValueWeightPostingSource__SWIG_2(slot_), true) { 51 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 52 } 53 54 public override double GetWeight() { 55 double ret = XapianPINVOKE.DecreasingValueWeightPostingSource_GetWeight(swigCPtr); 56 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 57 return ret; 58 } 59 60 public override string Name() { 61 string ret = XapianPINVOKE.DecreasingValueWeightPostingSource_Name(swigCPtr); 62 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 63 return ret; 64 } 65 66 public override void Init(Database db_) { 67 XapianPINVOKE.DecreasingValueWeightPostingSource_Init(swigCPtr, Database.getCPtr(db_)); 68 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 69 } 70 71 public override void Next(double min_wt) { 72 XapianPINVOKE.DecreasingValueWeightPostingSource_Next(swigCPtr, min_wt); 73 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 74 } 75 76 public override void SkipTo(uint min_docid, double min_wt) { 77 XapianPINVOKE.DecreasingValueWeightPostingSource_SkipTo(swigCPtr, min_docid, min_wt); 78 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 79 } 80 81 public override bool Check(uint min_docid, double min_wt) { 82 bool ret = XapianPINVOKE.DecreasingValueWeightPostingSource_Check(swigCPtr, min_docid, min_wt); 83 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 84 return ret; 85 } 86 87 public override string GetDescription() { 88 string ret = XapianPINVOKE.DecreasingValueWeightPostingSource_GetDescription(swigCPtr); 89 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 90 return ret; 91 } 92 93 } 94 95 } 96