DotNet Reference
.Net Reference
MPConstraintVector.cs
Go to the documentation of this file.
13 public partial class MPConstraintVector : global::System.IDisposable, global::System.Collections.IEnumerable, global::System.Collections.Generic.IList<Constraint>
23 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(MPConstraintVector obj) {
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);
56 public MPConstraintVector(global::System.Collections.Generic.IEnumerable<Constraint> c) : this() {
142 global::System.Collections.Generic.IEnumerator<Constraint> global::System.Collections.Generic.IEnumerable<Constraint>.GetEnumerator() {
225 operations_research_linear_solverPINVOKE.MPConstraintVector_Add(swigCPtr, Constraint.getCPtr(x));
242 public MPConstraintVector() : this(operations_research_linear_solverPINVOKE.new_MPConstraintVector__SWIG_0(), true) {
245 public MPConstraintVector(MPConstraintVector other) : this(operations_research_linear_solverPINVOKE.new_MPConstraintVector__SWIG_1(MPConstraintVector.getCPtr(other)), true) {
246 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
249 public MPConstraintVector(int capacity) : this(operations_research_linear_solverPINVOKE.new_MPConstraintVector__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.MPConstraintVector_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.MPConstraintVector_getitem(swigCPtr, index);
263 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
268 operations_research_linear_solverPINVOKE.MPConstraintVector_setitem(swigCPtr, index, Constraint.getCPtr(val));
269 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
273 operations_research_linear_solverPINVOKE.MPConstraintVector_AddRange(swigCPtr, MPConstraintVector.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.MPConstraintVector_GetRange(swigCPtr, index, count);
279 MPConstraintVector ret = (cPtr == global::System.IntPtr.Zero) ? null : new MPConstraintVector(cPtr, true);
280 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
285 operations_research_linear_solverPINVOKE.MPConstraintVector_Insert(swigCPtr, index, Constraint.getCPtr(x));
286 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
290 operations_research_linear_solverPINVOKE.MPConstraintVector_InsertRange(swigCPtr, index, MPConstraintVector.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();
300 operations_research_linear_solverPINVOKE.MPConstraintVector_RemoveRange(swigCPtr, index, count);
301 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
305 global::System.IntPtr cPtr = operations_research_linear_solverPINVOKE.MPConstraintVector_Repeat(Constraint.getCPtr(value), count);
306 MPConstraintVector ret = (cPtr == global::System.IntPtr.Zero) ? null : new MPConstraintVector(cPtr, true);
307 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
316 operations_research_linear_solverPINVOKE.MPConstraintVector_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.MPConstraintVector_SetRange(swigCPtr, index, MPConstraintVector.getCPtr(values));
322 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
326 bool ret = operations_research_linear_solverPINVOKE.MPConstraintVector_Contains(swigCPtr, Constraint.getCPtr(value));
331 int ret = operations_research_linear_solverPINVOKE.MPConstraintVector_IndexOf(swigCPtr, Constraint.getCPtr(value));
336 int ret = operations_research_linear_solverPINVOKE.MPConstraintVector_LastIndexOf(swigCPtr, Constraint.getCPtr(value));
341 bool ret = operations_research_linear_solverPINVOKE.MPConstraintVector_Remove(swigCPtr, Constraint.getCPtr(value));
void Add(Constraint x)
Definition: MPConstraintVector.cs:224
void Dispose()
Definition: MPConstraintVector.cs:214
virtual void Dispose(bool disposing)
Definition: MPConstraintVector.cs:36
MPConstraintVectorEnumerator(MPConstraintVector collection)
Definition: MPConstraintVector.cs:167
static int MPConstraintVector_IndexOf(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
MPConstraintVector(global::System.Collections.Generic.IEnumerable< Constraint > c)
Definition: MPConstraintVector.cs:56
Constraint Current
Definition: MPConstraintVector.cs:175
MPConstraintVector(int capacity)
Definition: MPConstraintVector.cs:249
bool MoveNext()
Definition: MPConstraintVector.cs:194
void AddRange(MPConstraintVector values)
Definition: MPConstraintVector.cs:272
static void MPConstraintVector_Reverse__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
Constraint[] ToArray()
Definition: MPConstraintVector.cs:136
MPConstraintVectorEnumerator GetEnumerator()
Definition: MPConstraintVector.cs:150
static void MPConstraintVector_RemoveRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
MPConstraintVector(MPConstraintVector other)
Definition: MPConstraintVector.cs:245
void Reset()
Definition: MPConstraintVector.cs:206
static global::System.IntPtr MPConstraintVector_Repeat(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
MPConstraintVector(global::System.Collections.IEnumerable c)
Definition: MPConstraintVector.cs:48
static bool Pending
Definition: operations_research_linear_solverPINVOKE.cs:133
void Clear()
Definition: MPConstraintVector.cs:220
Definition: operations_research_linear_solverPINVOKE.cs:13
static void MPConstraintVector_InsertRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr MPConstraintVector_GetRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
static void MPConstraintVector_Reverse__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1)
bool swigCMemOwn
Definition: MPConstraintVector.cs:16
int Capacity
Definition: MPConstraintVector.cs:85
void SetRange(int index, MPConstraintVector values)
Definition: MPConstraintVector.cs:320
static bool MPConstraintVector_Contains(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void MPConstraintVector_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static MPConstraintVector Repeat(Constraint value, int count)
Definition: MPConstraintVector.cs:304
bool Remove(Constraint value)
Definition: MPConstraintVector.cs:340
void CopyTo(Constraint[] array, int arrayIndex)
Definition: MPConstraintVector.cs:113
MPConstraintVector GetRange(int index, int count)
Definition: MPConstraintVector.cs:277
int IndexOf(Constraint value)
Definition: MPConstraintVector.cs:330
static bool MPConstraintVector_Remove(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
void RemoveRange(int index, int count)
Definition: MPConstraintVector.cs:299
bool IsSynchronized
Definition: MPConstraintVector.cs:102
static void delete_MPConstraintVector(global::System.Runtime.InteropServices.HandleRef jarg1)
void Insert(int index, Constraint x)
Definition: MPConstraintVector.cs:284
Definition: operations_research_linear_solverPINVOKE.cs:127
bool IsFixedSize
Definition: MPConstraintVector.cs:64
static uint MPConstraintVector_size(global::System.Runtime.InteropServices.HandleRef jarg1)
static int MPConstraintVector_LastIndexOf(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void MPConstraintVector_RemoveAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
void Dispose()
Definition: MPConstraintVector.cs:31
Note that the IEnumerator documentation requires an InvalidOperationException to be thrown whenever t...
Definition: MPConstraintVector.cs:161
void CopyTo(Constraint[] array)
Definition: MPConstraintVector.cs:108
void CopyTo(int index, Constraint[] array, int arrayIndex, int count)
Definition: MPConstraintVector.cs:118
void RemoveAt(int index)
Definition: MPConstraintVector.cs:294
static global::System.Exception Retrieve()
Definition: operations_research_linear_solverPINVOKE.cs:152
void Reverse(int index, int count)
Definition: MPConstraintVector.cs:315
static global::System.IntPtr MPConstraintVector_getitemcopy(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
MPConstraintVector()
Definition: MPConstraintVector.cs:242
bool IsReadOnly
Definition: MPConstraintVector.cs:70
static void MPConstraintVector_Insert(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
void InsertRange(int index, MPConstraintVector values)
Definition: MPConstraintVector.cs:289
void Reverse()
Definition: MPConstraintVector.cs:311
int LastIndexOf(Constraint value)
Definition: MPConstraintVector.cs:335
static void MPConstraintVector_AddRange(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void MPConstraintVector_Clear(global::System.Runtime.InteropServices.HandleRef jarg1)
bool Contains(Constraint value)
Definition: MPConstraintVector.cs:325
static void MPConstraintVector_SetRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)