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); }
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); }
public void Add(DocumentVector x) { indri_csharpPINVOKE.DocumentVectorVector_Add(swigCPtr, DocumentVector.getCPtr(x)); }