예제 #1
0
 public StateType(StateType other) : this(CorePINVOKE.new_StateType__SWIG_1(StateType.getCPtr(other)), true)
 {
     if (CorePINVOKE.SWIGPendingException.Pending)
     {
         throw CorePINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #2
0
 public Complex(Complex other) : this(CorePINVOKE.new_Complex__SWIG_1(Complex.getCPtr(other)), true)
 {
     if (CorePINVOKE.SWIGPendingException.Pending)
     {
         throw CorePINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #3
0
 public StateType(int capacity) : this(CorePINVOKE.new_StateType__SWIG_2(capacity), true)
 {
     if (CorePINVOKE.SWIGPendingException.Pending)
     {
         throw CorePINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #4
0
 public void RemoveRange(int index, int count)
 {
     CorePINVOKE.ComplexStateType_RemoveRange(swigCPtr, index, count);
     if (CorePINVOKE.SWIGPendingException.Pending)
     {
         throw CorePINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #5
0
 public void Insert(int index, Complex x)
 {
     CorePINVOKE.ComplexStateType_Insert(swigCPtr, index, Complex.getCPtr(x));
     if (CorePINVOKE.SWIGPendingException.Pending)
     {
         throw CorePINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #6
0
 private void setitem(int index, Complex val)
 {
     CorePINVOKE.ComplexStateType_setitem(swigCPtr, index, Complex.getCPtr(val));
     if (CorePINVOKE.SWIGPendingException.Pending)
     {
         throw CorePINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #7
0
 public void Add(Complex x)
 {
     CorePINVOKE.ComplexStateType_Add(swigCPtr, Complex.getCPtr(x));
     if (CorePINVOKE.SWIGPendingException.Pending)
     {
         throw CorePINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #8
0
 private void setitem(int index, double val)
 {
     CorePINVOKE.StateType_setitem(swigCPtr, index, val);
     if (CorePINVOKE.SWIGPendingException.Pending)
     {
         throw CorePINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #9
0
 public void SetRange(int index, StateType values)
 {
     CorePINVOKE.StateType_SetRange(swigCPtr, index, StateType.getCPtr(values));
     if (CorePINVOKE.SWIGPendingException.Pending)
     {
         throw CorePINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #10
0
 public void AddRange(StateType values)
 {
     CorePINVOKE.StateType_AddRange(swigCPtr, StateType.getCPtr(values));
     if (CorePINVOKE.SWIGPendingException.Pending)
     {
         throw CorePINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #11
0
 public void Insert(int index, double x)
 {
     CorePINVOKE.StateType_Insert(swigCPtr, index, x);
     if (CorePINVOKE.SWIGPendingException.Pending)
     {
         throw CorePINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #12
0
 public void RemoveAt(int index)
 {
     CorePINVOKE.StateType_RemoveAt(swigCPtr, index);
     if (CorePINVOKE.SWIGPendingException.Pending)
     {
         throw CorePINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #13
0
 public void Reverse(int index, int count)
 {
     CorePINVOKE.StateType_Reverse__SWIG_1(swigCPtr, index, count);
     if (CorePINVOKE.SWIGPendingException.Pending)
     {
         throw CorePINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #14
0
        private double getitem(int index)
        {
            double ret = CorePINVOKE.StateType_getitem(swigCPtr, index);

            if (CorePINVOKE.SWIGPendingException.Pending)
            {
                throw CorePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #15
0
        public Complex Substract(Complex rhs)
        {
            Complex ret = new Complex(CorePINVOKE.Complex_Substract(swigCPtr, Complex.getCPtr(rhs)), false);

            if (CorePINVOKE.SWIGPendingException.Pending)
            {
                throw CorePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #16
0
        private Complex getitem(int index)
        {
            Complex ret = new Complex(CorePINVOKE.ComplexStateType_getitem(swigCPtr, index), false);

            if (CorePINVOKE.SWIGPendingException.Pending)
            {
                throw CorePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #17
0
        public int Solve(Ode ode, StateType timePoints, double step)
        {
            int ret = CorePINVOKE.Solver_Solve__SWIG_3(swigCPtr, Ode.getCPtr(ode), StateType.getCPtr(timePoints), step);

            if (CorePINVOKE.SWIGPendingException.Pending)
            {
                throw CorePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #18
0
        public Complex Multiply(Complex rhs)
        {
            Complex ret = new Complex(CorePINVOKE.Complex_Multiply__SWIG_1(swigCPtr, Complex.getCPtr(rhs)), false);

            if (CorePINVOKE.SWIGPendingException.Pending)
            {
                throw CorePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #19
0
        public static StateType Repeat(double value, int count)
        {
            IntPtr    cPtr = CorePINVOKE.StateType_Repeat(value, count);
            StateType ret  = (cPtr == IntPtr.Zero) ? null : new StateType(cPtr, true);

            if (CorePINVOKE.SWIGPendingException.Pending)
            {
                throw CorePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #20
0
        public static ComplexStateType Repeat(Complex value, int count)
        {
            IntPtr           cPtr = CorePINVOKE.ComplexStateType_Repeat(Complex.getCPtr(value), count);
            ComplexStateType ret  = (cPtr == IntPtr.Zero) ? null : new ComplexStateType(cPtr, true);

            if (CorePINVOKE.SWIGPendingException.Pending)
            {
                throw CorePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #21
0
        public StateType GetRange(int index, int count)
        {
            IntPtr    cPtr = CorePINVOKE.StateType_GetRange(swigCPtr, index, count);
            StateType ret  = (cPtr == IntPtr.Zero) ? null : new StateType(cPtr, true);

            if (CorePINVOKE.SWIGPendingException.Pending)
            {
                throw CorePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #22
0
 private void SwigDirectorConnect()
 {
     if (SwigDerivedClassHasMethod("system", swigMethodTypes0))
     {
         swigDelegate0 = new SwigDelegateComplexOde_0(SwigDirectorsystem);
     }
     if (SwigDerivedClassHasMethod("observer", swigMethodTypes1))
     {
         swigDelegate1 = new SwigDelegateComplexOde_1(SwigDirectorobserver);
     }
     CorePINVOKE.ComplexOde_director_connect(swigCPtr, swigDelegate0, swigDelegate1);
 }
예제 #23
0
 protected virtual void system(ComplexStateType x, ComplexStateType dxdt, double t)
 {
     if (SwigDerivedClassHasMethod("system", swigMethodTypes0))
     {
         CorePINVOKE.ComplexOde_systemSwigExplicitComplexOde(swigCPtr, ComplexStateType.getCPtr(x), ComplexStateType.getCPtr(dxdt), t);
     }
     else
     {
         CorePINVOKE.ComplexOde_system(swigCPtr, ComplexStateType.getCPtr(x), ComplexStateType.getCPtr(dxdt), t);
     }
     if (CorePINVOKE.SWIGPendingException.Pending)
     {
         throw CorePINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #24
0
 protected virtual void observer(ComplexStateType x, double t)
 {
     if (SwigDerivedClassHasMethod("observer", swigMethodTypes1))
     {
         CorePINVOKE.ComplexOde_observerSwigExplicitComplexOde(swigCPtr, ComplexStateType.getCPtr(x), t);
     }
     else
     {
         CorePINVOKE.ComplexOde_observer(swigCPtr, ComplexStateType.getCPtr(x), t);
     }
     if (CorePINVOKE.SWIGPendingException.Pending)
     {
         throw CorePINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #25
0
 public virtual void Dispose()
 {
     lock (this) {
         if (swigCPtr.Handle != IntPtr.Zero)
         {
             if (swigCMemOwn)
             {
                 swigCMemOwn = false;
                 CorePINVOKE.delete_StateType(swigCPtr);
             }
             swigCPtr = new HandleRef(null, IntPtr.Zero);
         }
         GC.SuppressFinalize(this);
     }
 }
예제 #26
0
        public bool Remove(double value)
        {
            bool ret = CorePINVOKE.StateType_Remove(swigCPtr, value);

            return(ret);
        }
예제 #27
0
        public int LastIndexOf(double value)
        {
            int ret = CorePINVOKE.StateType_LastIndexOf(swigCPtr, value);

            return(ret);
        }
예제 #28
0
        public bool Contains(double value)
        {
            bool ret = CorePINVOKE.StateType_Contains(swigCPtr, value);

            return(ret);
        }
예제 #29
0
 public void Reverse()
 {
     CorePINVOKE.StateType_Reverse__SWIG_0(swigCPtr);
 }
예제 #30
0
 public StateType() : this(CorePINVOKE.new_StateType__SWIG_0(), true)
 {
 }