public void Insert(int index, TermExtent value)
 {
     indri_csharpPINVOKE.TermExtentVector_Insert(swigCPtr, index, TermExtent.getCPtr(value));
     if (indri_csharpPINVOKE.SWIGPendingException.Pending)
     {
         throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 private void setitem(int index, TermExtent value)
 {
     indri_csharpPINVOKE.TermExtentVector_setitem(swigCPtr, index, TermExtent.getCPtr(value));
     if (indri_csharpPINVOKE.SWIGPendingException.Pending)
     {
         throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
     }
 }
        private TermExtent getitem(int index)
        {
            TermExtent ret = new TermExtent(indri_csharpPINVOKE.TermExtentVector_getitem(swigCPtr, index), false);

            if (indri_csharpPINVOKE.SWIGPendingException.Pending)
            {
                throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        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);
        }
示例#5
0
 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;
 }
示例#6
0
 public void Insert(int index, TermExtent value) {
   indri_csharpPINVOKE.TermExtentVector_Insert(swigCPtr, index, TermExtent.getCPtr(value));
   if (indri_csharpPINVOKE.SWIGPendingException.Pending) throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
 }
示例#7
0
 private void setitem(int index, TermExtent value) {
   indri_csharpPINVOKE.TermExtentVector_setitem(swigCPtr, index, TermExtent.getCPtr(value));
   if (indri_csharpPINVOKE.SWIGPendingException.Pending) throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
 }
示例#8
0
 private TermExtent getitem(int index) {
   TermExtent ret = new TermExtent(indri_csharpPINVOKE.TermExtentVector_getitem(swigCPtr, index), false);
   if (indri_csharpPINVOKE.SWIGPendingException.Pending) throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
示例#9
0
 internal static HandleRef getCPtr(TermExtent obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
示例#10
0
 internal static HandleRef getCPtr(TermExtent obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }