Пример #1
0
 public ComplexStateType(ComplexStateType other) : this(CorePINVOKE.new_ComplexStateType__SWIG_1(ComplexStateType.getCPtr(other)), true)
 {
     if (CorePINVOKE.SWIGPendingException.Pending)
     {
         throw CorePINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #2
0
 public ComplexStateTypeEnumerator(ComplexStateType collection)
 {
     collectionRef = collection;
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
 protected override void observer(ComplexStateType x, double t)
 {
     if (OdeObserver != null)
     {
         OdeObserver(x, t);
     }
 }
 protected override void system(ComplexStateType x, ComplexStateType dxdt, double t)
 {
     if (OdeSystem != null)
     {
         OdeSystem(x, dxdt, t);
     }
 }
Пример #5
0
 public void SetRange(int index, ComplexStateType values)
 {
     CorePINVOKE.ComplexStateType_SetRange(swigCPtr, index, ComplexStateType.getCPtr(values));
     if (CorePINVOKE.SWIGPendingException.Pending)
     {
         throw CorePINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #6
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);
        }
Пример #7
0
        public ComplexStateType GetRange(int index, int count)
        {
            IntPtr           cPtr = CorePINVOKE.ComplexStateType_GetRange(swigCPtr, index, count);
            ComplexStateType ret  = (cPtr == IntPtr.Zero) ? null : new ComplexStateType(cPtr, true);

            if (CorePINVOKE.SWIGPendingException.Pending)
            {
                throw CorePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #8
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();
     }
 }
Пример #9
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();
     }
 }
Пример #10
0
 internal static HandleRef getCPtr(ComplexStateType obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }