DotNet Reference
DotNet Reference
CpIntVector.cs
Go to the documentation of this file.
18 public partial class CpIntVector : global::System.IDisposable, global::System.Collections.IEnumerable, global::System.Collections.Generic.IList<int>
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<int> global::System.Collections.Generic.IEnumerable<int>.GetEnumerator() {
247 public CpIntVector() : this(operations_research_constraint_solverPINVOKE.new_CpIntVector__SWIG_0(), true) {
250 public CpIntVector(CpIntVector other) : this(operations_research_constraint_solverPINVOKE.new_CpIntVector__SWIG_1(CpIntVector.getCPtr(other)), true) {
251 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
254 public CpIntVector(int capacity) : this(operations_research_constraint_solverPINVOKE.new_CpIntVector__SWIG_2(capacity), true) {
255 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
259 int ret = operations_research_constraint_solverPINVOKE.CpIntVector_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.CpIntVector_AddRange(swigCPtr, CpIntVector.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.CpIntVector_GetRange(swigCPtr, index, count);
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.CpIntVector_InsertRange(swigCPtr, index, CpIntVector.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.CpIntVector_Repeat(value, count);
310 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
319 operations_research_constraint_solverPINVOKE.CpIntVector_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.CpIntVector_SetRange(swigCPtr, index, CpIntVector.getCPtr(values));
325 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
339 int ret = operations_research_constraint_solverPINVOKE.CpIntVector_LastIndexOf(swigCPtr, value);
static void CpIntVector_Add(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
bool Remove(int value)
Definition: CpIntVector.cs:343
static int CpIntVector_IndexOf(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
bool IsSynchronized
Definition: CpIntVector.cs:107
static bool CpIntVector_Remove(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
Google.OrTools.ConstraintSolver.operations_research_constraint_solverPINVOKE.CpIntVector_InsertRange
static void CpIntVector_InsertRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
CpIntVector(int capacity)
Definition: CpIntVector.cs:254
int LastIndexOf(int value)
Definition: CpIntVector.cs:338
void Reset()
Definition: CpIntVector.cs:211
static bool Pending
CpIntVectorEnumerator GetEnumerator()
Definition: CpIntVector.cs:155
Definition: Assignment.cs:11
Google.OrTools.ConstraintSolver.operations_research_constraint_solverPINVOKE.CpIntVector_getitemcopy
static int CpIntVector_getitemcopy(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
void Reverse(int index, int count)
Definition: CpIntVector.cs:318
static CpIntVector Repeat(int value, int count)
Definition: CpIntVector.cs:307
int IndexOf(int value)
Definition: CpIntVector.cs:333
Note that the IEnumerator documentation requires an InvalidOperationException to be thrown whenever t...
Definition: CpIntVector.cs:164
void RemoveRange(int index, int count)
Definition: CpIntVector.cs:302
void Dispose()
Definition: CpIntVector.cs:219
static void CpIntVector_AddRange(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr CpIntVector_Repeat(int jarg1, int jarg2)
static void CpIntVector_Clear(global::System.Runtime.InteropServices.HandleRef jarg1)
bool IsFixedSize
Definition: CpIntVector.cs:69
bool Contains(int value)
Definition: CpIntVector.cs:328
bool swigCMemOwn
Definition: CpIntVector.cs:21
CpIntVectorEnumerator(CpIntVector collection)
Definition: CpIntVector.cs:172
void CopyTo(int[] array)
Definition: CpIntVector.cs:113
static void CpIntVector_RemoveAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
bool MoveNext()
Definition: CpIntVector.cs:199
void RemoveAt(int index)
Definition: CpIntVector.cs:297
Google.OrTools.ConstraintSolver.operations_research_constraint_solverPINVOKE.CpIntVector_LastIndexOf
static int CpIntVector_LastIndexOf(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
CpIntVector GetRange(int index, int count)
Definition: CpIntVector.cs:280
void SetRange(int index, CpIntVector values)
Definition: CpIntVector.cs:323
static void CpIntVector_Reverse__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
void InsertRange(int index, CpIntVector values)
Definition: CpIntVector.cs:292
static global::System.IntPtr CpIntVector_GetRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
Google.OrTools.ConstraintSolver.operations_research_constraint_solverPINVOKE.CpIntVector_RemoveRange
static void CpIntVector_RemoveRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
void Insert(int index, int x)
Definition: CpIntVector.cs:287
void AddRange(CpIntVector values)
Definition: CpIntVector.cs:275
CpIntVector(global::System.Collections.Generic.IEnumerable< int > c)
Definition: CpIntVector.cs:61
int Current
Definition: CpIntVector.cs:180
CpIntVector(CpIntVector other)
Definition: CpIntVector.cs:250
static void CpIntVector_Reverse__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CpIntVector_Contains(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
void CopyTo(int[] array, int arrayIndex)
Definition: CpIntVector.cs:118
void CopyTo(int index, int[] array, int arrayIndex, int count)
Definition: CpIntVector.cs:123
virtual void Dispose(bool disposing)
Definition: CpIntVector.cs:41
static void delete_CpIntVector(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.Exception Retrieve()
static void CpIntVector_Insert(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
static uint CpIntVector_size(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CpIntVector_SetRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
CpIntVector(global::System.Collections.IEnumerable c)
Definition: CpIntVector.cs:53