Пример #1
0
 public AttributeValuePairVectorEnumerator(AttributeValuePairVector collection)
 {
     collectionRef = collection;
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
Пример #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();
     }
 }
Пример #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);
        }
Пример #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);
        }
Пример #5
0
 internal static HandleRef getCPtr(AttributeValuePairVector obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
Пример #6
0
 public AttributeValuePairVectorEnumerator(AttributeValuePairVector collection)
 {
     collectionRef = collection;
       currentIndex = -1;
       currentObject = null;
       currentSize = collectionRef.Count;
 }
Пример #7
0
 internal static HandleRef getCPtr(AttributeValuePairVector obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
Пример #8
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();
 }