DotNet Reference
.Net Reference
IntVarVector.cs
Go to the documentation of this file.
18 public partial class IntVarVector : global::System.IDisposable, global::System.Collections.IEnumerable, global::System.Collections.Generic.IList<IntVar>
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<IntVar> global::System.Collections.Generic.IEnumerable<IntVar>.GetEnumerator() {
247 public IntVarVector() : this(operations_research_constraint_solverPINVOKE.new_IntVarVector__SWIG_0(), true) {
250 public IntVarVector(IntVarVector other) : this(operations_research_constraint_solverPINVOKE.new_IntVarVector__SWIG_1(IntVarVector.getCPtr(other)), true) {
251 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
254 public IntVarVector(int capacity) : this(operations_research_constraint_solverPINVOKE.new_IntVarVector__SWIG_2(capacity), true) {
255 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
259 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.IntVarVector_getitemcopy(swigCPtr, index);
261 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
266 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.IntVarVector_getitem(swigCPtr, index);
268 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
273 operations_research_constraint_solverPINVOKE.IntVarVector_setitem(swigCPtr, index, IntVar.getCPtr(val));
274 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
278 operations_research_constraint_solverPINVOKE.IntVarVector_AddRange(swigCPtr, IntVarVector.getCPtr(values));
279 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
283 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.IntVarVector_GetRange(swigCPtr, index, count);
285 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
290 operations_research_constraint_solverPINVOKE.IntVarVector_Insert(swigCPtr, index, IntVar.getCPtr(x));
291 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
295 operations_research_constraint_solverPINVOKE.IntVarVector_InsertRange(swigCPtr, index, IntVarVector.getCPtr(values));
296 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
301 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
306 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
310 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.IntVarVector_Repeat(IntVar.getCPtr(value), count);
312 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
321 operations_research_constraint_solverPINVOKE.IntVarVector_Reverse__SWIG_1(swigCPtr, index, count);
322 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
326 operations_research_constraint_solverPINVOKE.IntVarVector_SetRange(swigCPtr, index, IntVarVector.getCPtr(values));
327 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
331 bool ret = operations_research_constraint_solverPINVOKE.IntVarVector_Contains(swigCPtr, IntVar.getCPtr(value));
336 int ret = operations_research_constraint_solverPINVOKE.IntVarVector_IndexOf(swigCPtr, IntVar.getCPtr(value));
341 int ret = operations_research_constraint_solverPINVOKE.IntVarVector_LastIndexOf(swigCPtr, IntVar.getCPtr(value));
346 bool ret = operations_research_constraint_solverPINVOKE.IntVarVector_Remove(swigCPtr, IntVar.getCPtr(value));
virtual void SetValue(long v)
Definition: IntExpr.cs:80
Note that the IEnumerator documentation requires an InvalidOperationException to be thrown whenever t...
Definition: IntVarVector.cs:166
IntVarVectorEnumerator(IntVarVector collection)
Definition: IntVarVector.cs:172
void Reset()
Definition: IntVarVector.cs:211
void Dispose()
Definition: IntVarVector.cs:219
IntVar Current
Definition: IntVarVector.cs:180
bool MoveNext()
Definition: IntVarVector.cs:199
static IntVarVector Repeat(IntVar value, int count)
Definition: IntVarVector.cs:309
IntVarVector(global::System.Collections.IEnumerable c)
Definition: IntVarVector.cs:53
bool Remove(IntVar value)
Definition: IntVarVector.cs:345
IntVarVector GetRange(int index, int count)
Definition: IntVarVector.cs:282
void CopyTo(IntVar[] array, int arrayIndex)
Definition: IntVarVector.cs:118
IntVarVectorEnumerator GetEnumerator()
Definition: IntVarVector.cs:155
void Insert(int index, IntVar x)
Definition: IntVarVector.cs:289
int LastIndexOf(IntVar value)
Definition: IntVarVector.cs:340
IntVarVector(int capacity)
Definition: IntVarVector.cs:254
bool Contains(IntVar value)
Definition: IntVarVector.cs:330
IntVarVector(IntVarVector other)
Definition: IntVarVector.cs:250
void InsertRange(int index, IntVarVector values)
Definition: IntVarVector.cs:294
virtual void Dispose(bool disposing)
Definition: IntVarVector.cs:41
IntVarVector(global::System.Collections.Generic.IEnumerable< IntVar > c)
Definition: IntVarVector.cs:61
bool IsFixedSize
Definition: IntVarVector.cs:69
bool IsSynchronized
Definition: IntVarVector.cs:107
IntVarVector()
Definition: IntVarVector.cs:247
void SetRange(int index, IntVarVector values)
Definition: IntVarVector.cs:325
void RemoveRange(int index, int count)
Definition: IntVarVector.cs:304
int IndexOf(IntVar value)
Definition: IntVarVector.cs:335
void AddRange(IntVarVector values)
Definition: IntVarVector.cs:277
bool swigCMemOwn
Definition: IntVarVector.cs:21
bool IsReadOnly
Definition: IntVarVector.cs:75
void RemoveAt(int index)
Definition: IntVarVector.cs:299
void CopyTo(int index, IntVar[] array, int arrayIndex, int count)
Definition: IntVarVector.cs:123
IntVar[] ToArray()
Definition: IntVarVector.cs:141
void Reverse(int index, int count)
Definition: IntVarVector.cs:320
void CopyTo(IntVar[] array)
Definition: IntVarVector.cs:113
static bool Pending
static global::System.Exception Retrieve()
static void IntVarVector_Reverse__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
static global::System.IntPtr IntVarVector_GetRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
static int IntVarVector_LastIndexOf(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static uint IntVarVector_size(global::System.Runtime.InteropServices.HandleRef jarg1)
static void IntVarVector_RemoveAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void IntVarVector_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void IntVarVector_AddRange(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int IntVarVector_IndexOf(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void IntVarVector_RemoveRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
static void IntVarVector_SetRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr IntVarVector_Repeat(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void IntVarVector_Reverse__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool IntVarVector_Contains(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void IntVarVector_Clear(global::System.Runtime.InteropServices.HandleRef jarg1)
static void IntVarVector_Insert(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void IntVarVector_InsertRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr IntVarVector_getitemcopy(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static bool IntVarVector_Remove(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void delete_IntVarVector(global::System.Runtime.InteropServices.HandleRef jarg1)