"Fossies" - the Fresh Open Source Software Archive

Member "xapian-bindings-1.4.14/csharp/generated-csharp/StringValueRangeProcessor.cs" (23 Nov 2019, 2660 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 StringValueRangeProcessor : ValueRangeProcessor {
   14   private global::System.Runtime.InteropServices.HandleRef swigCPtr;
   15 
   16   internal StringValueRangeProcessor(global::System.IntPtr cPtr, bool cMemoryOwn) : base(XapianPINVOKE.StringValueRangeProcessor_SWIGUpcast(cPtr), cMemoryOwn) {
   17     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
   18   }
   19 
   20   internal static global::System.Runtime.InteropServices.HandleRef getCPtr(StringValueRangeProcessor obj) {
   21     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
   22   }
   23 
   24   ~StringValueRangeProcessor() {
   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_StringValueRangeProcessor(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 StringValueRangeProcessor(uint slot_) : this(XapianPINVOKE.new_StringValueRangeProcessor__SWIG_0(slot_), true) {
   43     if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve();
   44   }
   45 
   46   public StringValueRangeProcessor(uint slot_, string str_, bool prefix_) : this(XapianPINVOKE.new_StringValueRangeProcessor__SWIG_1(slot_, str_, prefix_), true) {
   47     if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve();
   48   }
   49 
   50   public StringValueRangeProcessor(uint slot_, string str_) : this(XapianPINVOKE.new_StringValueRangeProcessor__SWIG_2(slot_, str_), true) {
   51     if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve();
   52   }
   53 
   54   public override uint Apply(SWIGTYPE_p_std__string begin, SWIGTYPE_p_std__string end) {
   55     uint ret = XapianPINVOKE.StringValueRangeProcessor_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 }