15 using System.Collections;
18 , global::System.Collections.Generic.IEnumerable<UtilInt64Vector>
20 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
25 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
29 return (obj ==
null) ?
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero) : obj.swigCPtr;
38 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
43 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
45 global::System.GC.SuppressFinalize(
this);
51 throw new global::System.ArgumentNullException(
"c");
71 return getitem(index);
74 setitem(index, value);
80 return (
int)capacity();
84 throw new global::System.ArgumentOutOfRangeException(
"Capacity");
114 throw new global::System.ArgumentNullException(
"array");
116 throw new global::System.ArgumentOutOfRangeException(
"index",
"Value is less than zero");
118 throw new global::System.ArgumentOutOfRangeException(
"arrayIndex",
"Value is less than zero");
120 throw new global::System.ArgumentOutOfRangeException(
"count",
"Value is less than zero");
122 throw new global::System.ArgumentException(
"Multi dimensional array.",
"array");
123 if (index+count > this.
Count || arrayIndex+count > array.Length)
124 throw new global::System.ArgumentException(
"Number of elements to copy is too large.");
125 for (
int i=0; i<count; i++)
126 array.SetValue(getitemcopy(index+i), arrayIndex+i);
130 return new UtilInt64VectorVectorEnumerator(
this);
133 global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() {
134 return new UtilInt64VectorVectorEnumerator(
this);
147 , global::System.Collections.Generic.IEnumerator<UtilInt64Vector>
150 private int currentIndex;
151 private object currentObject;
152 private int currentSize;
155 collectionRef = collection;
157 currentObject =
null;
158 currentSize = collectionRef.
Count;
164 if (currentIndex == -1)
165 throw new global::System.InvalidOperationException(
"Enumeration not started.");
166 if (currentIndex > currentSize - 1)
167 throw new global::System.InvalidOperationException(
"Enumeration finished.");
168 if (currentObject ==
null)
169 throw new global::System.InvalidOperationException(
"Collection modified.");
175 object global::System.Collections.IEnumerator.Current {
182 int size = collectionRef.Count;
183 bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
186 currentObject = collectionRef[currentIndex];
188 currentObject =
null;
195 currentObject =
null;
196 if (collectionRef.Count != currentSize) {
197 throw new global::System.InvalidOperationException(
"Collection modified.");
203 currentObject =
null;
216 private uint size() {
221 private uint capacity() {
222 uint ret = operations_research_utilPINVOKE.UtilInt64VectorVector_capacity(swigCPtr);
226 private void reserve(uint n) {
227 operations_research_utilPINVOKE.UtilInt64VectorVector_reserve(swigCPtr, n);
247 private UtilInt64Vector getitem(
int index) {
248 UtilInt64Vector ret =
new UtilInt64Vector(operations_research_utilPINVOKE.UtilInt64VectorVector_getitem(swigCPtr, index),
false);
249 if (operations_research_utilPINVOKE.SWIGPendingException.Pending)
throw operations_research_utilPINVOKE.SWIGPendingException.Retrieve();
253 private void setitem(
int index, UtilInt64Vector val) {
254 operations_research_utilPINVOKE.UtilInt64VectorVector_setitem(swigCPtr, index, UtilInt64Vector.getCPtr(val));
255 if (operations_research_utilPINVOKE.SWIGPendingException.Pending)
throw operations_research_utilPINVOKE.SWIGPendingException.Retrieve();