public TermExtentVectorEnumerator(TermExtentVector collection)
 {
     collectionRef = collection;
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
 public void SetRange(int index, TermExtentVector values)
 {
     indri_csharpPINVOKE.TermExtentVector_SetRange(swigCPtr, index, TermExtentVector.getCPtr(values));
     if (indri_csharpPINVOKE.SWIGPendingException.Pending)
     {
         throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
     }
 }
        public static TermExtentVector Repeat(TermExtent value, int count)
        {
            IntPtr           cPtr = indri_csharpPINVOKE.TermExtentVector_Repeat(TermExtent.getCPtr(value), count);
            TermExtentVector ret  = (cPtr == IntPtr.Zero) ? null : new TermExtentVector(cPtr, true);

            if (indri_csharpPINVOKE.SWIGPendingException.Pending)
            {
                throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public TermExtentVector GetRange(int index, int count)
        {
            IntPtr           cPtr = indri_csharpPINVOKE.TermExtentVector_GetRange(swigCPtr, index, count);
            TermExtentVector ret  = (cPtr == IntPtr.Zero) ? null : new TermExtentVector(cPtr, true);

            if (indri_csharpPINVOKE.SWIGPendingException.Pending)
            {
                throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #5
0
 public void SetRange(int index, TermExtentVector values) {
   indri_csharpPINVOKE.TermExtentVector_SetRange(swigCPtr, index, TermExtentVector.getCPtr(values));
   if (indri_csharpPINVOKE.SWIGPendingException.Pending) throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
 }
예제 #6
0
 internal static HandleRef getCPtr(TermExtentVector obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
예제 #7
0
 public TermExtentVectorEnumerator(TermExtentVector collection) {
   collectionRef = collection;
   currentIndex = -1;
   currentObject = null;
   currentSize = collectionRef.Count;
 }
 internal static HandleRef getCPtr(TermExtentVector obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }