14using System.Runtime.InteropServices;
18public class CFxStringArray : global::System.IDisposable, global::System.Collections.IEnumerable, global::System.Collections.Generic.IEnumerable<CFxString>
20 private Object locker =
new Object();
21 private HandleRef swigCPtr;
23 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 swigCPtr =
new HandleRef(
this, cPtr);
28 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
30 return (obj ==
null) ?
new HandleRef(
null, IntPtr.Zero) : obj.swigCPtr;
39 global::System.GC.SuppressFinalize(
this);
42 protected virtual void Dispose(
bool disposing) {
44 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
49 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
56 throw new global::System.ArgumentNullException(
"c");
64 throw new global::System.ArgumentNullException(
"c");
84 return getitem(index);
87 setitem(index,
value);
93 return (
int)capacity();
97 throw new global::System.ArgumentOutOfRangeException(
"Capacity");
127 throw new global::System.ArgumentNullException(
"array");
129 throw new global::System.ArgumentOutOfRangeException(
"index",
"Value is less than zero");
131 throw new global::System.ArgumentOutOfRangeException(
"arrayIndex",
"Value is less than zero");
133 throw new global::System.ArgumentOutOfRangeException(
"count",
"Value is less than zero");
135 throw new global::System.ArgumentException(
"Multi dimensional array.",
"array");
136 if (index+count > this.
Count || arrayIndex+count > array.Length)
137 throw new global::System.ArgumentException(
"Number of elements to copy is too large.");
138 for (
int i=0; i<count; i++)
139 array.SetValue(getitemcopy(index+i), arrayIndex+i);
148 global::System.Collections.Generic.IEnumerator<
CFxString> global::System.Collections.Generic.IEnumerable<
CFxString>.GetEnumerator() {
149 return new CFxStringArrayEnumerator(
this);
152 global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() {
153 return new CFxStringArrayEnumerator(
this);
166 , global::System.Collections.Generic.IEnumerator<CFxString>
169 private int currentIndex;
170 private object currentObject;
171 private int currentSize;
174 collectionRef = collection;
176 currentObject =
null;
177 currentSize = collectionRef.
Count;
183 if (currentIndex == -1)
184 throw new global::System.InvalidOperationException(
"Enumeration not started.");
185 if (currentIndex > currentSize - 1)
186 throw new global::System.InvalidOperationException(
"Enumeration finished.");
187 if (currentObject ==
null)
188 throw new global::System.InvalidOperationException(
"Collection modified.");
194 object global::System.Collections.IEnumerator.Current {
201 int size = collectionRef.
Count;
202 bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
205 currentObject = collectionRef[currentIndex];
207 currentObject =
null;
214 currentObject =
null;
215 if (collectionRef.
Count != currentSize) {
216 throw new global::System.InvalidOperationException(
"Collection modified.");
222 currentObject =
null;
236 private uint size() {
242 private uint capacity() {
243 uint ret = PCADGlobalsPINVOKE.CFxStringArray_capacity(swigCPtr);
244 if (PCADGlobalsPINVOKE.SWIGPendingException.Pending)
throw PCADGlobalsPINVOKE.SWIGPendingException.Retrieve();
248 private void reserve(uint n) {
249 PCADGlobalsPINVOKE.CFxStringArray_reserve(swigCPtr, n);
250 if (PCADGlobalsPINVOKE.SWIGPendingException.Pending)
throw PCADGlobalsPINVOKE.SWIGPendingException.Retrieve();
265 private CFxString getitemcopy(
int index) {
271 private CFxString getitem(
int index) {
272 CFxString ret =
new CFxString(PCADGlobalsPINVOKE.CFxStringArray_getitem(swigCPtr, index),
false);
273 if (PCADGlobalsPINVOKE.SWIGPendingException.Pending)
throw PCADGlobalsPINVOKE.SWIGPendingException.Retrieve();
277 private void setitem(
int index, CFxString val) {
278 PCADGlobalsPINVOKE.CFxStringArray_setitem(swigCPtr, index, CFxString.getCPtr(val));
279 if (PCADGlobalsPINVOKE.SWIGPendingException.Pending)
throw PCADGlobalsPINVOKE.SWIGPendingException.Retrieve();
CFxStringArrayEnumerator(CFxStringArray collection)
void RemoveRange(int index, int count)
static HandleRef getCPtr(CFxStringArray obj)
void Insert(int index, CFxString x)
CFxStringArray(CFxStringArray other)
void CopyTo(int index, CFxString[] array, int arrayIndex, int count)
CFxStringArray(global::System.Collections.Generic.IEnumerable< CFxString > c)
void SetRange(int index, CFxStringArray values)
void Reverse(int index, int count)
CFxStringArray(IntPtr cPtr, bool cMemoryOwn)
static CFxStringArray Repeat(CFxString value, int count)
CFxStringArray(global::System.Collections.IEnumerable c)
virtual void Dispose(bool disposing)
void CopyTo(CFxString[] array, int arrayIndex)
void InsertRange(int index, CFxStringArray values)
void AddRange(CFxStringArray values)
CFxStringArray GetRange(int index, int count)
CFxStringArrayEnumerator GetEnumerator()
void CopyTo(CFxString[] array)
CFxStringArray(int capacity)
static HandleRef getCPtr(CFxString obj)
static global::System.Exception Retrieve()
static void CFxStringArray_RemoveAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void CFxStringArray_AddRange(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr CFxStringArray_Repeat(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static global::System.IntPtr CFxStringArray_getitemcopy(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void CFxStringArray_Reverse__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
static uint CFxStringArray_size(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxStringArray_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr CFxStringArray_GetRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
static void delete_CFxStringArray(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxStringArray_Insert(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void CFxStringArray_SetRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void CFxStringArray_RemoveRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
static void CFxStringArray_InsertRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void CFxStringArray_Clear(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxStringArray_Reverse__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1)