DotNet Reference
DotNet Reference
linear_solver/IntVector.cs
Go to the documentation of this file.
13 public class IntVector : global::System.IDisposable, global::System.Collections.IEnumerable, global::System.Collections.Generic.IList<int>
24 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
43 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
142 global::System.Collections.Generic.IEnumerator<int> global::System.Collections.Generic.IEnumerable<int>.GetEnumerator() {
242 public IntVector() : this(operations_research_linear_solverPINVOKE.new_IntVector__SWIG_0(), true) {
245 public IntVector(IntVector other) : this(operations_research_linear_solverPINVOKE.new_IntVector__SWIG_1(IntVector.getCPtr(other)), true) {
246 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
249 public IntVector(int capacity) : this(operations_research_linear_solverPINVOKE.new_IntVector__SWIG_2(capacity), true) {
250 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
255 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
261 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
267 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
271 operations_research_linear_solverPINVOKE.IntVector_AddRange(swigCPtr, IntVector.getCPtr(values));
272 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
276 global::System.IntPtr cPtr = operations_research_linear_solverPINVOKE.IntVector_GetRange(swigCPtr, index, count);
278 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
284 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
288 operations_research_linear_solverPINVOKE.IntVector_InsertRange(swigCPtr, index, IntVector.getCPtr(values));
289 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
294 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
299 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
303 global::System.IntPtr cPtr = operations_research_linear_solverPINVOKE.IntVector_Repeat(value, count);
305 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
315 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
319 operations_research_linear_solverPINVOKE.IntVector_SetRange(swigCPtr, index, IntVector.getCPtr(values));
IntVector()
Definition: linear_solver/IntVector.cs:242
static uint IntVector_size(global::System.Runtime.InteropServices.HandleRef jarg1)
bool Contains(int value)
Definition: linear_solver/IntVector.cs:323
static global::System.IntPtr IntVector_GetRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
static void IntVector_Clear(global::System.Runtime.InteropServices.HandleRef jarg1)
void Reset()
Definition: linear_solver/IntVector.cs:206
void Insert(int index, int x)
Definition: linear_solver/IntVector.cs:282
bool IsFixedSize
Definition: linear_solver/IntVector.cs:64
static void IntVector_Reverse__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1)
IntVector(global::System.Collections.IEnumerable c)
Definition: linear_solver/IntVector.cs:48
void RemoveAt(int index)
Definition: linear_solver/IntVector.cs:292
static void IntVector_InsertRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static int IntVector_IndexOf(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
bool MoveNext()
Definition: linear_solver/IntVector.cs:194
void InsertRange(int index, IntVector values)
Definition: linear_solver/IntVector.cs:287
bool swigCMemOwn
Definition: linear_solver/IntVector.cs:16
static global::System.IntPtr IntVector_Repeat(int jarg1, int jarg2)
static void IntVector_RemoveRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
static bool Pending
Definition: operations_research_linear_solverPINVOKE.cs:133
void Dispose()
Definition: linear_solver/IntVector.cs:214
static int IntVector_getitemcopy(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
void Reverse()
Definition: linear_solver/IntVector.cs:309
Definition: operations_research_linear_solverPINVOKE.cs:13
static void IntVector_RemoveAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
IntVector(IntVector other)
Definition: linear_solver/IntVector.cs:245
static void delete_IntVector(global::System.Runtime.InteropServices.HandleRef jarg1)
IntVectorEnumerator(IntVector collection)
Definition: linear_solver/IntVector.cs:167
static void IntVector_SetRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
int LastIndexOf(int value)
Definition: linear_solver/IntVector.cs:333
static int IntVector_LastIndexOf(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void IntVector_Add(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
void Dispose()
Definition: linear_solver/IntVector.cs:31
static void IntVector_AddRange(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
void SetRange(int index, IntVector values)
Definition: linear_solver/IntVector.cs:318
static bool IntVector_Remove(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
IntVector(global::System.Collections.Generic.IEnumerable< int > c)
Definition: linear_solver/IntVector.cs:56
bool IsSynchronized
Definition: linear_solver/IntVector.cs:102
static bool IntVector_Contains(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void IntVector_Insert(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
void RemoveRange(int index, int count)
Definition: linear_solver/IntVector.cs:297
Definition: operations_research_linear_solverPINVOKE.cs:127
static void IntVector_Reverse__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
Note that the IEnumerator documentation requires an InvalidOperationException to be thrown whenever t...
Definition: linear_solver/IntVector.cs:161
void CopyTo(int[] array, int arrayIndex)
Definition: linear_solver/IntVector.cs:113
bool IsReadOnly
Definition: linear_solver/IntVector.cs:70
int[] ToArray()
Definition: linear_solver/IntVector.cs:136
int IndexOf(int value)
Definition: linear_solver/IntVector.cs:328
IntVector GetRange(int index, int count)
Definition: linear_solver/IntVector.cs:275
virtual void Dispose(bool disposing)
Definition: linear_solver/IntVector.cs:36
static global::System.Exception Retrieve()
Definition: operations_research_linear_solverPINVOKE.cs:152
int Current
Definition: linear_solver/IntVector.cs:175
static IntVector Repeat(int value, int count)
Definition: linear_solver/IntVector.cs:302
void Reverse(int index, int count)
Definition: linear_solver/IntVector.cs:313
void CopyTo(int[] array)
Definition: linear_solver/IntVector.cs:108
void AddRange(IntVector values)
Definition: linear_solver/IntVector.cs:270
IntVector(int capacity)
Definition: linear_solver/IntVector.cs:249
void CopyTo(int index, int[] array, int arrayIndex, int count)
Definition: linear_solver/IntVector.cs:118
IntVectorEnumerator GetEnumerator()
Definition: linear_solver/IntVector.cs:150
bool Remove(int value)
Definition: linear_solver/IntVector.cs:338