示例#1
0
 public DocumentVectorVectorEnumerator(DocumentVectorVector collection)
 {
     collectionRef = collection;
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
 public DocumentVectorVector(DocumentVectorVector other) : this(indri_csharpPINVOKE.new_DocumentVectorVector__SWIG_1(DocumentVectorVector.getCPtr(other)), true)
 {
     if (indri_csharpPINVOKE.SWIGPendingException.Pending)
     {
         throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#3
0
 public void SetRange(int index, DocumentVectorVector values)
 {
     indri_csharpPINVOKE.DocumentVectorVector_SetRange(swigCPtr, index, DocumentVectorVector.getCPtr(values));
     if (indri_csharpPINVOKE.SWIGPendingException.Pending)
     {
         throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#4
0
        public DocumentVectorVector documentVectors(IntVector documentIDs)
        {
            DocumentVectorVector ret = new DocumentVectorVector(indri_csharpPINVOKE.QueryEnvironment_documentVectors(swigCPtr, IntVector.getCPtr(documentIDs)), true);

            if (indri_csharpPINVOKE.SWIGPendingException.Pending)
            {
                throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#5
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);
        }
示例#6
0
        public DocumentVectorVector GetRange(int index, int count)
        {
            IntPtr cPtr = indri_csharpPINVOKE.DocumentVectorVector_GetRange(swigCPtr, index, count);
            DocumentVectorVector ret = (cPtr == IntPtr.Zero) ? null : new DocumentVectorVector(cPtr, true);

            if (indri_csharpPINVOKE.SWIGPendingException.Pending)
            {
                throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#7
0
 public DocumentVectorVectorEnumerator(DocumentVectorVector collection)
 {
     collectionRef = collection;
       currentIndex = -1;
       currentObject = null;
       currentSize = collectionRef.Count;
 }
示例#8
0
 internal static HandleRef getCPtr(DocumentVectorVector obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
示例#9
0
 public void SetRange(int index, DocumentVectorVector values)
 {
     indri_csharpPINVOKE.DocumentVectorVector_SetRange(swigCPtr, index, DocumentVectorVector.getCPtr(values));
     if (indri_csharpPINVOKE.SWIGPendingException.Pending) throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
 }
示例#10
0
 public DocumentVectorVector documentVectors(IntVector documentIDs)
 {
     DocumentVectorVector ret = new DocumentVectorVector(indri_csharpPINVOKE.QueryEnvironment_documentVectors(swigCPtr, IntVector.getCPtr(documentIDs)), true);
     if (indri_csharpPINVOKE.SWIGPendingException.Pending) throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
示例#11
0
 internal static HandleRef getCPtr(DocumentVectorVector obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }