Beispiel #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();
     }
 }
Beispiel #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();
     }
 }
Beispiel #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);
        }
Beispiel #4
0
        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);
        }
Beispiel #5
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);
 }
Beispiel #6
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();
 }
Beispiel #7
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();
 }
Beispiel #8
0
 public void Add(DocumentVector x)
 {
     indri_csharpPINVOKE.DocumentVectorVector_Add(swigCPtr, DocumentVector.getCPtr(x));
 }
Beispiel #9
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;
 }
Beispiel #10
0
 internal static HandleRef getCPtr(DocumentVector obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
Beispiel #11
0
 public void Add(DocumentVector x)
 {
     indri_csharpPINVOKE.DocumentVectorVector_Add(swigCPtr, DocumentVector.getCPtr(x));
 }
 internal static HandleRef getCPtr(DocumentVector obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }