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
29 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(CpIntVectorVector obj) {
30 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
44 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
130 global::System.Collections.Generic.IEnumerator<CpIntVector> global::System.Collections.Generic.IEnumerable<CpIntVector>.GetEnumerator() {
213 operations_research_constraint_solverPINVOKE.CpIntVectorVector_Add(swigCPtr, CpIntVector.getCPtr(x));
214 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
231 public CpIntVectorVector() : this(operations_research_constraint_solverPINVOKE.new_CpIntVectorVector__SWIG_0(), true) {
234 public CpIntVectorVector(CpIntVectorVector other) : this(operations_research_constraint_solverPINVOKE.new_CpIntVectorVector__SWIG_1(CpIntVectorVector.getCPtr(other)), true) {
235 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
238 public CpIntVectorVector(int capacity) : this(operations_research_constraint_solverPINVOKE.new_CpIntVectorVector__SWIG_2(capacity), true) {
239 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
243 CpIntVector ret = new CpIntVector(operations_research_constraint_solverPINVOKE.CpIntVectorVector_getitemcopy(swigCPtr, index), true);
244 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
249 CpIntVector ret = new CpIntVector(operations_research_constraint_solverPINVOKE.CpIntVectorVector_getitem(swigCPtr, index), false);
250 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
255 operations_research_constraint_solverPINVOKE.CpIntVectorVector_setitem(swigCPtr, index, CpIntVector.getCPtr(val));
256 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
260 operations_research_constraint_solverPINVOKE.CpIntVectorVector_AddRange(swigCPtr, CpIntVectorVector.getCPtr(values));
261 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
265 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.CpIntVectorVector_GetRange(swigCPtr, index, count);
266 CpIntVectorVector ret = (cPtr == global::System.IntPtr.Zero) ? null : new CpIntVectorVector(cPtr, true);
267 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
272 operations_research_constraint_solverPINVOKE.CpIntVectorVector_Insert(swigCPtr, index, CpIntVector.getCPtr(x));
273 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
277 operations_research_constraint_solverPINVOKE.CpIntVectorVector_InsertRange(swigCPtr, index, CpIntVectorVector.getCPtr(values));
278 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
283 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
287 operations_research_constraint_solverPINVOKE.CpIntVectorVector_RemoveRange(swigCPtr, index, count);
288 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
292 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.CpIntVectorVector_Repeat(CpIntVector.getCPtr(value), count);
293 CpIntVectorVector ret = (cPtr == global::System.IntPtr.Zero) ? null : new CpIntVectorVector(cPtr, true);
294 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
303 operations_research_constraint_solverPINVOKE.CpIntVectorVector_Reverse__SWIG_1(swigCPtr, index, count);
304 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
308 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)
bool IsReadOnly
Definition: CpIntVectorVector.cs:64
bool MoveNext()
Definition: CpIntVectorVector.cs:182
static void CpIntVectorVector_SetRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr CpIntVectorVector_Repeat(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
CpIntVector Current
Definition: CpIntVectorVector.cs:163
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:307
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:281
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:276
void Insert(int index, CpIntVector x)
Definition: CpIntVectorVector.cs:271
void Clear()
Definition: CpIntVectorVector.cs:208
Google.OrTools.ConstraintSolver.operations_research_constraint_solverPINVOKE.CpIntVectorVector_Clear
static void CpIntVectorVector_Clear(global::System.Runtime.InteropServices.HandleRef jarg1)
int Capacity
Definition: CpIntVectorVector.cs:79
void AddRange(CpIntVectorVector values)
Definition: CpIntVectorVector.cs:259
void CopyTo(int index, CpIntVector[] array, int arrayIndex, int count)
Definition: CpIntVectorVector.cs:112
virtual void Dispose()
Definition: CpIntVectorVector.cs:37
static CpIntVectorVector Repeat(CpIntVector value, int count)
Definition: CpIntVectorVector.cs:291
void Reverse()
Definition: CpIntVectorVector.cs:298
void RemoveRange(int index, int count)
Definition: CpIntVectorVector.cs:286
static void CpIntVectorVector_Reverse__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
bool IsFixedSize
Definition: CpIntVectorVector.cs:58
CpIntVectorVector(CpIntVectorVector other)
Definition: CpIntVectorVector.cs:234
static void CpIntVectorVector_AddRange(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
Note that the IEnumerator documentation requires an InvalidOperationException to be thrown whenever t...
Definition: CpIntVectorVector.cs:147
void Add(CpIntVector x)
Definition: CpIntVectorVector.cs:212
void CopyTo(CpIntVector[] array, int arrayIndex)
Definition: CpIntVectorVector.cs:107
CpIntVectorVectorEnumerator(CpIntVectorVector collection)
Definition: CpIntVectorVector.cs:155
bool swigCMemOwn
Definition: CpIntVectorVector.cs:22
CpIntVectorVectorEnumerator GetEnumerator()
Definition: CpIntVectorVector.cs:138
static void CpIntVectorVector_Reverse__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1)
CpIntVectorVector(global::System.Collections.ICollection c)
Definition: CpIntVectorVector.cs:50
void CopyTo(CpIntVector[] array)
Definition: CpIntVectorVector.cs:102
static global::System.Exception Retrieve()
bool IsSynchronized
Definition: CpIntVectorVector.cs:96
void Dispose()
Definition: CpIntVectorVector.cs:202
static uint CpIntVectorVector_size(global::System.Runtime.InteropServices.HandleRef jarg1)
void Reset()
Definition: CpIntVectorVector.cs:194
CpIntVectorVector(int capacity)
Definition: CpIntVectorVector.cs:238
void Reverse(int index, int count)
Definition: CpIntVectorVector.cs:302
static void delete_CpIntVectorVector(global::System.Runtime.InteropServices.HandleRef jarg1)
CpIntVectorVector GetRange(int index, int count)
Definition: CpIntVectorVector.cs:264
CpIntVectorVector()
Definition: CpIntVectorVector.cs:231