public MetadataPairVectorEnumerator(MetadataPairVector collection) { collectionRef = collection; currentIndex = -1; currentObject = null; currentSize = collectionRef.Count; }
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(); } }
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); }
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); }
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(); }
internal static HandleRef getCPtr(MetadataPairVector obj) { return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; }
internal static HandleRef getCPtr(MetadataPairVector obj) { return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr); }