DotNet Reference
DotNet Reference
SequenceVarVector.cs
Go to the documentation of this file.
18 public partial class SequenceVarVector : global::System.IDisposable, global::System.Collections.IEnumerable
29 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SequenceVarVector 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<SequenceVar> global::System.Collections.Generic.IEnumerable<SequenceVar>.GetEnumerator() {
213 operations_research_constraint_solverPINVOKE.SequenceVarVector_Add(swigCPtr, SequenceVar.getCPtr(x));
230 public SequenceVarVector() : this(operations_research_constraint_solverPINVOKE.new_SequenceVarVector__SWIG_0(), true) {
233 public SequenceVarVector(SequenceVarVector other) : this(operations_research_constraint_solverPINVOKE.new_SequenceVarVector__SWIG_1(SequenceVarVector.getCPtr(other)), true) {
234 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
237 public SequenceVarVector(int capacity) : this(operations_research_constraint_solverPINVOKE.new_SequenceVarVector__SWIG_2(capacity), true) {
238 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
242 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.SequenceVarVector_getitemcopy(swigCPtr, index);
244 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
249 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.SequenceVarVector_getitem(swigCPtr, index);
251 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
256 operations_research_constraint_solverPINVOKE.SequenceVarVector_setitem(swigCPtr, index, SequenceVar.getCPtr(val));
257 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
261 operations_research_constraint_solverPINVOKE.SequenceVarVector_AddRange(swigCPtr, SequenceVarVector.getCPtr(values));
262 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
266 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.SequenceVarVector_GetRange(swigCPtr, index, count);
267 SequenceVarVector ret = (cPtr == global::System.IntPtr.Zero) ? null : new SequenceVarVector(cPtr, true);
268 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
273 operations_research_constraint_solverPINVOKE.SequenceVarVector_Insert(swigCPtr, index, SequenceVar.getCPtr(x));
274 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
278 operations_research_constraint_solverPINVOKE.SequenceVarVector_InsertRange(swigCPtr, index, SequenceVarVector.getCPtr(values));
279 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
284 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
288 operations_research_constraint_solverPINVOKE.SequenceVarVector_RemoveRange(swigCPtr, index, count);
289 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
293 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.SequenceVarVector_Repeat(SequenceVar.getCPtr(value), count);
294 SequenceVarVector ret = (cPtr == global::System.IntPtr.Zero) ? null : new SequenceVarVector(cPtr, true);
295 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
304 operations_research_constraint_solverPINVOKE.SequenceVarVector_Reverse__SWIG_1(swigCPtr, index, count);
305 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
309 operations_research_constraint_solverPINVOKE.SequenceVarVector_SetRange(swigCPtr, index, SequenceVarVector.getCPtr(values));
310 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
314 bool ret = operations_research_constraint_solverPINVOKE.SequenceVarVector_Contains(swigCPtr, SequenceVar.getCPtr(value));
319 int ret = operations_research_constraint_solverPINVOKE.SequenceVarVector_IndexOf(swigCPtr, SequenceVar.getCPtr(value));
324 int ret = operations_research_constraint_solverPINVOKE.SequenceVarVector_LastIndexOf(swigCPtr, SequenceVar.getCPtr(value));
329 bool ret = operations_research_constraint_solverPINVOKE.SequenceVarVector_Remove(swigCPtr, SequenceVar.getCPtr(value));
virtual void Dispose()
Definition: SequenceVarVector.cs:37
static void SequenceVarVector_Insert(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
void Reverse()
Definition: SequenceVarVector.cs:299
void RemoveRange(int index, int count)
Definition: SequenceVarVector.cs:287
SequenceVarVector(global::System.Collections.ICollection c)
Definition: SequenceVarVector.cs:50
SequenceVarVector()
Definition: SequenceVarVector.cs:230
void Clear()
Definition: SequenceVarVector.cs:208
SequenceVarVectorEnumerator(SequenceVarVector collection)
Definition: SequenceVarVector.cs:155
static uint SequenceVarVector_size(global::System.Runtime.InteropServices.HandleRef jarg1)
static void SequenceVarVector_AddRange(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
bool Remove(SequenceVar value)
Definition: SequenceVarVector.cs:328
static void SequenceVarVector_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
bool MoveNext()
Definition: SequenceVarVector.cs:182
bool IsSynchronized
Definition: SequenceVarVector.cs:96
void Reset()
Definition: SequenceVarVector.cs:194
void CopyTo(SequenceVar[] array)
Definition: SequenceVarVector.cs:102
SequenceVarVector(SequenceVarVector other)
Definition: SequenceVarVector.cs:233
SequenceVarVector(int capacity)
Definition: SequenceVarVector.cs:237
static bool Pending
SequenceVar Current
Definition: SequenceVarVector.cs:163
bool IsReadOnly
Definition: SequenceVarVector.cs:64
static void SequenceVarVector_Reverse__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
static void SequenceVarVector_RemoveAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
Definition: Assignment.cs:11
static void SequenceVarVector_RemoveRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
Note that the IEnumerator documentation requires an InvalidOperationException to be thrown whenever t...
Definition: SequenceVarVector.cs:147
static bool SequenceVarVector_Remove(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
void CopyTo(SequenceVar[] array, int arrayIndex)
Definition: SequenceVarVector.cs:107
static int SequenceVarVector_LastIndexOf(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
int IndexOf(SequenceVar value)
Definition: SequenceVarVector.cs:318
static int SequenceVarVector_IndexOf(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static SequenceVarVector Repeat(SequenceVar value, int count)
Definition: SequenceVarVector.cs:292
static void delete_SequenceVarVector(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr SequenceVarVector_GetRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
void Dispose()
Definition: SequenceVarVector.cs:202
void InsertRange(int index, SequenceVarVector values)
Definition: SequenceVarVector.cs:277
static global::System.IntPtr SequenceVarVector_Repeat(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
void SetRange(int index, SequenceVarVector values)
Definition: SequenceVarVector.cs:308
void Add(SequenceVar x)
Definition: SequenceVarVector.cs:212
bool swigCMemOwn
Definition: SequenceVarVector.cs:22
bool Contains(SequenceVar value)
Definition: SequenceVarVector.cs:313
bool IsFixedSize
Definition: SequenceVarVector.cs:58
static void SequenceVarVector_InsertRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
void Reverse(int index, int count)
Definition: SequenceVarVector.cs:303
static global::System.IntPtr SequenceVarVector_getitemcopy(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void SequenceVarVector_SetRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void SequenceVarVector_Reverse__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1)
void CopyTo(int index, SequenceVar[] array, int arrayIndex, int count)
Definition: SequenceVarVector.cs:112
void AddRange(SequenceVarVector values)
Definition: SequenceVarVector.cs:260
int Capacity
Definition: SequenceVarVector.cs:79
void Insert(int index, SequenceVar x)
Definition: SequenceVarVector.cs:272
Google.OrTools.ConstraintSolver.operations_research_constraint_solverPINVOKE.SequenceVarVector_Clear
static void SequenceVarVector_Clear(global::System.Runtime.InteropServices.HandleRef jarg1)
int LastIndexOf(SequenceVar value)
Definition: SequenceVarVector.cs:323
static bool SequenceVarVector_Contains(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.Exception Retrieve()
SequenceVarVectorEnumerator GetEnumerator()
Definition: SequenceVarVector.cs:138
void RemoveAt(int index)
Definition: SequenceVarVector.cs:282
SequenceVarVector GetRange(int index, int count)
Definition: SequenceVarVector.cs:265