DotNet Reference
.Net Reference
SequenceVarVector.cs
Go to the documentation of this file.
18 public partial class SequenceVarVector : global::System.IDisposable, global::System.Collections.IEnumerable, global::System.Collections.Generic.IList<SequenceVar>
28 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SequenceVarVector 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 SequenceVarVector(global::System.Collections.Generic.IEnumerable<SequenceVar> c) : this() {
147 global::System.Collections.Generic.IEnumerator<SequenceVar> global::System.Collections.Generic.IEnumerable<SequenceVar>.GetEnumerator() {
230 operations_research_constraint_solverPINVOKE.SequenceVarVector_Add(swigCPtr, SequenceVar.getCPtr(x));
247 public SequenceVarVector() : this(operations_research_constraint_solverPINVOKE.new_SequenceVarVector__SWIG_0(), true) {
250 public SequenceVarVector(SequenceVarVector other) : this(operations_research_constraint_solverPINVOKE.new_SequenceVarVector__SWIG_1(SequenceVarVector.getCPtr(other)), true) {
251 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
254 public SequenceVarVector(int capacity) : this(operations_research_constraint_solverPINVOKE.new_SequenceVarVector__SWIG_2(capacity), true) {
255 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
259 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.SequenceVarVector_getitemcopy(swigCPtr, index);
261 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
266 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.SequenceVarVector_getitem(swigCPtr, index);
268 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
273 operations_research_constraint_solverPINVOKE.SequenceVarVector_setitem(swigCPtr, index, SequenceVar.getCPtr(val));
274 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
278 operations_research_constraint_solverPINVOKE.SequenceVarVector_AddRange(swigCPtr, SequenceVarVector.getCPtr(values));
279 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
283 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.SequenceVarVector_GetRange(swigCPtr, index, count);
284 SequenceVarVector ret = (cPtr == global::System.IntPtr.Zero) ? null : new SequenceVarVector(cPtr, true);
285 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
290 operations_research_constraint_solverPINVOKE.SequenceVarVector_Insert(swigCPtr, index, SequenceVar.getCPtr(x));
291 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
295 operations_research_constraint_solverPINVOKE.SequenceVarVector_InsertRange(swigCPtr, index, SequenceVarVector.getCPtr(values));
296 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
301 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
305 operations_research_constraint_solverPINVOKE.SequenceVarVector_RemoveRange(swigCPtr, index, count);
306 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
310 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.SequenceVarVector_Repeat(SequenceVar.getCPtr(value), count);
311 SequenceVarVector ret = (cPtr == global::System.IntPtr.Zero) ? null : new SequenceVarVector(cPtr, true);
312 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
321 operations_research_constraint_solverPINVOKE.SequenceVarVector_Reverse__SWIG_1(swigCPtr, index, count);
322 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
326 operations_research_constraint_solverPINVOKE.SequenceVarVector_SetRange(swigCPtr, index, SequenceVarVector.getCPtr(values));
327 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
331 bool ret = operations_research_constraint_solverPINVOKE.SequenceVarVector_Contains(swigCPtr, SequenceVar.getCPtr(value));
336 int ret = operations_research_constraint_solverPINVOKE.SequenceVarVector_IndexOf(swigCPtr, SequenceVar.getCPtr(value));
341 int ret = operations_research_constraint_solverPINVOKE.SequenceVarVector_LastIndexOf(swigCPtr, SequenceVar.getCPtr(value));
346 bool ret = operations_research_constraint_solverPINVOKE.SequenceVarVector_Remove(swigCPtr, SequenceVar.getCPtr(value));
static void SequenceVarVector_Insert(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
void Reverse()
Definition: SequenceVarVector.cs:316
void RemoveRange(int index, int count)
Definition: SequenceVarVector.cs:304
SequenceVarVector()
Definition: SequenceVarVector.cs:247
void Clear()
Definition: SequenceVarVector.cs:225
SequenceVarVectorEnumerator(SequenceVarVector collection)
Definition: SequenceVarVector.cs:172
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:345
static void SequenceVarVector_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
bool MoveNext()
Definition: SequenceVarVector.cs:199
bool IsSynchronized
Definition: SequenceVarVector.cs:107
void Reset()
Definition: SequenceVarVector.cs:211
void CopyTo(SequenceVar[] array)
Definition: SequenceVarVector.cs:113
SequenceVarVector(SequenceVarVector other)
Definition: SequenceVarVector.cs:250
SequenceVarVector(int capacity)
Definition: SequenceVarVector.cs:254
static bool Pending
SequenceVar Current
Definition: SequenceVarVector.cs:180
bool IsReadOnly
Definition: SequenceVarVector.cs:75
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)
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:166
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:118
static int SequenceVarVector_LastIndexOf(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
int IndexOf(SequenceVar value)
Definition: SequenceVarVector.cs:335
virtual void Dispose(bool disposing)
Definition: SequenceVarVector.cs:41
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:309
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)
SequenceVarVector(global::System.Collections.Generic.IEnumerable< SequenceVar > c)
Definition: SequenceVarVector.cs:61
void Dispose()
Definition: SequenceVarVector.cs:219
void InsertRange(int index, SequenceVarVector values)
Definition: SequenceVarVector.cs:294
static global::System.IntPtr SequenceVarVector_Repeat(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
void SetRange(int index, SequenceVarVector values)
Definition: SequenceVarVector.cs:325
void Add(SequenceVar x)
Definition: SequenceVarVector.cs:229
bool swigCMemOwn
Definition: SequenceVarVector.cs:21
bool Contains(SequenceVar value)
Definition: SequenceVarVector.cs:330
bool IsFixedSize
Definition: SequenceVarVector.cs:69
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:320
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 Dispose()
Definition: SequenceVarVector.cs:36
void CopyTo(int index, SequenceVar[] array, int arrayIndex, int count)
Definition: SequenceVarVector.cs:123
void AddRange(SequenceVarVector values)
Definition: SequenceVarVector.cs:277
int Capacity
Definition: SequenceVarVector.cs:90
int Count
Definition: SequenceVarVector.cs:101
SequenceVarVector(global::System.Collections.IEnumerable c)
Definition: SequenceVarVector.cs:53
void Insert(int index, SequenceVar x)
Definition: SequenceVarVector.cs:289
Google.OrTools.ConstraintSolver.operations_research_constraint_solverPINVOKE.SequenceVarVector_Clear
static void SequenceVarVector_Clear(global::System.Runtime.InteropServices.HandleRef jarg1)
SequenceVar[] ToArray()
Definition: SequenceVarVector.cs:141
int LastIndexOf(SequenceVar value)
Definition: SequenceVarVector.cs:340
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:155
void RemoveAt(int index)
Definition: SequenceVarVector.cs:299
SequenceVarVector GetRange(int index, int count)
Definition: SequenceVarVector.cs:282