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);
        }
Exemplo n.º 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();
 }
Exemplo n.º 6
0
 internal static HandleRef getCPtr(TermExtentVector obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
Exemplo n.º 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);
 }