DotNet Reference
DotNet Reference
MpDoubleVector.cs
Go to the documentation of this file.
13 public partial class MpDoubleVector : global::System.IDisposable, global::System.Collections.IEnumerable, global::System.Collections.Generic.IList<double>
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<double> global::System.Collections.Generic.IEnumerable<double>.GetEnumerator() {
242 public MpDoubleVector() : this(operations_research_linear_solverPINVOKE.new_MpDoubleVector__SWIG_0(), true) {
245 public MpDoubleVector(MpDoubleVector other) : this(operations_research_linear_solverPINVOKE.new_MpDoubleVector__SWIG_1(MpDoubleVector.getCPtr(other)), true) {
246 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
249 public MpDoubleVector(int capacity) : this(operations_research_linear_solverPINVOKE.new_MpDoubleVector__SWIG_2(capacity), true) {
250 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
254 double ret = operations_research_linear_solverPINVOKE.MpDoubleVector_getitemcopy(swigCPtr, index);
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.MpDoubleVector_AddRange(swigCPtr, MpDoubleVector.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.MpDoubleVector_GetRange(swigCPtr, index, count);
277 MpDoubleVector ret = (cPtr == global::System.IntPtr.Zero) ? null : new MpDoubleVector(cPtr, true);
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.MpDoubleVector_InsertRange(swigCPtr, index, MpDoubleVector.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.MpDoubleVector_Repeat(value, count);
304 MpDoubleVector ret = (cPtr == global::System.IntPtr.Zero) ? null : new MpDoubleVector(cPtr, true);
305 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
314 operations_research_linear_solverPINVOKE.MpDoubleVector_Reverse__SWIG_1(swigCPtr, index, count);
315 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
319 operations_research_linear_solverPINVOKE.MpDoubleVector_SetRange(swigCPtr, index, MpDoubleVector.getCPtr(values));
static uint MpDoubleVector_size(global::System.Runtime.InteropServices.HandleRef jarg1)
virtual void Dispose(bool disposing)
Definition: MpDoubleVector.cs:36
MpDoubleVectorEnumerator(MpDoubleVector collection)
Definition: MpDoubleVector.cs:167
bool IsReadOnly
Definition: MpDoubleVector.cs:70
static int MpDoubleVector_LastIndexOf(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
bool MoveNext()
Definition: MpDoubleVector.cs:194
void RemoveAt(int index)
Definition: MpDoubleVector.cs:292
bool IsFixedSize
Definition: MpDoubleVector.cs:64
static void MpDoubleVector_Add(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static bool Pending
Definition: operations_research_linear_solverPINVOKE.cs:133
void AddRange(MpDoubleVector values)
Definition: MpDoubleVector.cs:270
static bool MpDoubleVector_Contains(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
Definition: operations_research_linear_solverPINVOKE.cs:13
static void MpDoubleVector_RemoveRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
MpDoubleVector GetRange(int index, int count)
Definition: MpDoubleVector.cs:275
int LastIndexOf(double value)
Definition: MpDoubleVector.cs:333
static global::System.IntPtr MpDoubleVector_Repeat(double jarg1, int jarg2)
MpDoubleVector(int capacity)
Definition: MpDoubleVector.cs:249
static bool MpDoubleVector_Remove(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static void delete_MpDoubleVector(global::System.Runtime.InteropServices.HandleRef jarg1)
static void MpDoubleVector_InsertRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static int MpDoubleVector_IndexOf(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
double[] ToArray()
Definition: MpDoubleVector.cs:136
static void MpDoubleVector_Reverse__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1)
void CopyTo(double[] array)
Definition: MpDoubleVector.cs:108
Definition: operations_research_linear_solverPINVOKE.cs:127
static void MpDoubleVector_AddRange(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
MpDoubleVector()
Definition: MpDoubleVector.cs:242
static double MpDoubleVector_getitemcopy(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
bool swigCMemOwn
Definition: MpDoubleVector.cs:16
static global::System.IntPtr MpDoubleVector_GetRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
bool Contains(double value)
Definition: MpDoubleVector.cs:323
void CopyTo(double[] array, int arrayIndex)
Definition: MpDoubleVector.cs:113
MpDoubleVector(global::System.Collections.Generic.IEnumerable< double > c)
Definition: MpDoubleVector.cs:56
double Current
Definition: MpDoubleVector.cs:175
void Insert(int index, double x)
Definition: MpDoubleVector.cs:282
static global::System.Exception Retrieve()
Definition: operations_research_linear_solverPINVOKE.cs:152
void Reverse(int index, int count)
Definition: MpDoubleVector.cs:313
void RemoveRange(int index, int count)
Definition: MpDoubleVector.cs:297
static void MpDoubleVector_RemoveAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
void InsertRange(int index, MpDoubleVector values)
Definition: MpDoubleVector.cs:287
int IndexOf(double value)
Definition: MpDoubleVector.cs:328
static MpDoubleVector Repeat(double value, int count)
Definition: MpDoubleVector.cs:302
MpDoubleVectorEnumerator GetEnumerator()
Definition: MpDoubleVector.cs:150
void Reset()
Definition: MpDoubleVector.cs:206
static void MpDoubleVector_Insert(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, double jarg3)
static void MpDoubleVector_SetRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
MpDoubleVector(global::System.Collections.IEnumerable c)
Definition: MpDoubleVector.cs:48
bool IsSynchronized
Definition: MpDoubleVector.cs:102
void SetRange(int index, MpDoubleVector values)
Definition: MpDoubleVector.cs:318
bool Remove(double value)
Definition: MpDoubleVector.cs:338
void CopyTo(int index, double[] array, int arrayIndex, int count)
Definition: MpDoubleVector.cs:118
void Dispose()
Definition: MpDoubleVector.cs:214
static void MpDoubleVector_Clear(global::System.Runtime.InteropServices.HandleRef jarg1)
MpDoubleVector(MpDoubleVector other)
Definition: MpDoubleVector.cs:245
static void MpDoubleVector_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: MpDoubleVector.cs:159