コード例 #1
0
 public void Insert(int index, AttributeValuePair value)
 {
     indri_csharpPINVOKE.AttributeValuePairVector_Insert(swigCPtr, index, AttributeValuePair.getCPtr(value));
     if (indri_csharpPINVOKE.SWIGPendingException.Pending)
     {
         throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #2
0
 private void setitem(int index, AttributeValuePair value)
 {
     indri_csharpPINVOKE.AttributeValuePairVector_setitem(swigCPtr, index, AttributeValuePair.getCPtr(value));
     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);
        }