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
30 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
44 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
130 global::System.Collections.Generic.IEnumerator<int> global::System.Collections.Generic.IEnumerable<int>.GetEnumerator() {
230 public CpIntVector() : this(operations_research_constraint_solverPINVOKE.new_CpIntVector__SWIG_0(), true) {
233 public CpIntVector(CpIntVector other) : this(operations_research_constraint_solverPINVOKE.new_CpIntVector__SWIG_1(CpIntVector.getCPtr(other)), true) {
234 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
237 public CpIntVector(int capacity) : this(operations_research_constraint_solverPINVOKE.new_CpIntVector__SWIG_2(capacity), true) {
238 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
242 int ret = operations_research_constraint_solverPINVOKE.CpIntVector_getitemcopy(swigCPtr, index);
243 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
249 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
255 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
259 operations_research_constraint_solverPINVOKE.CpIntVector_AddRange(swigCPtr, CpIntVector.getCPtr(values));
260 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
264 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.CpIntVector_GetRange(swigCPtr, index, count);
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_InsertRange(swigCPtr, index, CpIntVector.getCPtr(values));
277 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
282 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
287 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
291 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.CpIntVector_Repeat(value, count);
293 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
302 operations_research_constraint_solverPINVOKE.CpIntVector_Reverse__SWIG_1(swigCPtr, index, count);
303 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
307 operations_research_constraint_solverPINVOKE.CpIntVector_SetRange(swigCPtr, index, CpIntVector.getCPtr(values));
308 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
322 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:326
static int CpIntVector_IndexOf(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
bool IsSynchronized
Definition: CpIntVector.cs:96
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:237
int LastIndexOf(int value)
Definition: CpIntVector.cs:321
void Reset()
Definition: CpIntVector.cs:194
static bool Pending
CpIntVectorEnumerator GetEnumerator()
Definition: CpIntVector.cs:138
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:301
static CpIntVector Repeat(int value, int count)
Definition: CpIntVector.cs:290
int IndexOf(int value)
Definition: CpIntVector.cs:316
Note that the IEnumerator documentation requires an InvalidOperationException to be thrown whenever t...
Definition: CpIntVector.cs:147
void RemoveRange(int index, int count)
Definition: CpIntVector.cs:285
void Dispose()
Definition: CpIntVector.cs:202
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:58
bool Contains(int value)
Definition: CpIntVector.cs:311
bool swigCMemOwn
Definition: CpIntVector.cs:22
CpIntVectorEnumerator(CpIntVector collection)
Definition: CpIntVector.cs:155
void CopyTo(int[] array)
Definition: CpIntVector.cs:102
static void CpIntVector_RemoveAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
bool MoveNext()
Definition: CpIntVector.cs:182
void RemoveAt(int index)
Definition: CpIntVector.cs:280
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:263
virtual void Dispose()
Definition: CpIntVector.cs:37
void SetRange(int index, CpIntVector values)
Definition: CpIntVector.cs:306
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:275
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:270
void AddRange(CpIntVector values)
Definition: CpIntVector.cs:258
CpIntVector(global::System.Collections.ICollection c)
Definition: CpIntVector.cs:50
int Current
Definition: CpIntVector.cs:163
CpIntVector(CpIntVector other)
Definition: CpIntVector.cs:233
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:107
void CopyTo(int index, int[] array, int arrayIndex, int count)
Definition: CpIntVector.cs:112
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)