-//------------------------------------------------------------------------------
-// <auto-generated />
-//
-// This file was automatically generated by SWIG (http://www.swig.org).
-// Version 3.0.9
-//
-// Do not make changes to this file unless you know what you are doing--modify
-// the SWIG interface file instead.
-//------------------------------------------------------------------------------
-
-namespace Tizen.NUI {
+/*
+ * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+namespace Tizen.NUI
+{
internal class ItemContainer : global::System.IDisposable, global::System.Collections.IEnumerable
, global::System.Collections.Generic.IEnumerable<Item>
- {
- private global::System.Runtime.InteropServices.HandleRef swigCPtr;
- protected bool swigCMemOwn;
-
- internal ItemContainer(global::System.IntPtr cPtr, bool cMemoryOwn) {
- swigCMemOwn = cMemoryOwn;
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
- }
-
- internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ItemContainer obj) {
- return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
- }
-
- ~ItemContainer() {
- DisposeQueue.Instance.Add(this);
- }
-
- public virtual void Dispose() {
- if (!Window.IsInstalled()) {
- DisposeQueue.Instance.Add(this);
- return;
- }
+ {
+ private global::System.Runtime.InteropServices.HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+
+ internal ItemContainer(global::System.IntPtr cPtr, bool cMemoryOwn)
+ {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+ }
- lock(this) {
- if (swigCPtr.Handle != global::System.IntPtr.Zero) {
- if (swigCMemOwn) {
- swigCMemOwn = false;
- NDalicPINVOKE.delete_ItemContainer(swigCPtr);
+ internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ItemContainer obj)
+ {
+ return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
- }
- global::System.GC.SuppressFinalize(this);
- }
- }
- public ItemContainer(global::System.Collections.ICollection c) : this() {
- if (c == null)
- throw new global::System.ArgumentNullException("c");
- foreach (Item element in c) {
- this.Add(element);
- }
- }
+ //A Flag to check who called Dispose(). (By User or DisposeQueue)
+ private bool isDisposeQueued = false;
+ //A Flat to check if it is already disposed.
+ protected bool disposed = false;
- public bool IsFixedSize {
- get {
- return false;
- }
- }
- public bool IsReadOnly {
- get {
- return false;
- }
- }
+ ~ItemContainer()
+ {
+ if (!isDisposeQueued)
+ {
+ isDisposeQueued = true;
+ DisposeQueue.Instance.Add(this);
+ }
+ }
- public Item this[int index] {
- get {
- return getitem(index);
- }
- set {
- setitem(index, value);
- }
- }
+ public void Dispose()
+ {
+ //Throw excpetion if Dispose() is called in separate thread.
+ if (!Window.IsInstalled())
+ {
+ throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
+ }
+
+ if (isDisposeQueued)
+ {
+ Dispose(DisposeTypes.Implicit);
+ }
+ else
+ {
+ Dispose(DisposeTypes.Explicit);
+ System.GC.SuppressFinalize(this);
+ }
+ }
- public int Capacity {
- get {
- return (int)capacity();
- }
- set {
- if (value < size())
- throw new global::System.ArgumentOutOfRangeException("Capacity");
- reserve((uint)value);
- }
- }
+ protected virtual void Dispose(DisposeTypes type)
+ {
+ if (disposed)
+ {
+ return;
+ }
+
+ if (type == DisposeTypes.Explicit)
+ {
+ //Called by User
+ //Release your own managed resources here.
+ //You should release all of your own disposable objects here.
+
+ }
+
+ //Release your own unmanaged resources here.
+ //You should not access any managed member here except static instance.
+ //because the execution order of Finalizes is non-deterministic.
+
+ if (swigCPtr.Handle != global::System.IntPtr.Zero)
+ {
+ if (swigCMemOwn)
+ {
+ swigCMemOwn = false;
+ NDalicPINVOKE.delete_ItemContainer(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+
+ disposed = true;
+ }
- public int Count {
- get {
- return (int)size();
- }
- }
+ public ItemContainer(global::System.Collections.ICollection c) : this()
+ {
+ if (c == null)
+ throw new global::System.ArgumentNullException("c");
+ foreach (Item element in c)
+ {
+ this.Add(element);
+ }
+ }
- public bool IsSynchronized {
- get {
- return false;
- }
- }
-
- public void CopyTo(Item[] array)
- {
- CopyTo(0, array, 0, this.Count);
- }
-
- public void CopyTo(Item[] array, int arrayIndex)
- {
- CopyTo(0, array, arrayIndex, this.Count);
- }
-
- public void CopyTo(int index, Item[] array, int arrayIndex, int count)
- {
- if (array == null)
- throw new global::System.ArgumentNullException("array");
- if (index < 0)
- throw new global::System.ArgumentOutOfRangeException("index", "Value is less than zero");
- if (arrayIndex < 0)
- throw new global::System.ArgumentOutOfRangeException("arrayIndex", "Value is less than zero");
- if (count < 0)
- throw new global::System.ArgumentOutOfRangeException("count", "Value is less than zero");
- if (array.Rank > 1)
- throw new global::System.ArgumentException("Multi dimensional array.", "array");
- if (index+count > this.Count || arrayIndex+count > array.Length)
- throw new global::System.ArgumentException("Number of elements to copy is too large.");
- for (int i=0; i<count; i++)
- array.SetValue(getitemcopy(index+i), arrayIndex+i);
- }
-
- global::System.Collections.Generic.IEnumerator<Item> global::System.Collections.Generic.IEnumerable<Item>.GetEnumerator() {
- return new ItemContainerEnumerator(this);
- }
-
- global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() {
- return new ItemContainerEnumerator(this);
- }
-
- public ItemContainerEnumerator GetEnumerator() {
- return new ItemContainerEnumerator(this);
- }
-
- // Type-safe enumerator
- /// Note that the IEnumerator documentation requires an InvalidOperationException to be thrown
- /// whenever the collection is modified. This has been done for changes in the size of the
- /// collection but not when one of the elements of the collection is modified as it is a bit
- /// tricky to detect unmanaged code that modifies the collection under our feet.
- public sealed class ItemContainerEnumerator : global::System.Collections.IEnumerator
- , global::System.Collections.Generic.IEnumerator<Item>
- {
- private ItemContainer collectionRef;
- private int currentIndex;
- private object currentObject;
- private int currentSize;
-
- public ItemContainerEnumerator(ItemContainer collection) {
- collectionRef = collection;
- currentIndex = -1;
- currentObject = null;
- currentSize = collectionRef.Count;
- }
+ public bool IsFixedSize
+ {
+ get
+ {
+ return false;
+ }
+ }
- // Type-safe iterator Current
- public Item Current {
- get {
- if (currentIndex == -1)
- throw new global::System.InvalidOperationException("Enumeration not started.");
- if (currentIndex > currentSize - 1)
- throw new global::System.InvalidOperationException("Enumeration finished.");
- if (currentObject == null)
- throw new global::System.InvalidOperationException("Collection modified.");
- return (Item)currentObject;
- }
- }
+ public bool IsReadOnly
+ {
+ get
+ {
+ return false;
+ }
+ }
- // Type-unsafe IEnumerator.Current
- object global::System.Collections.IEnumerator.Current {
- get {
- return Current;
- }
- }
+ public Item this[int index]
+ {
+ get
+ {
+ return getitem(index);
+ }
+ set
+ {
+ setitem(index, value);
+ }
+ }
- public bool MoveNext() {
- int size = collectionRef.Count;
- bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
- if (moveOkay) {
- currentIndex++;
- currentObject = collectionRef[currentIndex];
- } else {
- currentObject = null;
- }
- return moveOkay;
- }
+ public int Capacity
+ {
+ get
+ {
+ return (int)capacity();
+ }
+ set
+ {
+ if (value < size())
+ throw new global::System.ArgumentOutOfRangeException("Capacity");
+ reserve((uint)value);
+ }
+ }
- public void Reset() {
- currentIndex = -1;
- currentObject = null;
- if (collectionRef.Count != currentSize) {
- throw new global::System.InvalidOperationException("Collection modified.");
- }
- }
+ public int Count
+ {
+ get
+ {
+ return (int)size();
+ }
+ }
- public void Dispose() {
- currentIndex = -1;
- currentObject = null;
- }
- }
-
- public void Clear() {
- NDalicPINVOKE.ItemContainer_Clear(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public void Add(Item x) {
- NDalicPINVOKE.ItemContainer_Add(swigCPtr, Item.getCPtr(x));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- private uint size() {
- uint ret = NDalicPINVOKE.ItemContainer_size(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private uint capacity() {
- uint ret = NDalicPINVOKE.ItemContainer_capacity(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private void reserve(uint n) {
- NDalicPINVOKE.ItemContainer_reserve(swigCPtr, n);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public ItemContainer() : this(NDalicPINVOKE.new_ItemContainer__SWIG_0(), true) {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public ItemContainer(ItemContainer other) : this(NDalicPINVOKE.new_ItemContainer__SWIG_1(ItemContainer.getCPtr(other)), true) {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public ItemContainer(int capacity) : this(NDalicPINVOKE.new_ItemContainer__SWIG_2(capacity), true) {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- private Item getitemcopy(int index) {
- Item ret = new Item(NDalicPINVOKE.ItemContainer_getitemcopy(swigCPtr, index), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private Item getitem(int index) {
- Item ret = new Item(NDalicPINVOKE.ItemContainer_getitem(swigCPtr, index), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private void setitem(int index, Item val) {
- NDalicPINVOKE.ItemContainer_setitem(swigCPtr, index, Item.getCPtr(val));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public void AddRange(ItemContainer values) {
- NDalicPINVOKE.ItemContainer_AddRange(swigCPtr, ItemContainer.getCPtr(values));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public ItemContainer GetRange(int index, int count) {
- global::System.IntPtr cPtr = NDalicPINVOKE.ItemContainer_GetRange(swigCPtr, index, count);
- ItemContainer ret = (cPtr == global::System.IntPtr.Zero) ? null : new ItemContainer(cPtr, true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public void Insert(int index, Item x) {
- NDalicPINVOKE.ItemContainer_Insert(swigCPtr, index, Item.getCPtr(x));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public void InsertRange(int index, ItemContainer values) {
- NDalicPINVOKE.ItemContainer_InsertRange(swigCPtr, index, ItemContainer.getCPtr(values));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public void RemoveAt(int index) {
- NDalicPINVOKE.ItemContainer_RemoveAt(swigCPtr, index);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public void RemoveRange(int index, int count) {
- NDalicPINVOKE.ItemContainer_RemoveRange(swigCPtr, index, count);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public static ItemContainer Repeat(Item value, int count) {
- global::System.IntPtr cPtr = NDalicPINVOKE.ItemContainer_Repeat(Item.getCPtr(value), count);
- ItemContainer ret = (cPtr == global::System.IntPtr.Zero) ? null : new ItemContainer(cPtr, true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public void Reverse() {
- NDalicPINVOKE.ItemContainer_Reverse__SWIG_0(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public void Reverse(int index, int count) {
- NDalicPINVOKE.ItemContainer_Reverse__SWIG_1(swigCPtr, index, count);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public void SetRange(int index, ItemContainer values) {
- NDalicPINVOKE.ItemContainer_SetRange(swigCPtr, index, ItemContainer.getCPtr(values));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
+ public bool IsSynchronized
+ {
+ get
+ {
+ return false;
+ }
+ }
-}
+ public void CopyTo(Item[] array)
+ {
+ CopyTo(0, array, 0, this.Count);
+ }
+
+ public void CopyTo(Item[] array, int arrayIndex)
+ {
+ CopyTo(0, array, arrayIndex, this.Count);
+ }
+
+ public void CopyTo(int index, Item[] array, int arrayIndex, int count)
+ {
+ if (array == null)
+ throw new global::System.ArgumentNullException("array");
+ if (index < 0)
+ throw new global::System.ArgumentOutOfRangeException("index", "Value is less than zero");
+ if (arrayIndex < 0)
+ throw new global::System.ArgumentOutOfRangeException("arrayIndex", "Value is less than zero");
+ if (count < 0)
+ throw new global::System.ArgumentOutOfRangeException("count", "Value is less than zero");
+ if (array.Rank > 1)
+ throw new global::System.ArgumentException("Multi dimensional array.", "array");
+ if (index + count > this.Count || arrayIndex + count > array.Length)
+ throw new global::System.ArgumentException("Number of elements to copy is too large.");
+ for (int i = 0; i < count; i++)
+ array.SetValue(getitemcopy(index + i), arrayIndex + i);
+ }
+
+ global::System.Collections.Generic.IEnumerator<Item> global::System.Collections.Generic.IEnumerable<Item>.GetEnumerator()
+ {
+ return new ItemContainerEnumerator(this);
+ }
+
+ global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator()
+ {
+ return new ItemContainerEnumerator(this);
+ }
+
+ public ItemContainerEnumerator GetEnumerator()
+ {
+ return new ItemContainerEnumerator(this);
+ }
+
+ // The type-safe enumerator.
+ /// Note that the IEnumerator documentation requires an InvalidOperationException to be thrown
+ /// whenever the collection is modified. This has been done for changes in the size of the
+ /// collection, but not when one of the elements of the collection is modified as it is a bit
+ /// tricky to detect unmanaged code that modifies the collection under our feet.
+ public sealed class ItemContainerEnumerator : global::System.Collections.IEnumerator
+ , global::System.Collections.Generic.IEnumerator<Item>
+ {
+ private ItemContainer collectionRef;
+ private int currentIndex;
+ private object currentObject;
+ private int currentSize;
+
+ public ItemContainerEnumerator(ItemContainer collection)
+ {
+ collectionRef = collection;
+ currentIndex = -1;
+ currentObject = null;
+ currentSize = collectionRef.Count;
+ }
+
+ // Type-safe iterator Current
+ public Item Current
+ {
+ get
+ {
+ if (currentIndex == -1)
+ throw new global::System.InvalidOperationException("Enumeration not started.");
+ if (currentIndex > currentSize - 1)
+ throw new global::System.InvalidOperationException("Enumeration finished.");
+ if (currentObject == null)
+ throw new global::System.InvalidOperationException("Collection modified.");
+ return (Item)currentObject;
+ }
+ }
+
+ // Type-unsafe IEnumerator.Current
+ object global::System.Collections.IEnumerator.Current
+ {
+ get
+ {
+ return Current;
+ }
+ }
+
+ public bool MoveNext()
+ {
+ int size = collectionRef.Count;
+ bool moveOkay = (currentIndex + 1 < size) && (size == currentSize);
+ if (moveOkay)
+ {
+ currentIndex++;
+ currentObject = collectionRef[currentIndex];
+ }
+ else
+ {
+ currentObject = null;
+ }
+ return moveOkay;
+ }
+
+ public void Reset()
+ {
+ currentIndex = -1;
+ currentObject = null;
+ if (collectionRef.Count != currentSize)
+ {
+ throw new global::System.InvalidOperationException("Collection modified.");
+ }
+ }
+
+ public void Dispose()
+ {
+ currentIndex = -1;
+ currentObject = null;
+ }
+ }
+
+ public void Clear()
+ {
+ NDalicPINVOKE.ItemContainer_Clear(swigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void Add(Item x)
+ {
+ NDalicPINVOKE.ItemContainer_Add(swigCPtr, Item.getCPtr(x));
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ private uint size()
+ {
+ uint ret = NDalicPINVOKE.ItemContainer_size(swigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ private uint capacity()
+ {
+ uint ret = NDalicPINVOKE.ItemContainer_capacity(swigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ private void reserve(uint n)
+ {
+ NDalicPINVOKE.ItemContainer_reserve(swigCPtr, n);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public ItemContainer() : this(NDalicPINVOKE.new_ItemContainer__SWIG_0(), true)
+ {
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public ItemContainer(ItemContainer other) : this(NDalicPINVOKE.new_ItemContainer__SWIG_1(ItemContainer.getCPtr(other)), true)
+ {
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public ItemContainer(int capacity) : this(NDalicPINVOKE.new_ItemContainer__SWIG_2(capacity), true)
+ {
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ private Item getitemcopy(int index)
+ {
+ Item ret = new Item(NDalicPINVOKE.ItemContainer_getitemcopy(swigCPtr, index), true);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ private Item getitem(int index)
+ {
+ Item ret = new Item(NDalicPINVOKE.ItemContainer_getitem(swigCPtr, index), false);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ private void setitem(int index, Item val)
+ {
+ NDalicPINVOKE.ItemContainer_setitem(swigCPtr, index, Item.getCPtr(val));
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void AddRange(ItemContainer values)
+ {
+ NDalicPINVOKE.ItemContainer_AddRange(swigCPtr, ItemContainer.getCPtr(values));
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public ItemContainer GetRange(int index, int count)
+ {
+ global::System.IntPtr cPtr = NDalicPINVOKE.ItemContainer_GetRange(swigCPtr, index, count);
+ ItemContainer ret = (cPtr == global::System.IntPtr.Zero) ? null : new ItemContainer(cPtr, true);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void Insert(int index, Item x)
+ {
+ NDalicPINVOKE.ItemContainer_Insert(swigCPtr, index, Item.getCPtr(x));
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void InsertRange(int index, ItemContainer values)
+ {
+ NDalicPINVOKE.ItemContainer_InsertRange(swigCPtr, index, ItemContainer.getCPtr(values));
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void RemoveAt(int index)
+ {
+ NDalicPINVOKE.ItemContainer_RemoveAt(swigCPtr, index);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void RemoveRange(int index, int count)
+ {
+ NDalicPINVOKE.ItemContainer_RemoveRange(swigCPtr, index, count);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public static ItemContainer Repeat(Item value, int count)
+ {
+ global::System.IntPtr cPtr = NDalicPINVOKE.ItemContainer_Repeat(Item.getCPtr(value), count);
+ ItemContainer ret = (cPtr == global::System.IntPtr.Zero) ? null : new ItemContainer(cPtr, true);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void Reverse()
+ {
+ NDalicPINVOKE.ItemContainer_Reverse__SWIG_0(swigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void Reverse(int index, int count)
+ {
+ NDalicPINVOKE.ItemContainer_Reverse__SWIG_1(swigCPtr, index, count);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void SetRange(int index, ItemContainer values)
+ {
+ NDalicPINVOKE.ItemContainer_SetRange(swigCPtr, index, ItemContainer.getCPtr(values));
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ }
}