DotNet Reference
DotNet Reference
CpIntVectorVector.cs
Go to the documentation of this file.
18 public partial class CpIntVectorVector : global::System.IDisposable, global::System.Collections.IEnumerable, global::System.Collections.Generic.IEnumerable<CpIntVector>
28 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(CpIntVectorVector obj) {
29 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
48 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
61 public CpIntVectorVector(global::System.Collections.Generic.IEnumerable<CpIntVector> c) : this() {
147 global::System.Collections.Generic.IEnumerator<CpIntVector> global::System.Collections.Generic.IEnumerable<CpIntVector>.GetEnumerator() {
230 operations_research_constraint_solverPINVOKE.CpIntVectorVector_Add(swigCPtr, CpIntVector.getCPtr(x));
231 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
248 public CpIntVectorVector() : this(operations_research_constraint_solverPINVOKE.new_CpIntVectorVector__SWIG_0(), true) {
251 public CpIntVectorVector(CpIntVectorVector other) : this(operations_research_constraint_solverPINVOKE.new_CpIntVectorVector__SWIG_1(CpIntVectorVector.getCPtr(other)), true) {
252 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
255 public CpIntVectorVector(int capacity) : this(operations_research_constraint_solverPINVOKE.new_CpIntVectorVector__SWIG_2(capacity), true) {
256 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
260 CpIntVector ret = new CpIntVector(operations_research_constraint_solverPINVOKE.CpIntVectorVector_getitemcopy(swigCPtr, index), true);
261 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
266 CpIntVector ret = new CpIntVector(operations_research_constraint_solverPINVOKE.CpIntVectorVector_getitem(swigCPtr, index), false);
267 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
272 operations_research_constraint_solverPINVOKE.CpIntVectorVector_setitem(swigCPtr, index, CpIntVector.getCPtr(val));
273 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
277 operations_research_constraint_solverPINVOKE.CpIntVectorVector_AddRange(swigCPtr, CpIntVectorVector.getCPtr(values));
278 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
282 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.CpIntVectorVector_GetRange(swigCPtr, index, count);
283 CpIntVectorVector ret = (cPtr == global::System.IntPtr.Zero) ? null : new CpIntVectorVector(cPtr, true);
284 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
289 operations_research_constraint_solverPINVOKE.CpIntVectorVector_Insert(swigCPtr, index, CpIntVector.getCPtr(x));
290 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
294 operations_research_constraint_solverPINVOKE.CpIntVectorVector_InsertRange(swigCPtr, index, CpIntVectorVector.getCPtr(values));
295 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
300 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
304 operations_research_constraint_solverPINVOKE.CpIntVectorVector_RemoveRange(swigCPtr, index, count);
305 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
309 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.CpIntVectorVector_Repeat(CpIntVector.getCPtr(value), count);
310 CpIntVectorVector ret = (cPtr == global::System.IntPtr.Zero) ? null : new CpIntVectorVector(cPtr, true);
311 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
320 operations_research_constraint_solverPINVOKE.CpIntVectorVector_Reverse__SWIG_1(swigCPtr, index, count);
321 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
325 operations_research_constraint_solverPINVOKE.CpIntVectorVector_SetRange(swigCPtr, index, CpIntVectorVector.getCPtr(values));
static void CpIntVectorVector_RemoveAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void CpIntVectorVector_RemoveRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
void Dispose()
Definition: CpIntVectorVector.cs:36
bool IsReadOnly
Definition: CpIntVectorVector.cs:75
bool MoveNext()
Definition: CpIntVectorVector.cs:199
static void CpIntVectorVector_SetRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
CpIntVector[] ToArray()
Definition: CpIntVectorVector.cs:141
static global::System.IntPtr CpIntVectorVector_Repeat(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
CpIntVector Current
Definition: CpIntVectorVector.cs:180
static void CpIntVectorVector_Insert(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr CpIntVectorVector_getitemcopy(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
void SetRange(int index, CpIntVectorVector values)
Definition: CpIntVectorVector.cs:324
static bool Pending
static void CpIntVectorVector_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
Definition: Assignment.cs:11
void RemoveAt(int index)
Definition: CpIntVectorVector.cs:298
static void CpIntVectorVector_InsertRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr CpIntVectorVector_GetRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
void InsertRange(int index, CpIntVectorVector values)
Definition: CpIntVectorVector.cs:293
void Insert(int index, CpIntVector x)
Definition: CpIntVectorVector.cs:288
void Clear()
Definition: CpIntVectorVector.cs:225
Google.OrTools.ConstraintSolver.operations_research_constraint_solverPINVOKE.CpIntVectorVector_Clear
static void CpIntVectorVector_Clear(global::System.Runtime.InteropServices.HandleRef jarg1)
int Capacity
Definition: CpIntVectorVector.cs:90
void AddRange(CpIntVectorVector values)
Definition: CpIntVectorVector.cs:276
void CopyTo(int index, CpIntVector[] array, int arrayIndex, int count)
Definition: CpIntVectorVector.cs:123
static CpIntVectorVector Repeat(CpIntVector value, int count)
Definition: CpIntVectorVector.cs:308
void Reverse()
Definition: CpIntVectorVector.cs:315
void RemoveRange(int index, int count)
Definition: CpIntVectorVector.cs:303
static void CpIntVectorVector_Reverse__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
bool IsFixedSize
Definition: CpIntVectorVector.cs:69
CpIntVectorVector(CpIntVectorVector other)
Definition: CpIntVectorVector.cs:251
static void CpIntVectorVector_AddRange(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
virtual void Dispose(bool disposing)
Definition: CpIntVectorVector.cs:41
Note that the IEnumerator documentation requires an InvalidOperationException to be thrown whenever t...
Definition: CpIntVectorVector.cs:164
CpIntVectorVector(global::System.Collections.Generic.IEnumerable< CpIntVector > c)
Definition: CpIntVectorVector.cs:61
void Add(CpIntVector x)
Definition: CpIntVectorVector.cs:229
void CopyTo(CpIntVector[] array, int arrayIndex)
Definition: CpIntVectorVector.cs:118
CpIntVectorVectorEnumerator(CpIntVectorVector collection)
Definition: CpIntVectorVector.cs:172
CpIntVectorVector(global::System.Collections.IEnumerable c)
Definition: CpIntVectorVector.cs:53
bool swigCMemOwn
Definition: CpIntVectorVector.cs:21
CpIntVectorVectorEnumerator GetEnumerator()
Definition: CpIntVectorVector.cs:155
static void CpIntVectorVector_Reverse__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1)
void CopyTo(CpIntVector[] array)
Definition: CpIntVectorVector.cs:113
static global::System.Exception Retrieve()
bool IsSynchronized
Definition: CpIntVectorVector.cs:107
void Dispose()
Definition: CpIntVectorVector.cs:219
static uint CpIntVectorVector_size(global::System.Runtime.InteropServices.HandleRef jarg1)
void Reset()
Definition: CpIntVectorVector.cs:211
CpIntVectorVector(int capacity)
Definition: CpIntVectorVector.cs:255
int Count
Definition: CpIntVectorVector.cs:101
void Reverse(int index, int count)
Definition: CpIntVectorVector.cs:319
static void delete_CpIntVectorVector(global::System.Runtime.InteropServices.HandleRef jarg1)
CpIntVectorVector GetRange(int index, int count)
Definition: CpIntVectorVector.cs:281
CpIntVectorVector()
Definition: CpIntVectorVector.cs:248