13 public class KInt64VectorVector : global::System.IDisposable, global::System.Collections.IEnumerable
14 , global::System.Collections.Generic.IEnumerable<KInt64Vector>
16 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
21 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
24 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(
KInt64VectorVector obj) {
25 return (obj ==
null) ?
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero) : obj.swigCPtr;
34 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
39 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
41 global::System.GC.SuppressFinalize(
this);
47 throw new global::System.ArgumentNullException(
"c");
67 return getitem(index);
70 setitem(index, value);
76 return (
int)capacity();
80 throw new global::System.ArgumentOutOfRangeException(
"Capacity");
110 throw new global::System.ArgumentNullException(
"array");
112 throw new global::System.ArgumentOutOfRangeException(
"index",
"Value is less than zero");
114 throw new global::System.ArgumentOutOfRangeException(
"arrayIndex",
"Value is less than zero");
116 throw new global::System.ArgumentOutOfRangeException(
"count",
"Value is less than zero");
118 throw new global::System.ArgumentException(
"Multi dimensional array.",
"array");
119 if (index+count > this.
Count || arrayIndex+count > array.Length)
120 throw new global::System.ArgumentException(
"Number of elements to copy is too large.");
121 for (
int i=0; i<count; i++)
122 array.SetValue(getitemcopy(index+i), arrayIndex+i);
125 global::System.Collections.Generic.IEnumerator<
KInt64Vector> global::System.Collections.Generic.IEnumerable<
KInt64Vector>.GetEnumerator() {
126 return new KInt64VectorVectorEnumerator(
this);
129 global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() {
130 return new KInt64VectorVectorEnumerator(
this);
143 , global::System.Collections.Generic.IEnumerator<KInt64Vector>
146 private int currentIndex;
147 private object currentObject;
148 private int currentSize;
151 collectionRef = collection;
153 currentObject =
null;
154 currentSize = collectionRef.
Count;
160 if (currentIndex == -1)
161 throw new global::System.InvalidOperationException(
"Enumeration not started.");
162 if (currentIndex > currentSize - 1)
163 throw new global::System.InvalidOperationException(
"Enumeration finished.");
164 if (currentObject ==
null)
165 throw new global::System.InvalidOperationException(
"Collection modified.");
171 object global::System.Collections.IEnumerator.Current {
178 int size = collectionRef.Count;
179 bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
182 currentObject = collectionRef[currentIndex];
184 currentObject =
null;
191 currentObject =
null;
192 if (collectionRef.Count != currentSize) {
193 throw new global::System.InvalidOperationException(
"Collection modified.");
199 currentObject =
null;
212 private uint size() {
217 private uint capacity() {
218 uint ret = operations_research_algorithmsPINVOKE.KInt64VectorVector_capacity(swigCPtr);
222 private void reserve(uint n) {
223 operations_research_algorithmsPINVOKE.KInt64VectorVector_reserve(swigCPtr, n);
243 private KInt64Vector getitem(
int index) {
244 KInt64Vector ret =
new KInt64Vector(operations_research_algorithmsPINVOKE.KInt64VectorVector_getitem(swigCPtr, index),
false);
245 if (operations_research_algorithmsPINVOKE.SWIGPendingException.Pending)
throw operations_research_algorithmsPINVOKE.SWIGPendingException.Retrieve();
249 private void setitem(
int index, KInt64Vector val) {
250 operations_research_algorithmsPINVOKE.KInt64VectorVector_setitem(swigCPtr, index, KInt64Vector.getCPtr(val));
251 if (operations_research_algorithmsPINVOKE.SWIGPendingException.Pending)
throw operations_research_algorithmsPINVOKE.SWIGPendingException.Retrieve();