Example #1
0
 internal static HandleRef getCPtr(TMatch obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
 public static TMatchVector Repeat(TMatch value, int count) {
   IntPtr cPtr = lemur_csharpPINVOKE.TMatchVector_Repeat(TMatch.getCPtr(value), count);
   TMatchVector ret = (cPtr == IntPtr.Zero) ? null : new TMatchVector(cPtr, true);
   if (lemur_csharpPINVOKE.SWIGPendingException.Pending) throw lemur_csharpPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public void Insert(int index, TMatch x) {
   lemur_csharpPINVOKE.TMatchVector_Insert(swigCPtr, index, TMatch.getCPtr(x));
   if (lemur_csharpPINVOKE.SWIGPendingException.Pending) throw lemur_csharpPINVOKE.SWIGPendingException.Retrieve();
 }
 private void setitem(int index, TMatch val) {
   lemur_csharpPINVOKE.TMatchVector_setitem(swigCPtr, index, TMatch.getCPtr(val));
   if (lemur_csharpPINVOKE.SWIGPendingException.Pending) throw lemur_csharpPINVOKE.SWIGPendingException.Retrieve();
 }
 private TMatch getitem(int index) {
   TMatch ret = new TMatch(lemur_csharpPINVOKE.TMatchVector_getitem(swigCPtr, index), false);
   if (lemur_csharpPINVOKE.SWIGPendingException.Pending) throw lemur_csharpPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public void Add(TMatch x) {
   lemur_csharpPINVOKE.TMatchVector_Add(swigCPtr, TMatch.getCPtr(x));
   if (lemur_csharpPINVOKE.SWIGPendingException.Pending) throw lemur_csharpPINVOKE.SWIGPendingException.Retrieve();
 }