AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
IntArrayElement.cs
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 // <auto-generated />
3 //
4 // This file was automatically generated by SWIG (http://www.swig.org).
5 // Version 3.0.10
6 //
7 // Do not make changes to this file unless you know what you are doing--modify
8 // the SWIG interface file instead.
9 //------------------------------------------------------------------------------
10 
11 namespace HoloToolkit.Sharing {
12 
13 public class IntArrayElement : Element {
14  private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15 
16  internal IntArrayElement(global::System.IntPtr cPtr, bool cMemoryOwn) : base(SharingClientPINVOKE.IntArrayElement_SWIGUpcast(cPtr), cMemoryOwn) {
17  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
18  }
19 
20  internal static global::System.Runtime.InteropServices.HandleRef getCPtr(IntArrayElement obj) {
21  return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
22  }
23 
24  ~IntArrayElement() {
25  Dispose();
26  }
27 
28  public override void Dispose() {
29  lock(this) {
30  if (swigCPtr.Handle != global::System.IntPtr.Zero) {
31  if (swigCMemOwn) {
32  swigCMemOwn = false;
34  }
35  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
36  }
37  global::System.GC.SuppressFinalize(this);
38  base.Dispose();
39  }
40  }
41 
42  public static IntArrayElement Cast(Element element) {
43  global::System.IntPtr cPtr = SharingClientPINVOKE.IntArrayElement_Cast(Element.getCPtr(element));
44  IntArrayElement ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntArrayElement(cPtr, true);
45  return ret;
46  }
47 
48  public virtual int GetCount() {
50  return ret;
51  }
52 
53  public virtual int GetValue(int index) {
54  int ret = SharingClientPINVOKE.IntArrayElement_GetValue(swigCPtr, index);
55  return ret;
56  }
57 
58  public virtual void SetValue(int index, int newValue) {
59  SharingClientPINVOKE.IntArrayElement_SetValue(swigCPtr, index, newValue);
60  }
61 
62  public virtual void InsertValue(int index, int value) {
63  SharingClientPINVOKE.IntArrayElement_InsertValue(swigCPtr, index, value);
64  }
65 
66  public virtual void RemoveValue(int index) {
68  }
69 
70  public virtual void AddListener(IntArrayListener newListener) {
72  }
73 
74  public virtual void RemoveListener(IntArrayListener oldListener) {
76  }
77 
78 }
79 
80 }
static global::System.IntPtr IntArrayElement_SWIGUpcast(global::System.IntPtr jarg1)
static void IntArrayElement_SetValue(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
virtual void SetValue(int index, int newValue)
static void IntArrayElement_RemoveListener(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int IntArrayElement_GetCount(global::System.Runtime.InteropServices.HandleRef jarg1)
static void IntArrayElement_RemoveValue(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
virtual void AddListener(IntArrayListener newListener)
virtual void RemoveListener(IntArrayListener oldListener)
virtual void InsertValue(int index, int value)
static int IntArrayElement_GetValue(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void delete_IntArrayElement(global::System.Runtime.InteropServices.HandleRef jarg1)
virtual void RemoveValue(int index)
static void IntArrayElement_InsertValue(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
static global::System.IntPtr IntArrayElement_Cast(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntArrayElement Cast(Element element)
static void IntArrayElement_AddListener(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)