public void Insert(int index, DocumentVector x) { indri_csharpPINVOKE.DocumentVectorVector_Insert(swigCPtr, index, DocumentVector.getCPtr(x)); if (indri_csharpPINVOKE.SWIGPendingException.Pending) { throw indri_csharpPINVOKE.SWIGPendingException.Retrieve(); } }
private void setitem(int index, DocumentVector val) { indri_csharpPINVOKE.DocumentVectorVector_setitem(swigCPtr, index, DocumentVector.getCPtr(val)); if (indri_csharpPINVOKE.SWIGPendingException.Pending) { throw indri_csharpPINVOKE.SWIGPendingException.Retrieve(); } }
public static DocumentVectorVector Repeat(DocumentVector value, int count) { IntPtr cPtr = indri_csharpPINVOKE.DocumentVectorVector_Repeat(DocumentVector.getCPtr(value), count); DocumentVectorVector ret = (cPtr == IntPtr.Zero) ? null : new DocumentVectorVector(cPtr, true); if (indri_csharpPINVOKE.SWIGPendingException.Pending) { throw indri_csharpPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
private DocumentVector getitem(int index) { IntPtr cPtr = indri_csharpPINVOKE.DocumentVectorVector_getitem(swigCPtr, index); DocumentVector ret = (cPtr == IntPtr.Zero) ? null : new DocumentVector(cPtr, false); if (indri_csharpPINVOKE.SWIGPendingException.Pending) { throw indri_csharpPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public virtual void Dispose() { if (swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) { swigCMemOwn = false; for (int i = 0; i < Count; i++) { indri_csharpPINVOKE.delete_DocumentVector(DocumentVector.getCPtr(getitem(i))); } indri_csharpPINVOKE.delete_DocumentVectorVector(swigCPtr); } swigCPtr = new HandleRef(null, IntPtr.Zero); GC.SuppressFinalize(this); }
private void setitem(int index, DocumentVector val) { indri_csharpPINVOKE.DocumentVectorVector_setitem(swigCPtr, index, DocumentVector.getCPtr(val)); if (indri_csharpPINVOKE.SWIGPendingException.Pending) throw indri_csharpPINVOKE.SWIGPendingException.Retrieve(); }
public void Insert(int index, DocumentVector x) { indri_csharpPINVOKE.DocumentVectorVector_Insert(swigCPtr, index, DocumentVector.getCPtr(x)); if (indri_csharpPINVOKE.SWIGPendingException.Pending) throw indri_csharpPINVOKE.SWIGPendingException.Retrieve(); }
public void Add(DocumentVector x) { indri_csharpPINVOKE.DocumentVectorVector_Add(swigCPtr, DocumentVector.getCPtr(x)); }
public static DocumentVectorVector Repeat(DocumentVector value, int count) { IntPtr cPtr = indri_csharpPINVOKE.DocumentVectorVector_Repeat(DocumentVector.getCPtr(value), count); DocumentVectorVector ret = (cPtr == IntPtr.Zero) ? null : new DocumentVectorVector(cPtr, true); if (indri_csharpPINVOKE.SWIGPendingException.Pending) throw indri_csharpPINVOKE.SWIGPendingException.Retrieve(); return ret; }
internal static HandleRef getCPtr(DocumentVector obj) { return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; }
internal static HandleRef getCPtr(DocumentVector obj) { return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr); }