public static RetrievalMethod createModel(Index ind, ScoreAccumulator accum) { IntPtr cPtr = lemur_csharpPINVOKE.RetMethodManager_createModel__SWIG_1(Index.getCPtr(ind), ScoreAccumulator.getCPtr(accum)); RetrievalMethod ret = (cPtr == IntPtr.Zero) ? null : new RetrievalMethod(cPtr, true); if (lemur_csharpPINVOKE.SWIGPendingException.Pending) throw lemur_csharpPINVOKE.SWIGPendingException.Retrieve(); return ret; }
internal static HandleRef getCPtr(Index obj) { return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; }
public static MatchInfo getMatches(Index ind, Query qry, int docID) { IntPtr cPtr = lemur_csharpPINVOKE.MatchInfo_getMatches(Index.getCPtr(ind), Query.getCPtr(qry), docID); MatchInfo ret = (cPtr == IntPtr.Zero) ? null : new MatchInfo(cPtr, false); if (lemur_csharpPINVOKE.SWIGPendingException.Pending) throw lemur_csharpPINVOKE.SWIGPendingException.Retrieve(); return ret; }