internal static HandleRef getCPtr(Query 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; }