DotNet Reference
DotNet Reference
CpInt64Vector.cs
Go to the documentation of this file.
18 public partial class CpInt64Vector : global::System.IDisposable, global::System.Collections.IEnumerable, global::System.Collections.Generic.IList<long>
29 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
48 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
147 global::System.Collections.Generic.IEnumerator<long> global::System.Collections.Generic.IEnumerable<long>.GetEnumerator() {
247 public CpInt64Vector() : this(operations_research_constraint_solverPINVOKE.new_CpInt64Vector__SWIG_0(), true) {
250 public CpInt64Vector(CpInt64Vector other) : this(operations_research_constraint_solverPINVOKE.new_CpInt64Vector__SWIG_1(CpInt64Vector.getCPtr(other)), true) {
251 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
254 public CpInt64Vector(int capacity) : this(operations_research_constraint_solverPINVOKE.new_CpInt64Vector__SWIG_2(capacity), true) {
255 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
259 long ret = operations_research_constraint_solverPINVOKE.CpInt64Vector_getitemcopy(swigCPtr, index);
260 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
266 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
272 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
276 operations_research_constraint_solverPINVOKE.CpInt64Vector_AddRange(swigCPtr, CpInt64Vector.getCPtr(values));
277 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
281 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.CpInt64Vector_GetRange(swigCPtr, index, count);
282 CpInt64Vector ret = (cPtr == global::System.IntPtr.Zero) ? null : new CpInt64Vector(cPtr, true);
283 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
289 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
293 operations_research_constraint_solverPINVOKE.CpInt64Vector_InsertRange(swigCPtr, index, CpInt64Vector.getCPtr(values));
294 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
299 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
304 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
308 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.CpInt64Vector_Repeat(value, count);
309 CpInt64Vector ret = (cPtr == global::System.IntPtr.Zero) ? null : new CpInt64Vector(cPtr, true);
310 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
319 operations_research_constraint_solverPINVOKE.CpInt64Vector_Reverse__SWIG_1(swigCPtr, index, count);
320 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
324 operations_research_constraint_solverPINVOKE.CpInt64Vector_SetRange(swigCPtr, index, CpInt64Vector.getCPtr(values));
325 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
329 bool ret = operations_research_constraint_solverPINVOKE.CpInt64Vector_Contains(swigCPtr, value);
339 int ret = operations_research_constraint_solverPINVOKE.CpInt64Vector_LastIndexOf(swigCPtr, value);
static global::System.IntPtr CpInt64Vector_GetRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
void CopyTo(long[] array, int arrayIndex)
Definition: CpInt64Vector.cs:118
bool IsSynchronized
Definition: CpInt64Vector.cs:107
void Dispose()
Definition: CpInt64Vector.cs:219
static void CpInt64Vector_Reverse__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
void InsertRange(int index, CpInt64Vector values)
Definition: CpInt64Vector.cs:292
static int CpInt64Vector_IndexOf(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static void CpInt64Vector_AddRange(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
void SetRange(int index, CpInt64Vector values)
Definition: CpInt64Vector.cs:323
CpInt64Vector(global::System.Collections.IEnumerable c)
Definition: CpInt64Vector.cs:53
static void CpInt64Vector_Clear(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CpInt64Vector_Reverse__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CpInt64Vector_Insert(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, long jarg3)
static bool Pending
void RemoveRange(int index, int count)
Definition: CpInt64Vector.cs:302
int IndexOf(long value)
Definition: CpInt64Vector.cs:333
CpInt64Vector GetRange(int index, int count)
Definition: CpInt64Vector.cs:280
static global::System.IntPtr CpInt64Vector_Repeat(long jarg1, int jarg2)
Definition: Assignment.cs:11
bool swigCMemOwn
Definition: CpInt64Vector.cs:21
virtual void Dispose(bool disposing)
Definition: CpInt64Vector.cs:41
void CopyTo(int index, long[] array, int arrayIndex, int count)
Definition: CpInt64Vector.cs:123
void Reverse(int index, int count)
Definition: CpInt64Vector.cs:318
static void delete_CpInt64Vector(global::System.Runtime.InteropServices.HandleRef jarg1)
CpInt64VectorEnumerator(CpInt64Vector collection)
Definition: CpInt64Vector.cs:172
long[] ToArray()
Definition: CpInt64Vector.cs:141
static void CpInt64Vector_RemoveAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static uint CpInt64Vector_size(global::System.Runtime.InteropServices.HandleRef jarg1)
long Current
Definition: CpInt64Vector.cs:180
static void CpInt64Vector_RemoveRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
void RemoveAt(int index)
Definition: CpInt64Vector.cs:297
void Reset()
Definition: CpInt64Vector.cs:211
CpInt64Vector(CpInt64Vector other)
Definition: CpInt64Vector.cs:250
CpInt64Vector(global::System.Collections.Generic.IEnumerable< long > c)
Definition: CpInt64Vector.cs:61
void Insert(int index, long x)
Definition: CpInt64Vector.cs:287
static void CpInt64Vector_InsertRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static CpInt64Vector Repeat(long value, int count)
Definition: CpInt64Vector.cs:307
Note that the IEnumerator documentation requires an InvalidOperationException to be thrown whenever t...
Definition: CpInt64Vector.cs:164
CpInt64Vector()
Definition: CpInt64Vector.cs:247
static void CpInt64Vector_SetRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
CpInt64VectorEnumerator GetEnumerator()
Definition: CpInt64Vector.cs:155
static long CpInt64Vector_getitemcopy(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static int CpInt64Vector_LastIndexOf(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static bool CpInt64Vector_Contains(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
void AddRange(CpInt64Vector values)
Definition: CpInt64Vector.cs:275
static void CpInt64Vector_Add(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
bool Contains(long value)
Definition: CpInt64Vector.cs:328
void CopyTo(long[] array)
Definition: CpInt64Vector.cs:113
int LastIndexOf(long value)
Definition: CpInt64Vector.cs:338
bool MoveNext()
Definition: CpInt64Vector.cs:199
static global::System.Exception Retrieve()
CpInt64Vector(int capacity)
Definition: CpInt64Vector.cs:254
static bool CpInt64Vector_Remove(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
bool IsFixedSize
Definition: CpInt64Vector.cs:69
bool Remove(long value)
Definition: CpInt64Vector.cs:343
bool IsReadOnly
Definition: CpInt64Vector.cs:75