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 NumberValueRangeProcessor : StringValueRangeProcessor { 14 private global::System.Runtime.InteropServices.HandleRef swigCPtr; 15 NumberValueRangeProcessor(global::System.IntPtr cPtr, bool cMemoryOwn)16 internal NumberValueRangeProcessor(global::System.IntPtr cPtr, bool cMemoryOwn) : base(XapianPINVOKE.NumberValueRangeProcessor_SWIGUpcast(cPtr), cMemoryOwn) { 17 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); 18 } 19 getCPtr(NumberValueRangeProcessor obj)20 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(NumberValueRangeProcessor obj) { 21 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; 22 } 23 ~NumberValueRangeProcessor()24 ~NumberValueRangeProcessor() { 25 Dispose(); 26 } 27 Dispose()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_NumberValueRangeProcessor(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 NumberValueRangeProcessor(uint slot_)42 public NumberValueRangeProcessor(uint slot_) : this(XapianPINVOKE.new_NumberValueRangeProcessor__SWIG_0(slot_), true) { 43 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 44 } 45 NumberValueRangeProcessor(uint slot_, string str_, bool prefix_)46 public NumberValueRangeProcessor(uint slot_, string str_, bool prefix_) : this(XapianPINVOKE.new_NumberValueRangeProcessor__SWIG_1(slot_, str_, prefix_), true) { 47 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 48 } 49 NumberValueRangeProcessor(uint slot_, string str_)50 public NumberValueRangeProcessor(uint slot_, string str_) : this(XapianPINVOKE.new_NumberValueRangeProcessor__SWIG_2(slot_, str_), true) { 51 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 52 } 53 Apply(SWIGTYPE_p_std__string begin, SWIGTYPE_p_std__string end)54 public override uint Apply(SWIGTYPE_p_std__string begin, SWIGTYPE_p_std__string end) { 55 uint ret = XapianPINVOKE.NumberValueRangeProcessor_Apply(swigCPtr, SWIGTYPE_p_std__string.getCPtr(begin), SWIGTYPE_p_std__string.getCPtr(end)); 56 if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); 57 return ret; 58 } 59 60 } 61 62 } 63