DotNet Reference
DotNet Reference
constraint_solver/IntVector.cs
Go to the documentation of this file.
18 public class IntVector : 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 IntVector() : this(operations_research_constraint_solverPINVOKE.new_IntVector__SWIG_0(), true) {
250 public IntVector(IntVector other) : this(operations_research_constraint_solverPINVOKE.new_IntVector__SWIG_1(IntVector.getCPtr(other)), true) {
251 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
254 public IntVector(int capacity) : this(operations_research_constraint_solverPINVOKE.new_IntVector__SWIG_2(capacity), true) {
255 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
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.IntVector_AddRange(swigCPtr, IntVector.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.IntVector_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.IntVector_InsertRange(swigCPtr, index, IntVector.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.IntVector_Repeat(value, count);
310 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
320 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
324 operations_research_constraint_solverPINVOKE.IntVector_SetRange(swigCPtr, index, IntVector.getCPtr(values));
void CopyTo(int index, int[] array, int arrayIndex, int count)
Definition: constraint_solver/IntVector.cs:123
static void IntVector_RemoveAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
IntVector(global::System.Collections.IEnumerable c)
Definition: constraint_solver/IntVector.cs:53
static void IntVector_SetRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static bool IntVector_Contains(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static global::System.IntPtr IntVector_Repeat(int jarg1, int jarg2)
static void IntVector_InsertRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
bool swigCMemOwn
Definition: constraint_solver/IntVector.cs:21
bool IsFixedSize
Definition: constraint_solver/IntVector.cs:69
void Dispose()
Definition: constraint_solver/IntVector.cs:36
static int IntVector_IndexOf(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
void Insert(int index, int x)
Definition: constraint_solver/IntVector.cs:287
void SetRange(int index, IntVector values)
Definition: constraint_solver/IntVector.cs:323
IntVectorEnumerator(IntVector collection)
Definition: constraint_solver/IntVector.cs:172
void RemoveAt(int index)
Definition: constraint_solver/IntVector.cs:297
static bool Pending
void Reverse(int index, int count)
Definition: constraint_solver/IntVector.cs:318
static uint IntVector_size(global::System.Runtime.InteropServices.HandleRef jarg1)
int Count
Definition: constraint_solver/IntVector.cs:101
IntVector()
Definition: constraint_solver/IntVector.cs:247
void Clear()
Definition: constraint_solver/IntVector.cs:225
static bool IntVector_Remove(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
IntVector(int capacity)
Definition: constraint_solver/IntVector.cs:254
static void IntVector_Add(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
Definition: Assignment.cs:11
int Capacity
Definition: constraint_solver/IntVector.cs:90
static void IntVector_Insert(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
IntVectorEnumerator GetEnumerator()
Definition: constraint_solver/IntVector.cs:155
IntVector(global::System.Collections.Generic.IEnumerable< int > c)
Definition: constraint_solver/IntVector.cs:61
Note that the IEnumerator documentation requires an InvalidOperationException to be thrown whenever t...
Definition: constraint_solver/IntVector.cs:166
void CopyTo(int[] array, int arrayIndex)
Definition: constraint_solver/IntVector.cs:118
static IntVector Repeat(int value, int count)
Definition: constraint_solver/IntVector.cs:307
static void IntVector_Reverse__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
virtual void Dispose(bool disposing)
Definition: constraint_solver/IntVector.cs:41
void RemoveRange(int index, int count)
Definition: constraint_solver/IntVector.cs:302
int LastIndexOf(int value)
Definition: constraint_solver/IntVector.cs:338
static void IntVector_Reverse__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1)
int IndexOf(int value)
Definition: constraint_solver/IntVector.cs:333
static global::System.IntPtr IntVector_GetRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
static void IntVector_AddRange(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
void CopyTo(int[] array)
Definition: constraint_solver/IntVector.cs:113
static int IntVector_getitemcopy(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
void Reverse()
Definition: constraint_solver/IntVector.cs:314
void Dispose()
Definition: constraint_solver/IntVector.cs:219
IntVector GetRange(int index, int count)
Definition: constraint_solver/IntVector.cs:280
static void delete_IntVector(global::System.Runtime.InteropServices.HandleRef jarg1)
void Reset()
Definition: constraint_solver/IntVector.cs:211
static void IntVector_RemoveRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
bool IsSynchronized
Definition: constraint_solver/IntVector.cs:107
int[] ToArray()
Definition: constraint_solver/IntVector.cs:141
IntVector(IntVector other)
Definition: constraint_solver/IntVector.cs:250
int Current
Definition: constraint_solver/IntVector.cs:180
bool Contains(int value)
Definition: constraint_solver/IntVector.cs:328
void InsertRange(int index, IntVector values)
Definition: constraint_solver/IntVector.cs:292
void AddRange(IntVector values)
Definition: constraint_solver/IntVector.cs:275
bool IsReadOnly
Definition: constraint_solver/IntVector.cs:75
static void IntVector_Clear(global::System.Runtime.InteropServices.HandleRef jarg1)
bool MoveNext()
Definition: constraint_solver/IntVector.cs:199
static global::System.Exception Retrieve()
void Add(int x)
Definition: constraint_solver/IntVector.cs:229
bool Remove(int value)
Definition: constraint_solver/IntVector.cs:343
static int IntVector_LastIndexOf(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)