public void Insert(int index, MetadataPair x)
 {
     indri_csharpPINVOKE.MetadataPairSTDVector_Insert(swigCPtr, index, MetadataPair.getCPtr(x));
     if (indri_csharpPINVOKE.SWIGPendingException.Pending)
     {
         throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#2
0
 public void Add(MetadataPair value)
 {
     indri_csharpPINVOKE.MetadataPairVector_Add(swigCPtr, MetadataPair.getCPtr(value));
     if (indri_csharpPINVOKE.SWIGPendingException.Pending)
     {
         throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 private void setitem(int index, MetadataPair val)
 {
     indri_csharpPINVOKE.MetadataPairSTDVector_setitem(swigCPtr, index, MetadataPair.getCPtr(val));
     if (indri_csharpPINVOKE.SWIGPendingException.Pending)
     {
         throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
     }
 }
        private MetadataPair getitem(int index)
        {
            MetadataPair ret = new MetadataPair(indri_csharpPINVOKE.MetadataPairSTDVector_getitem(swigCPtr, index), false);

            if (indri_csharpPINVOKE.SWIGPendingException.Pending)
            {
                throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public static MetadataPairSTDVector Repeat(MetadataPair value, int count)
        {
            IntPtr cPtr = indri_csharpPINVOKE.MetadataPairSTDVector_Repeat(MetadataPair.getCPtr(value), count);
            MetadataPairSTDVector ret = (cPtr == IntPtr.Zero) ? null : new MetadataPairSTDVector(cPtr, true);

            if (indri_csharpPINVOKE.SWIGPendingException.Pending)
            {
                throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#6
0
 internal static HandleRef getCPtr(MetadataPair obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
示例#7
0
 internal static HandleRef getCPtr(MetadataPair obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
示例#8
0
 public static MetadataPairVector Repeat(MetadataPair value, int count) {
   IntPtr cPtr = indri_csharpPINVOKE.MetadataPairVector_Repeat(MetadataPair.getCPtr(value), count);
   MetadataPairVector ret = (cPtr == IntPtr.Zero) ? null : new MetadataPairVector(cPtr, true);
   if (indri_csharpPINVOKE.SWIGPendingException.Pending) throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
示例#9
0
 public void Insert(int index, MetadataPair value) {
   indri_csharpPINVOKE.MetadataPairVector_Insert(swigCPtr, index, MetadataPair.getCPtr(value));
   if (indri_csharpPINVOKE.SWIGPendingException.Pending) throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
 }
示例#10
0
 private void setitem(int index, MetadataPair value) {
   indri_csharpPINVOKE.MetadataPairVector_setitem(swigCPtr, index, MetadataPair.getCPtr(value));
   if (indri_csharpPINVOKE.SWIGPendingException.Pending) throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
 }
示例#11
0
 private MetadataPair getitem(int index) {
   MetadataPair ret = new MetadataPair(indri_csharpPINVOKE.MetadataPairVector_getitem(swigCPtr, index), false);
   if (indri_csharpPINVOKE.SWIGPendingException.Pending) throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
示例#12
0
 public void Add(MetadataPair x)
 {
     indri_csharpPINVOKE.MetadataPairSTDVector_Add(swigCPtr, MetadataPair.getCPtr(x));
     if (indri_csharpPINVOKE.SWIGPendingException.Pending) throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
 }