示例#1
0
 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();
     }
 }
示例#2
0
 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();
     }
 }
示例#3
0
        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);
        }
示例#4
0
 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);
 }
示例#5
0
 public void Add(DocumentVector x)
 {
     indri_csharpPINVOKE.DocumentVectorVector_Add(swigCPtr, DocumentVector.getCPtr(x));
 }