private void setitem(int index, Lock val) { colaPINVOKE.ColaLocks_setitem(swigCPtr, index, Lock.getCPtr(val)); if (colaPINVOKE.SWIGPendingException.Pending) throw colaPINVOKE.SWIGPendingException.Retrieve(); }
private Lock getitemcopy(int index) { Lock ret = new Lock(colaPINVOKE.ColaLocks_getitemcopy(swigCPtr, index), true); if (colaPINVOKE.SWIGPendingException.Pending) throw colaPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public void Insert(int index, Lock x) { colaPINVOKE.ColaLocks_Insert(swigCPtr, index, Lock.getCPtr(x)); if (colaPINVOKE.SWIGPendingException.Pending) throw colaPINVOKE.SWIGPendingException.Retrieve(); }
public void Add(Lock x) { colaPINVOKE.ColaLocks_Add(swigCPtr, Lock.getCPtr(x)); if (colaPINVOKE.SWIGPendingException.Pending) throw colaPINVOKE.SWIGPendingException.Retrieve(); }
public static ColaLocks Repeat(Lock value, int count) { IntPtr cPtr = colaPINVOKE.ColaLocks_Repeat(Lock.getCPtr(value), count); ColaLocks ret = (cPtr == IntPtr.Zero) ? null : new ColaLocks(cPtr, true); if (colaPINVOKE.SWIGPendingException.Pending) throw colaPINVOKE.SWIGPendingException.Retrieve(); return ret; }
internal static HandleRef getCPtr(Lock obj) { return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; }