DotNet Reference
.Net Reference
MPVariableVector.cs
Go to the documentation of this file.
13 public partial class MPVariableVector : global::System.IDisposable, global::System.Collections.IEnumerable, global::System.Collections.Generic.IList<Variable>
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<Variable> global::System.Collections.Generic.IEnumerable<Variable>.GetEnumerator() {
242 public MPVariableVector() : this(operations_research_linear_solverPINVOKE.new_MPVariableVector__SWIG_0(), true) {
245 public MPVariableVector(MPVariableVector other) : this(operations_research_linear_solverPINVOKE.new_MPVariableVector__SWIG_1(MPVariableVector.getCPtr(other)), true) {
246 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
249 public MPVariableVector(int capacity) : this(operations_research_linear_solverPINVOKE.new_MPVariableVector__SWIG_2(capacity), true) {
250 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
254 global::System.IntPtr cPtr = operations_research_linear_solverPINVOKE.MPVariableVector_getitemcopy(swigCPtr, index);
256 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
261 global::System.IntPtr cPtr = operations_research_linear_solverPINVOKE.MPVariableVector_getitem(swigCPtr, index);
263 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
268 operations_research_linear_solverPINVOKE.MPVariableVector_setitem(swigCPtr, index, Variable.getCPtr(val));
269 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
273 operations_research_linear_solverPINVOKE.MPVariableVector_AddRange(swigCPtr, MPVariableVector.getCPtr(values));
274 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
278 global::System.IntPtr cPtr = operations_research_linear_solverPINVOKE.MPVariableVector_GetRange(swigCPtr, index, count);
279 MPVariableVector ret = (cPtr == global::System.IntPtr.Zero) ? null : new MPVariableVector(cPtr, true);
280 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
285 operations_research_linear_solverPINVOKE.MPVariableVector_Insert(swigCPtr, index, Variable.getCPtr(x));
286 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
290 operations_research_linear_solverPINVOKE.MPVariableVector_InsertRange(swigCPtr, index, MPVariableVector.getCPtr(values));
291 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
296 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
301 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
305 global::System.IntPtr cPtr = operations_research_linear_solverPINVOKE.MPVariableVector_Repeat(Variable.getCPtr(value), count);
306 MPVariableVector ret = (cPtr == global::System.IntPtr.Zero) ? null : new MPVariableVector(cPtr, true);
307 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
316 operations_research_linear_solverPINVOKE.MPVariableVector_Reverse__SWIG_1(swigCPtr, index, count);
317 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
321 operations_research_linear_solverPINVOKE.MPVariableVector_SetRange(swigCPtr, index, MPVariableVector.getCPtr(values));
322 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
326 bool ret = operations_research_linear_solverPINVOKE.MPVariableVector_Contains(swigCPtr, Variable.getCPtr(value));
331 int ret = operations_research_linear_solverPINVOKE.MPVariableVector_IndexOf(swigCPtr, Variable.getCPtr(value));
336 int ret = operations_research_linear_solverPINVOKE.MPVariableVector_LastIndexOf(swigCPtr, Variable.getCPtr(value));
341 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:289
int IndexOf(Variable value)
Definition: MPVariableVector.cs:330
MPVariableVectorEnumerator GetEnumerator()
Definition: MPVariableVector.cs:150
MPVariableVector()
Definition: MPVariableVector.cs:242
static void delete_MPVariableVector(global::System.Runtime.InteropServices.HandleRef jarg1)
void SetRange(int index, MPVariableVector values)
Definition: MPVariableVector.cs:320
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:194
static bool Pending
Definition: operations_research_linear_solverPINVOKE.cs:133
void CopyTo(Variable[] array, int arrayIndex)
Definition: MPVariableVector.cs:113
void CopyTo(Variable[] array)
Definition: MPVariableVector.cs:108
static void MPVariableVector_Clear(global::System.Runtime.InteropServices.HandleRef jarg1)
bool IsSynchronized
Definition: MPVariableVector.cs:102
Definition: operations_research_linear_solverPINVOKE.cs:13
bool IsReadOnly
Definition: MPVariableVector.cs:70
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:335
bool swigCMemOwn
Definition: MPVariableVector.cs:16
void Reverse(int index, int count)
Definition: MPVariableVector.cs:315
MPVariableVector(MPVariableVector other)
Definition: MPVariableVector.cs:245
MPVariableVector(global::System.Collections.Generic.IEnumerable< Variable > c)
Definition: MPVariableVector.cs:56
MPVariableVector GetRange(int index, int count)
Definition: MPVariableVector.cs:277
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)
Variable[] ToArray()
Definition: MPVariableVector.cs:136
bool Contains(Variable value)
Definition: MPVariableVector.cs:325
bool Remove(Variable value)
Definition: MPVariableVector.cs:340
static uint MPVariableVector_size(global::System.Runtime.InteropServices.HandleRef jarg1)
Variable Current
Definition: MPVariableVector.cs:175
MPVariableVectorEnumerator(MPVariableVector collection)
Definition: MPVariableVector.cs:167
bool IsFixedSize
Definition: MPVariableVector.cs:64
Definition: operations_research_linear_solverPINVOKE.cs:127
void RemoveAt(int index)
Definition: MPVariableVector.cs:294
void Dispose()
Definition: MPVariableVector.cs:31
void AddRange(MPVariableVector values)
Definition: MPVariableVector.cs:272
MPVariableVector(int capacity)
Definition: MPVariableVector.cs:249
Note that the IEnumerator documentation requires an InvalidOperationException to be thrown whenever t...
Definition: MPVariableVector.cs:161
static void MPVariableVector_InsertRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
virtual void Dispose(bool disposing)
Definition: MPVariableVector.cs:36
static global::System.Exception Retrieve()
Definition: operations_research_linear_solverPINVOKE.cs:152
void Reset()
Definition: MPVariableVector.cs:206
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:224
MPVariableVector(global::System.Collections.IEnumerable c)
Definition: MPVariableVector.cs:48
void Reverse()
Definition: MPVariableVector.cs:311
void RemoveRange(int index, int count)
Definition: MPVariableVector.cs:299
void Dispose()
Definition: MPVariableVector.cs:214
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:284
void CopyTo(int index, Variable[] array, int arrayIndex, int count)
Definition: MPVariableVector.cs:118
static MPVariableVector Repeat(Variable value, int count)
Definition: MPVariableVector.cs:304