Example #1
0
 public MetadataPairVectorEnumerator(MetadataPairVector collection)
 {
     collectionRef = collection;
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
Example #2
0
 public void SetRange(int index, MetadataPairVector values)
 {
     indri_csharpPINVOKE.MetadataPairVector_SetRange(swigCPtr, index, MetadataPairVector.getCPtr(values));
     if (indri_csharpPINVOKE.SWIGPendingException.Pending)
     {
         throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #3
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);
        }
Example #4
0
        public MetadataPairVector GetRange(int index, int count)
        {
            IntPtr             cPtr = indri_csharpPINVOKE.MetadataPairVector_GetRange(swigCPtr, index, count);
            MetadataPairVector ret  = (cPtr == IntPtr.Zero) ? null : new MetadataPairVector(cPtr, true);

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