Ejemplo n.º 1
0
 public FloatVector(int capacity) : this(MyDLLPINVOKE.new_FloatVector__SWIG_2(capacity), true)
 {
     if (MyDLLPINVOKE.SWIGPendingException.Pending)
     {
         throw MyDLLPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 2
0
    public static CppClass CreateInstance()
    {
        global::System.IntPtr cPtr = MyDLLPINVOKE.CreateInstance();
        CppClass ret = (cPtr == global::System.IntPtr.Zero) ? null : new CppClass(cPtr, false);

        return(ret);
    }
Ejemplo n.º 3
0
 public FloatVector(FloatVector other) : this(MyDLLPINVOKE.new_FloatVector__SWIG_1(FloatVector.getCPtr(other)), true)
 {
     if (MyDLLPINVOKE.SWIGPendingException.Pending)
     {
         throw MyDLLPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 4
0
 public void SetVector(FloatVector fVect)
 {
     MyDLLPINVOKE.CppClass_SetVector(swigCPtr, FloatVector.getCPtr(fVect));
     if (MyDLLPINVOKE.SWIGPendingException.Pending)
     {
         throw MyDLLPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 5
0
 public void SetString(string str)
 {
     MyDLLPINVOKE.CppClass_SetString(swigCPtr, str);
     if (MyDLLPINVOKE.SWIGPendingException.Pending)
     {
         throw MyDLLPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 6
0
 public void SetCallback(CallbackBase callbackObject)
 {
     MyDLLPINVOKE.CppClass_SetCallback(swigCPtr, CallbackBase.getCPtr(callbackObject));
     if (MyDLLPINVOKE.SWIGPendingException.Pending)
     {
         throw MyDLLPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 7
0
 public virtual void Callback(string str, FloatVector fVect)
 {
     MyDLLPINVOKE.CallbackBase_Callback(swigCPtr, str, FloatVector.getCPtr(fVect));
     if (MyDLLPINVOKE.SWIGPendingException.Pending)
     {
         throw MyDLLPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 8
0
 public void Insert(int index, float x)
 {
     MyDLLPINVOKE.FloatVector_Insert(swigCPtr, index, x);
     if (MyDLLPINVOKE.SWIGPendingException.Pending)
     {
         throw MyDLLPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 9
0
 public void RemoveAt(int index)
 {
     MyDLLPINVOKE.FloatVector_RemoveAt(swigCPtr, index);
     if (MyDLLPINVOKE.SWIGPendingException.Pending)
     {
         throw MyDLLPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 10
0
 public void Reverse(int index, int count)
 {
     MyDLLPINVOKE.FloatVector_Reverse__SWIG_1(swigCPtr, index, count);
     if (MyDLLPINVOKE.SWIGPendingException.Pending)
     {
         throw MyDLLPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 11
0
 public void SetRange(int index, FloatVector values)
 {
     MyDLLPINVOKE.FloatVector_SetRange(swigCPtr, index, FloatVector.getCPtr(values));
     if (MyDLLPINVOKE.SWIGPendingException.Pending)
     {
         throw MyDLLPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 12
0
 private void SwigDirectorConnect()
 {
     if (SwigDerivedClassHasMethod("Callback", swigMethodTypes0))
     {
         swigDelegate0 = new SwigDelegateCallbackBase_0(SwigDirectorMethodCallback);
     }
     MyDLLPINVOKE.CallbackBase_director_connect(swigCPtr, swigDelegate0);
 }
Ejemplo n.º 13
0
 private void setitem(int index, float val)
 {
     MyDLLPINVOKE.FloatVector_setitem(swigCPtr, index, val);
     if (MyDLLPINVOKE.SWIGPendingException.Pending)
     {
         throw MyDLLPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 14
0
    private float getitem(int index)
    {
        float ret = MyDLLPINVOKE.FloatVector_getitem(swigCPtr, index);

        if (MyDLLPINVOKE.SWIGPendingException.Pending)
        {
            throw MyDLLPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Ejemplo n.º 15
0
    public static FloatVector Repeat(float value, int count)
    {
        global::System.IntPtr cPtr = MyDLLPINVOKE.FloatVector_Repeat(value, count);
        FloatVector           ret  = (cPtr == global::System.IntPtr.Zero) ? null : new FloatVector(cPtr, true);

        if (MyDLLPINVOKE.SWIGPendingException.Pending)
        {
            throw MyDLLPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Ejemplo n.º 16
0
    public FloatVector GetRange(int index, int count)
    {
        global::System.IntPtr cPtr = MyDLLPINVOKE.FloatVector_GetRange(swigCPtr, index, count);
        FloatVector           ret  = (cPtr == global::System.IntPtr.Zero) ? null : new FloatVector(cPtr, true);

        if (MyDLLPINVOKE.SWIGPendingException.Pending)
        {
            throw MyDLLPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Ejemplo n.º 17
0
 protected virtual void Dispose(bool disposing)
 {
     lock (this) {
         if (swigCPtr.Handle != global::System.IntPtr.Zero)
         {
             if (swigCMemOwn)
             {
                 swigCMemOwn = false;
                 MyDLLPINVOKE.delete_FloatVector(swigCPtr);
             }
             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
         }
     }
 }
Ejemplo n.º 18
0
    public bool Contains(float value)
    {
        bool ret = MyDLLPINVOKE.FloatVector_Contains(swigCPtr, value);

        return(ret);
    }
Ejemplo n.º 19
0
 public void Clear()
 {
     MyDLLPINVOKE.FloatVector_Clear(swigCPtr);
 }
Ejemplo n.º 20
0
 public void Add(float x)
 {
     MyDLLPINVOKE.FloatVector_Add(swigCPtr, x);
 }
Ejemplo n.º 21
0
 public void Reverse()
 {
     MyDLLPINVOKE.FloatVector_Reverse__SWIG_0(swigCPtr);
 }
Ejemplo n.º 22
0
    private uint size()
    {
        uint ret = MyDLLPINVOKE.FloatVector_size(swigCPtr);

        return(ret);
    }
Ejemplo n.º 23
0
    private uint capacity()
    {
        uint ret = MyDLLPINVOKE.FloatVector_capacity(swigCPtr);

        return(ret);
    }
Ejemplo n.º 24
0
 public CppClass() : this(MyDLLPINVOKE.new_CppClass(), true)
 {
 }
Ejemplo n.º 25
0
    public int LastIndexOf(float value)
    {
        int ret = MyDLLPINVOKE.FloatVector_LastIndexOf(swigCPtr, value);

        return(ret);
    }
Ejemplo n.º 26
0
    public FloatVector GetVector()
    {
        FloatVector ret = new FloatVector(MyDLLPINVOKE.CppClass_GetVector(swigCPtr), true);

        return(ret);
    }
Ejemplo n.º 27
0
 private void reserve(uint n)
 {
     MyDLLPINVOKE.FloatVector_reserve(swigCPtr, n);
 }
Ejemplo n.º 28
0
 public FloatVector() : this(MyDLLPINVOKE.new_FloatVector__SWIG_0(), true)
 {
 }
Ejemplo n.º 29
0
    public bool Remove(float value)
    {
        bool ret = MyDLLPINVOKE.FloatVector_Remove(swigCPtr, value);

        return(ret);
    }
Ejemplo n.º 30
0
 public void ExeCallback()
 {
     MyDLLPINVOKE.CppClass_ExeCallback(swigCPtr);
 }