14using System.Runtime.InteropServices;
18public class CFxHistoryObjectArray : global::System.IDisposable, global::System.Collections.IEnumerable, global::System.Collections.Generic.IList<CFxHistoryObject>
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);
149 return new CFxHistoryObjectArrayEnumerator(
this);
152 global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() {
153 return new CFxHistoryObjectArrayEnumerator(
this);
166 , global::System.Collections.Generic.IEnumerator<CFxHistoryObject>
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.CFxHistoryObjectArray_capacity(swigCPtr);
244 if (PCADGlobalsPINVOKE.SWIGPendingException.Pending)
throw PCADGlobalsPINVOKE.SWIGPendingException.Retrieve();
248 private void reserve(uint n) {
249 PCADGlobalsPINVOKE.CFxHistoryObjectArray_reserve(swigCPtr, n);
250 if (PCADGlobalsPINVOKE.SWIGPendingException.Pending)
throw PCADGlobalsPINVOKE.SWIGPendingException.Retrieve();
272 private CFxHistoryObject getitem(
int index) {
273 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxHistoryObjectArray_getitem(swigCPtr, index);
274 CFxHistoryObject ret = (cPtr == global::System.IntPtr.Zero) ?
null :
new CFxHistoryObject(cPtr,
false);
275 if (PCADGlobalsPINVOKE.SWIGPendingException.Pending)
throw PCADGlobalsPINVOKE.SWIGPendingException.Retrieve();
279 private void setitem(
int index, CFxHistoryObject val) {
280 PCADGlobalsPINVOKE.CFxHistoryObjectArray_setitem(swigCPtr, index, CFxHistoryObject.getCPtr(val));
281 if (PCADGlobalsPINVOKE.SWIGPendingException.Pending)
throw PCADGlobalsPINVOKE.SWIGPendingException.Retrieve();
CFxHistoryObjectArrayEnumerator(CFxHistoryObjectArray collection)
void SetRange(int index, CFxHistoryObjectArray values)
void CopyTo(int index, CFxHistoryObject[] array, int arrayIndex, int count)
bool Contains(CFxHistoryObject value)
void CopyTo(CFxHistoryObject[] array)
CFxHistoryObjectArray(int capacity)
CFxHistoryObjectArray GetRange(int index, int count)
virtual void Dispose(bool disposing)
void Reverse(int index, int count)
void AddRange(CFxHistoryObjectArray values)
CFxHistoryObjectArray(CFxHistoryObjectArray other)
void RemoveRange(int index, int count)
static CFxHistoryObjectArray Repeat(CFxHistoryObject value, int count)
CFxHistoryObjectArray(global::System.Collections.IEnumerable c)
int IndexOf(CFxHistoryObject value)
void Insert(int index, CFxHistoryObject x)
bool Remove(CFxHistoryObject value)
CFxHistoryObjectArray(global::System.Collections.Generic.IEnumerable< CFxHistoryObject > c)
void Add(CFxHistoryObject x)
CFxHistoryObjectArray(IntPtr cPtr, bool cMemoryOwn)
CFxHistoryObject[] ToArray()
static HandleRef getCPtr(CFxHistoryObjectArray obj)
void CopyTo(CFxHistoryObject[] array, int arrayIndex)
void InsertRange(int index, CFxHistoryObjectArray values)
CFxHistoryObjectArrayEnumerator GetEnumerator()
int LastIndexOf(CFxHistoryObject value)
static HandleRef getCPtr(CFxHistoryObject obj)
static global::System.Exception Retrieve()
static int CFxHistoryObjectArray_LastIndexOf(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxHistoryObjectArray_InsertRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void CFxHistoryObjectArray_SetRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void CFxHistoryObjectArray_Reverse__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxHistoryObjectArray_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxHistoryObjectArray_AddRange(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxHistoryObjectArray_Reverse__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
static void CFxHistoryObjectArray_Clear(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxHistoryObjectArray_Insert(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void CFxHistoryObjectArray_RemoveRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
static global::System.IntPtr CFxHistoryObjectArray_Repeat(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static bool CFxHistoryObjectArray_Remove(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void delete_CFxHistoryObjectArray(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxHistoryObjectArray_GetRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
static bool CFxHistoryObjectArray_Contains(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxHistoryObjectArray_RemoveAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static global::System.IntPtr CFxHistoryObjectArray_getitemcopy(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static uint CFxHistoryObjectArray_size(global::System.Runtime.InteropServices.HandleRef jarg1)
static int CFxHistoryObjectArray_IndexOf(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)