Пример #1
0
 private void SwigDirectorConnect()
 {
     if (SwigDerivedClassHasMethod("GetTermfreqMin", swigMethodTypes0))
     {
         swigDelegate0 = new SwigDelegatePostingSource_0(SwigDirectorGetTermfreqMin);
     }
     if (SwigDerivedClassHasMethod("GetTermfreqEst", swigMethodTypes1))
     {
         swigDelegate1 = new SwigDelegatePostingSource_1(SwigDirectorGetTermfreqEst);
     }
     if (SwigDerivedClassHasMethod("GetTermfreqMax", swigMethodTypes2))
     {
         swigDelegate2 = new SwigDelegatePostingSource_2(SwigDirectorGetTermfreqMax);
     }
     if (SwigDerivedClassHasMethod("GetWeight", swigMethodTypes3))
     {
         swigDelegate3 = new SwigDelegatePostingSource_3(SwigDirectorGetWeight);
     }
     if (SwigDerivedClassHasMethod("GetDocId", swigMethodTypes4))
     {
         swigDelegate4 = new SwigDelegatePostingSource_4(SwigDirectorGetDocId);
     }
     if (SwigDerivedClassHasMethod("Next", swigMethodTypes5))
     {
         swigDelegate5 = new SwigDelegatePostingSource_5(SwigDirectorNext);
     }
     if (SwigDerivedClassHasMethod("SkipTo", swigMethodTypes6))
     {
         swigDelegate6 = new SwigDelegatePostingSource_6(SwigDirectorSkipTo);
     }
     if (SwigDerivedClassHasMethod("Check", swigMethodTypes7))
     {
         swigDelegate7 = new SwigDelegatePostingSource_7(SwigDirectorCheck);
     }
     if (SwigDerivedClassHasMethod("AtEnd", swigMethodTypes8))
     {
         swigDelegate8 = new SwigDelegatePostingSource_8(SwigDirectorAtEnd);
     }
     if (SwigDerivedClassHasMethod("Name", swigMethodTypes9))
     {
         swigDelegate9 = new SwigDelegatePostingSource_9(SwigDirectorName);
     }
     if (SwigDerivedClassHasMethod("Init", swigMethodTypes10))
     {
         swigDelegate10 = new SwigDelegatePostingSource_10(SwigDirectorInit);
     }
     if (SwigDerivedClassHasMethod("GetDescription", swigMethodTypes11))
     {
         swigDelegate11 = new SwigDelegatePostingSource_11(SwigDirectorGetDescription);
     }
     XapianPINVOKE.PostingSource_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate7, swigDelegate8, swigDelegate9, swigDelegate10, swigDelegate11);
 }
Пример #2
0
 private void SwigDirectorConnect()
 {
     if (SwigDerivedClassHasMethod("GetTermfreqMin", swigMethodTypes0))
       swigDelegate0 = new SwigDelegatePostingSource_0(SwigDirectorGetTermfreqMin);
     if (SwigDerivedClassHasMethod("GetTermfreqEst", swigMethodTypes1))
       swigDelegate1 = new SwigDelegatePostingSource_1(SwigDirectorGetTermfreqEst);
     if (SwigDerivedClassHasMethod("GetTermfreqMax", swigMethodTypes2))
       swigDelegate2 = new SwigDelegatePostingSource_2(SwigDirectorGetTermfreqMax);
     if (SwigDerivedClassHasMethod("GetWeight", swigMethodTypes3))
       swigDelegate3 = new SwigDelegatePostingSource_3(SwigDirectorGetWeight);
     if (SwigDerivedClassHasMethod("GetDocId", swigMethodTypes4))
       swigDelegate4 = new SwigDelegatePostingSource_4(SwigDirectorGetDocId);
     if (SwigDerivedClassHasMethod("Next", swigMethodTypes5))
       swigDelegate5 = new SwigDelegatePostingSource_5(SwigDirectorNext);
     if (SwigDerivedClassHasMethod("SkipTo", swigMethodTypes6))
       swigDelegate6 = new SwigDelegatePostingSource_6(SwigDirectorSkipTo);
     if (SwigDerivedClassHasMethod("Check", swigMethodTypes7))
       swigDelegate7 = new SwigDelegatePostingSource_7(SwigDirectorCheck);
     if (SwigDerivedClassHasMethod("AtEnd", swigMethodTypes8))
       swigDelegate8 = new SwigDelegatePostingSource_8(SwigDirectorAtEnd);
     if (SwigDerivedClassHasMethod("Name", swigMethodTypes9))
       swigDelegate9 = new SwigDelegatePostingSource_9(SwigDirectorName);
     if (SwigDerivedClassHasMethod("Init", swigMethodTypes10))
       swigDelegate10 = new SwigDelegatePostingSource_10(SwigDirectorInit);
     if (SwigDerivedClassHasMethod("GetDescription", swigMethodTypes11))
       swigDelegate11 = new SwigDelegatePostingSource_11(SwigDirectorGetDescription);
     XapianPINVOKE.PostingSource_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate7, swigDelegate8, swigDelegate9, swigDelegate10, swigDelegate11);
 }