DotNet Reference
DotNet Reference
IntVarVector.cs
Go to the documentation of this file.
18 public partial class IntVarVector : 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<IntVar> global::System.Collections.Generic.IEnumerable<IntVar>.GetEnumerator() {
230 public IntVarVector() : this(operations_research_constraint_solverPINVOKE.new_IntVarVector__SWIG_0(), true) {
233 public IntVarVector(IntVarVector other) : this(operations_research_constraint_solverPINVOKE.new_IntVarVector__SWIG_1(IntVarVector.getCPtr(other)), true) {
234 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
237 public IntVarVector(int capacity) : this(operations_research_constraint_solverPINVOKE.new_IntVarVector__SWIG_2(capacity), true) {
238 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
242 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.IntVarVector_getitemcopy(swigCPtr, index);
244 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
249 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.IntVarVector_getitem(swigCPtr, index);
251 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
256 operations_research_constraint_solverPINVOKE.IntVarVector_setitem(swigCPtr, index, IntVar.getCPtr(val));
257 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
261 operations_research_constraint_solverPINVOKE.IntVarVector_AddRange(swigCPtr, IntVarVector.getCPtr(values));
262 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
266 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.IntVarVector_GetRange(swigCPtr, index, count);
268 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
273 operations_research_constraint_solverPINVOKE.IntVarVector_Insert(swigCPtr, index, IntVar.getCPtr(x));
274 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
278 operations_research_constraint_solverPINVOKE.IntVarVector_InsertRange(swigCPtr, index, IntVarVector.getCPtr(values));
279 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
284 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 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.IntVarVector_Repeat(IntVar.getCPtr(value), count);
295 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
304 operations_research_constraint_solverPINVOKE.IntVarVector_Reverse__SWIG_1(swigCPtr, index, count);
305 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
309 operations_research_constraint_solverPINVOKE.IntVarVector_SetRange(swigCPtr, index, IntVarVector.getCPtr(values));
310 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
314 bool ret = operations_research_constraint_solverPINVOKE.IntVarVector_Contains(swigCPtr, IntVar.getCPtr(value));
319 int ret = operations_research_constraint_solverPINVOKE.IntVarVector_IndexOf(swigCPtr, IntVar.getCPtr(value));
324 int ret = operations_research_constraint_solverPINVOKE.IntVarVector_LastIndexOf(swigCPtr, IntVar.getCPtr(value));
329 bool ret = operations_research_constraint_solverPINVOKE.IntVarVector_Remove(swigCPtr, IntVar.getCPtr(value));
static uint IntVarVector_size(global::System.Runtime.InteropServices.HandleRef jarg1)
int IndexOf(IntVar value)
Definition: IntVarVector.cs:318
static bool IntVarVector_Remove(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
bool IsSynchronized
Definition: IntVarVector.cs:96
static void IntVarVector_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
void Reset()
Definition: IntVarVector.cs:194
static void IntVarVector_SetRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static IntVarVector Repeat(IntVar value, int count)
Definition: IntVarVector.cs:292
bool IsFixedSize
Definition: IntVarVector.cs:58
IntVarVector(int capacity)
Definition: IntVarVector.cs:237
static void IntVarVector_Reverse__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1)
void CopyTo(IntVar[] array)
Definition: IntVarVector.cs:102
bool Remove(IntVar value)
Definition: IntVarVector.cs:328
static bool Pending
Definition: Assignment.cs:11
static bool IntVarVector_Contains(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void IntVarVector_Insert(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr IntVarVector_GetRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
IntVarVectorEnumerator(IntVarVector collection)
Definition: IntVarVector.cs:155
void InsertRange(int index, IntVarVector values)
Definition: IntVarVector.cs:277
bool IsReadOnly
Definition: IntVarVector.cs:64
static void IntVarVector_Reverse__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
int LastIndexOf(IntVar value)
Definition: IntVarVector.cs:323
static int IntVarVector_LastIndexOf(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void delete_IntVarVector(global::System.Runtime.InteropServices.HandleRef jarg1)
IntVarVector(global::System.Collections.ICollection c)
Definition: IntVarVector.cs:50
void RemoveAt(int index)
Definition: IntVarVector.cs:282
static void IntVarVector_RemoveRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
static void IntVarVector_AddRange(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
void SetRange(int index, IntVarVector values)
Definition: IntVarVector.cs:308
void CopyTo(int index, IntVar[] array, int arrayIndex, int count)
Definition: IntVarVector.cs:112
void CopyTo(IntVar[] array, int arrayIndex)
Definition: IntVarVector.cs:107
IntVarVector()
Definition: IntVarVector.cs:230
static void IntVarVector_RemoveAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
bool MoveNext()
Definition: IntVarVector.cs:182
static global::System.IntPtr IntVarVector_getitemcopy(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void IntVarVector_InsertRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
IntVarVectorEnumerator GetEnumerator()
Definition: IntVarVector.cs:138
IntVarVector GetRange(int index, int count)
Definition: IntVarVector.cs:265
virtual void SetValue(long v)
Definition: IntExpr.cs:85
static void IntVarVector_Clear(global::System.Runtime.InteropServices.HandleRef jarg1)
IntVar Current
Definition: IntVarVector.cs:163
void Reverse(int index, int count)
Definition: IntVarVector.cs:303
Note that the IEnumerator documentation requires an InvalidOperationException to be thrown whenever t...
Definition: IntVarVector.cs:147
void Insert(int index, IntVar x)
Definition: IntVarVector.cs:272
void AddRange(IntVarVector values)
Definition: IntVarVector.cs:260
void RemoveRange(int index, int count)
Definition: IntVarVector.cs:287
static int IntVarVector_IndexOf(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
bool swigCMemOwn
Definition: IntVarVector.cs:22
IntVarVector(IntVarVector other)
Definition: IntVarVector.cs:233
static global::System.Exception Retrieve()
static global::System.IntPtr IntVarVector_Repeat(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
bool Contains(IntVar value)
Definition: IntVarVector.cs:313
virtual void Dispose()
Definition: IntVarVector.cs:37
void Dispose()
Definition: IntVarVector.cs:202