DotNet Reference
DotNet Reference
linear_solver/IntVectorVector.cs
Go to the documentation of this file.
13 public class IntVectorVector : global::System.IDisposable, global::System.Collections.IEnumerable, global::System.Collections.Generic.IEnumerable<IntVector>
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<IntVector> global::System.Collections.Generic.IEnumerable<IntVector>.GetEnumerator() {
226 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
243 public IntVectorVector() : this(operations_research_linear_solverPINVOKE.new_IntVectorVector__SWIG_0(), true) {
246 public IntVectorVector(IntVectorVector other) : this(operations_research_linear_solverPINVOKE.new_IntVectorVector__SWIG_1(IntVectorVector.getCPtr(other)), true) {
247 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
250 public IntVectorVector(int capacity) : this(operations_research_linear_solverPINVOKE.new_IntVectorVector__SWIG_2(capacity), true) {
251 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
255 IntVector ret = new IntVector(operations_research_linear_solverPINVOKE.IntVectorVector_getitemcopy(swigCPtr, index), true);
256 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
261 IntVector ret = new IntVector(operations_research_linear_solverPINVOKE.IntVectorVector_getitem(swigCPtr, index), false);
262 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
267 operations_research_linear_solverPINVOKE.IntVectorVector_setitem(swigCPtr, index, IntVector.getCPtr(val));
268 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
272 operations_research_linear_solverPINVOKE.IntVectorVector_AddRange(swigCPtr, IntVectorVector.getCPtr(values));
273 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
277 global::System.IntPtr cPtr = operations_research_linear_solverPINVOKE.IntVectorVector_GetRange(swigCPtr, index, count);
278 IntVectorVector ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntVectorVector(cPtr, true);
279 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
284 operations_research_linear_solverPINVOKE.IntVectorVector_Insert(swigCPtr, index, IntVector.getCPtr(x));
285 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
289 operations_research_linear_solverPINVOKE.IntVectorVector_InsertRange(swigCPtr, index, IntVectorVector.getCPtr(values));
290 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
295 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
300 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
304 global::System.IntPtr cPtr = operations_research_linear_solverPINVOKE.IntVectorVector_Repeat(IntVector.getCPtr(value), count);
305 IntVectorVector ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntVectorVector(cPtr, true);
306 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
315 operations_research_linear_solverPINVOKE.IntVectorVector_Reverse__SWIG_1(swigCPtr, index, count);
316 if (operations_research_linear_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_linear_solverPINVOKE.SWIGPendingException.Retrieve();
320 operations_research_linear_solverPINVOKE.IntVectorVector_SetRange(swigCPtr, index, IntVectorVector.getCPtr(values));
static void IntVectorVector_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntVectorVector Repeat(IntVector value, int count)
Definition: linear_solver/IntVectorVector.cs:303
void CopyTo(int index, IntVector[] array, int arrayIndex, int count)
Definition: linear_solver/IntVectorVector.cs:118
void Dispose()
Definition: linear_solver/IntVectorVector.cs:31
bool IsFixedSize
Definition: linear_solver/IntVectorVector.cs:64
void Insert(int index, IntVector x)
Definition: linear_solver/IntVectorVector.cs:283
IntVectorVector GetRange(int index, int count)
Definition: linear_solver/IntVectorVector.cs:276
static void IntVectorVector_Clear(global::System.Runtime.InteropServices.HandleRef jarg1)
virtual void Dispose(bool disposing)
Definition: linear_solver/IntVectorVector.cs:36
void Reset()
Definition: linear_solver/IntVectorVector.cs:206
void RemoveRange(int index, int count)
Definition: linear_solver/IntVectorVector.cs:298
static bool Pending
Definition: operations_research_linear_solverPINVOKE.cs:133
void Dispose()
Definition: linear_solver/IntVectorVector.cs:214
Definition: operations_research_linear_solverPINVOKE.cs:13
int Capacity
Definition: linear_solver/IntVectorVector.cs:85
Google.OrTools.LinearSolver.operations_research_linear_solverPINVOKE.IntVectorVector_Reverse__SWIG_1
static void IntVectorVector_Reverse__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
static global::System.IntPtr IntVectorVector_getitemcopy(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
Google.OrTools.LinearSolver.operations_research_linear_solverPINVOKE.IntVectorVector_Reverse__SWIG_0
static void IntVectorVector_Reverse__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1)
static void IntVectorVector_RemoveRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
bool IsSynchronized
Definition: linear_solver/IntVectorVector.cs:102
void RemoveAt(int index)
Definition: linear_solver/IntVectorVector.cs:293
void Clear()
Definition: linear_solver/IntVectorVector.cs:220
static void IntVectorVector_SetRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
Note that the IEnumerator documentation requires an InvalidOperationException to be thrown whenever t...
Definition: linear_solver/IntVectorVector.cs:161
IntVectorVector(int capacity)
Definition: linear_solver/IntVectorVector.cs:250
bool IsReadOnly
Definition: linear_solver/IntVectorVector.cs:70
void InsertRange(int index, IntVectorVector values)
Definition: linear_solver/IntVectorVector.cs:288
static global::System.IntPtr IntVectorVector_GetRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
int Count
Definition: linear_solver/IntVectorVector.cs:96
void Add(IntVector x)
Definition: linear_solver/IntVectorVector.cs:224
Definition: operations_research_linear_solverPINVOKE.cs:127
void SetRange(int index, IntVectorVector values)
Definition: linear_solver/IntVectorVector.cs:319
void Reverse()
Definition: linear_solver/IntVectorVector.cs:310
static uint IntVectorVector_size(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr IntVectorVector_Repeat(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
IntVectorVectorEnumerator GetEnumerator()
Definition: linear_solver/IntVectorVector.cs:150
void Reverse(int index, int count)
Definition: linear_solver/IntVectorVector.cs:314
static void IntVectorVector_Insert(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
IntVectorVector()
Definition: linear_solver/IntVectorVector.cs:243
bool MoveNext()
Definition: linear_solver/IntVectorVector.cs:194
bool swigCMemOwn
Definition: linear_solver/IntVectorVector.cs:16
void CopyTo(IntVector[] array, int arrayIndex)
Definition: linear_solver/IntVectorVector.cs:113
IntVectorVector(global::System.Collections.Generic.IEnumerable< IntVector > c)
Definition: linear_solver/IntVectorVector.cs:56
IntVectorVector(global::System.Collections.IEnumerable c)
Definition: linear_solver/IntVectorVector.cs:48
IntVectorVectorEnumerator(IntVectorVector collection)
Definition: linear_solver/IntVectorVector.cs:167
static global::System.Exception Retrieve()
Definition: operations_research_linear_solverPINVOKE.cs:152
IntVectorVector(IntVectorVector other)
Definition: linear_solver/IntVectorVector.cs:246
IntVector[] ToArray()
Definition: linear_solver/IntVectorVector.cs:136
void CopyTo(IntVector[] array)
Definition: linear_solver/IntVectorVector.cs:108
void AddRange(IntVectorVector values)
Definition: linear_solver/IntVectorVector.cs:271
static void IntVectorVector_AddRange(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void IntVectorVector_RemoveAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void delete_IntVectorVector(global::System.Runtime.InteropServices.HandleRef jarg1)
IntVector Current
Definition: linear_solver/IntVectorVector.cs:175
static void IntVectorVector_InsertRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)