Exemple #1
0
 public AttributeValuePairVectorEnumerator(AttributeValuePairVector collection)
 {
     collectionRef = collection;
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
Exemple #2
0
 public void SetRange(int index, AttributeValuePairVector values)
 {
     indri_csharpPINVOKE.AttributeValuePairVector_SetRange(swigCPtr, index, AttributeValuePairVector.getCPtr(values));
     if (indri_csharpPINVOKE.SWIGPendingException.Pending)
     {
         throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #3
0
        public static AttributeValuePairVector Repeat(AttributeValuePair value, int count)
        {
            IntPtr cPtr = indri_csharpPINVOKE.AttributeValuePairVector_Repeat(AttributeValuePair.getCPtr(value), count);
            AttributeValuePairVector ret = (cPtr == IntPtr.Zero) ? null : new AttributeValuePairVector(cPtr, true);

            if (indri_csharpPINVOKE.SWIGPendingException.Pending)
            {
                throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemple #4
0
        public AttributeValuePairVector GetRange(int index, int count)
        {
            IntPtr cPtr = indri_csharpPINVOKE.AttributeValuePairVector_GetRange(swigCPtr, index, count);
            AttributeValuePairVector ret = (cPtr == IntPtr.Zero) ? null : new AttributeValuePairVector(cPtr, true);

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