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