DotNet Reference
DotNet Reference
MPVariableVector.cs
Go to the documentation of this file.
13 public partial class MPVariableVector : global::System.IDisposable, global::System.Collections.IEnumerable
25 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
39 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
125 global::System.Collections.Generic.IEnumerator<Variable> global::System.Collections.Generic.IEnumerable<Variable>.GetEnumerator() {
225 public MPVariableVector() : this(operations_research_linear_solverPINVOKE.new_MPVariableVector__SWIG_0(), true) {
228 public MPVariableVector(MPVariableVector other) : this(operations_research_linear_solverPINVOKE.new_MPVariableVector__SWIG_1(MPVariableVector.getCPtr(other)), true) {
229 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
232 public MPVariableVector(int capacity) : this(operations_research_linear_solverPINVOKE.new_MPVariableVector__SWIG_2(capacity), true) {
233 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
237 global::System.IntPtr cPtr = operations_research_linear_solverPINVOKE.MPVariableVector_getitemcopy(swigCPtr, index);
239 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
244 global::System.IntPtr cPtr = operations_research_linear_solverPINVOKE.MPVariableVector_getitem(swigCPtr, index);
246 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
251 operations_research_linear_solverPINVOKE.MPVariableVector_setitem(swigCPtr, index, Variable.getCPtr(val));
252 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
256 operations_research_linear_solverPINVOKE.MPVariableVector_AddRange(swigCPtr, MPVariableVector.getCPtr(values));
257 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
261 global::System.IntPtr cPtr = operations_research_linear_solverPINVOKE.MPVariableVector_GetRange(swigCPtr, index, count);
262 MPVariableVector ret = (cPtr == global::System.IntPtr.Zero) ? null : new MPVariableVector(cPtr, true);
263 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
268 operations_research_linear_solverPINVOKE.MPVariableVector_Insert(swigCPtr, index, Variable.getCPtr(x));
269 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
273 operations_research_linear_solverPINVOKE.MPVariableVector_InsertRange(swigCPtr, index, MPVariableVector.getCPtr(values));
274 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
279 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 global::System.IntPtr cPtr = operations_research_linear_solverPINVOKE.MPVariableVector_Repeat(Variable.getCPtr(value), count);
289 MPVariableVector ret = (cPtr == global::System.IntPtr.Zero) ? null : new MPVariableVector(cPtr, true);
290 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
299 operations_research_linear_solverPINVOKE.MPVariableVector_Reverse__SWIG_1(swigCPtr, index, count);
300 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
304 operations_research_linear_solverPINVOKE.MPVariableVector_SetRange(swigCPtr, index, MPVariableVector.getCPtr(values));
305 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
309 bool ret = operations_research_linear_solverPINVOKE.MPVariableVector_Contains(swigCPtr, Variable.getCPtr(value));
314 int ret = operations_research_linear_solverPINVOKE.MPVariableVector_IndexOf(swigCPtr, Variable.getCPtr(value));
319 int ret = operations_research_linear_solverPINVOKE.MPVariableVector_LastIndexOf(swigCPtr, Variable.getCPtr(value));
324 bool ret = operations_research_linear_solverPINVOKE.MPVariableVector_Remove(swigCPtr, Variable.getCPtr(value));
static bool MPVariableVector_Remove(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr MPVariableVector_Repeat(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static int MPVariableVector_IndexOf(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void MPVariableVector_Insert(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void MPVariableVector_Reverse__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
void InsertRange(int index, MPVariableVector values)
Definition: MPVariableVector.cs:272
int IndexOf(Variable value)
Definition: MPVariableVector.cs:313
MPVariableVectorEnumerator GetEnumerator()
Definition: MPVariableVector.cs:133
MPVariableVector()
Definition: MPVariableVector.cs:225
static void delete_MPVariableVector(global::System.Runtime.InteropServices.HandleRef jarg1)
void SetRange(int index, MPVariableVector values)
Definition: MPVariableVector.cs:303
static bool MPVariableVector_Contains(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr MPVariableVector_GetRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
bool MoveNext()
Definition: MPVariableVector.cs:177
static bool Pending
Definition: operations_research_linear_solverPINVOKE.cs:132
void CopyTo(Variable[] array, int arrayIndex)
Definition: MPVariableVector.cs:102
void CopyTo(Variable[] array)
Definition: MPVariableVector.cs:97
static void MPVariableVector_Clear(global::System.Runtime.InteropServices.HandleRef jarg1)
bool IsSynchronized
Definition: MPVariableVector.cs:91
Definition: operations_research_linear_solverPINVOKE.cs:13
bool IsReadOnly
Definition: MPVariableVector.cs:59
static void MPVariableVector_AddRange(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void MPVariableVector_RemoveRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
static void MPVariableVector_RemoveAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
int LastIndexOf(Variable value)
Definition: MPVariableVector.cs:318
bool swigCMemOwn
Definition: MPVariableVector.cs:17
MPVariableVector(global::System.Collections.ICollection c)
Definition: MPVariableVector.cs:45
void Reverse(int index, int count)
Definition: MPVariableVector.cs:298
MPVariableVector(MPVariableVector other)
Definition: MPVariableVector.cs:228
MPVariableVector GetRange(int index, int count)
Definition: MPVariableVector.cs:260
static global::System.IntPtr MPVariableVector_getitemcopy(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void MPVariableVector_Reverse__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1)
bool Contains(Variable value)
Definition: MPVariableVector.cs:308
bool Remove(Variable value)
Definition: MPVariableVector.cs:323
static uint MPVariableVector_size(global::System.Runtime.InteropServices.HandleRef jarg1)
Variable Current
Definition: MPVariableVector.cs:158
MPVariableVectorEnumerator(MPVariableVector collection)
Definition: MPVariableVector.cs:150
bool IsFixedSize
Definition: MPVariableVector.cs:53
Definition: operations_research_linear_solverPINVOKE.cs:127
void RemoveAt(int index)
Definition: MPVariableVector.cs:277
void AddRange(MPVariableVector values)
Definition: MPVariableVector.cs:255
MPVariableVector(int capacity)
Definition: MPVariableVector.cs:232
Note that the IEnumerator documentation requires an InvalidOperationException to be thrown whenever t...
Definition: MPVariableVector.cs:142
static void MPVariableVector_InsertRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.Exception Retrieve()
Definition: operations_research_linear_solverPINVOKE.cs:151
void Reset()
Definition: MPVariableVector.cs:189
static void MPVariableVector_SetRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
void Add(Variable x)
Definition: MPVariableVector.cs:207
void Reverse()
Definition: MPVariableVector.cs:294
void RemoveRange(int index, int count)
Definition: MPVariableVector.cs:282
void Dispose()
Definition: MPVariableVector.cs:197
virtual void Dispose()
Definition: MPVariableVector.cs:32
static int MPVariableVector_LastIndexOf(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void MPVariableVector_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
void Insert(int index, Variable x)
Definition: MPVariableVector.cs:267
void CopyTo(int index, Variable[] array, int arrayIndex, int count)
Definition: MPVariableVector.cs:107
static MPVariableVector Repeat(Variable value, int count)
Definition: MPVariableVector.cs:287