Exemplo n.º 1
0
 public static AbstractState factory(string backend, SWIGTYPE_p_std__vectorT_std__string_t fluid_names)
 {
     global::System.IntPtr cPtr = CoolPropPINVOKE.AbstractState_factory__SWIG_1(backend, SWIGTYPE_p_std__vectorT_std__string_t.getCPtr(fluid_names));
     AbstractState ret = (cPtr == global::System.IntPtr.Zero) ? null : new AbstractState(cPtr, false);
     if (CoolPropPINVOKE.SWIGPendingException.Pending) throw CoolPropPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
 public MultitaskKernelTreeNormalizer(SWIGTYPE_p_std__vectorT_std__string_t task_lhs, SWIGTYPE_p_std__vectorT_std__string_t task_rhs, CTaxonomy tax) : this(modshogunPINVOKE.new_MultitaskKernelTreeNormalizer__SWIG_1(SWIGTYPE_p_std__vectorT_std__string_t.getCPtr(task_lhs), SWIGTYPE_p_std__vectorT_std__string_t.getCPtr(task_rhs), CTaxonomy.getCPtr(tax)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 3
0
 public static AbstractState factory(string backend, SWIGTYPE_p_std__vectorT_std__string_t fluid_names)
 {
     global::System.IntPtr cPtr = CoolPropPINVOKE.AbstractState_factory__SWIG_1(backend, SWIGTYPE_p_std__vectorT_std__string_t.getCPtr(fluid_names));
     AbstractState ret = (cPtr == global::System.IntPtr.Zero) ? null : new AbstractState(cPtr, false);
     if (CoolPropPINVOKE.SWIGPendingException.Pending) throw CoolPropPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Exemplo n.º 4
0
 public void getCommonSubspaces(StateSpace other, SWIGTYPE_p_std__vectorT_std__string_t subspaces)
 {
     ompl_basePINVOKE.StateSpace_getCommonSubspaces__SWIG_0(swigCPtr, StateSpace.getCPtr(other), SWIGTYPE_p_std__vectorT_std__string_t.getCPtr(subspaces));
     if (ompl_basePINVOKE.SWIGPendingException.Pending)
     {
         throw ompl_basePINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public void set_task_vector(SWIGTYPE_p_std__vectorT_std__string_t vec)
 {
     modshogunPINVOKE.MultitaskKernelTreeNormalizer_set_task_vector(swigCPtr, SWIGTYPE_p_std__vectorT_std__string_t.getCPtr(vec));
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 6
0
 public void getParamValues(SWIGTYPE_p_std__vectorT_std__string_t vals)
 {
     ompl_basePINVOKE.ParamSet_getParamValues(swigCPtr, SWIGTYPE_p_std__vectorT_std__string_t.getCPtr(vals));
     if (ompl_basePINVOKE.SWIGPendingException.Pending)
     {
         throw ompl_basePINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 7
0
    public static string strjoin(SWIGTYPE_p_std__vectorT_std__string_t strings, string delim)
    {
        string ret = CoolPropPINVOKE.strjoin(SWIGTYPE_p_std__vectorT_std__string_t.getCPtr(strings), delim);

        if (CoolPropPINVOKE.SWIGPendingException.Pending)
        {
            throw CoolPropPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Exemplo n.º 8
0
    public static SWIGTYPE_p_std__vectorT_std__string_t strsplit(string s, char del)
    {
        SWIGTYPE_p_std__vectorT_std__string_t ret = new SWIGTYPE_p_std__vectorT_std__string_t(CoolPropPINVOKE.strsplit(s, del), true);

        if (CoolPropPINVOKE.SWIGPendingException.Pending)
        {
            throw CoolPropPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Exemplo n.º 9
0
    public static SWIGTYPE_p_std__vectorT_std__vectorT_double_t_t PropsSImulti(SWIGTYPE_p_std__vectorT_std__string_t Outputs, string Name1, DoubleVector Prop1, string Name2, DoubleVector Prop2, string backend, SWIGTYPE_p_std__vectorT_std__string_t fluids, DoubleVector fractions)
    {
        SWIGTYPE_p_std__vectorT_std__vectorT_double_t_t ret = new SWIGTYPE_p_std__vectorT_std__vectorT_double_t_t(CoolPropPINVOKE.PropsSImulti(SWIGTYPE_p_std__vectorT_std__string_t.getCPtr(Outputs), Name1, DoubleVector.getCPtr(Prop1), Name2, DoubleVector.getCPtr(Prop2), backend, SWIGTYPE_p_std__vectorT_std__string_t.getCPtr(fluids), DoubleVector.getCPtr(fractions)), true);

        if (CoolPropPINVOKE.SWIGPendingException.Pending)
        {
            throw CoolPropPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Exemplo n.º 10
0
    public SWIGTYPE_p_std__vectorT_std__string_t fluid_names()
    {
        SWIGTYPE_p_std__vectorT_std__string_t ret = new SWIGTYPE_p_std__vectorT_std__string_t(CoolPropPINVOKE.AbstractState_fluid_names(swigCPtr), true);

        if (CoolPropPINVOKE.SWIGPendingException.Pending)
        {
            throw CoolPropPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Exemplo n.º 11
0
    public static AbstractState factory(string backend, SWIGTYPE_p_std__vectorT_std__string_t fluid_names)
    {
        var cPtr = CoolPropPINVOKE.AbstractState_factory__SWIG_1(backend,
                                                                 SWIGTYPE_p_std__vectorT_std__string_t.getCPtr(fluid_names));
        var ret = (cPtr == IntPtr.Zero) ? null : new AbstractState(cPtr, false);

        if (CoolPropPINVOKE.SWIGPendingException.Pending)
        {
            throw CoolPropPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
 public void set_task_vector(SWIGTYPE_p_std__vectorT_std__string_t vec) {
   modshogunPINVOKE.MultitaskKernelTreeNormalizer_set_task_vector(swigCPtr, SWIGTYPE_p_std__vectorT_std__string_t.getCPtr(vec));
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
 public MultitaskKernelTreeNormalizer(SWIGTYPE_p_std__vectorT_std__string_t task_lhs, SWIGTYPE_p_std__vectorT_std__string_t task_rhs, CTaxonomy tax) : this(modshogunPINVOKE.new_MultitaskKernelTreeNormalizer__SWIG_1(SWIGTYPE_p_std__vectorT_std__string_t.getCPtr(task_lhs), SWIGTYPE_p_std__vectorT_std__string_t.getCPtr(task_rhs), CTaxonomy.getCPtr(tax)), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Exemplo n.º 14
0
        public static AdvancedStateCopyOperation copyStateData(StateSpace destS, State dest, StateSpace sourceS, State source, SWIGTYPE_p_std__vectorT_std__string_t subspaces)
        {
            AdvancedStateCopyOperation ret = (AdvancedStateCopyOperation)ompl_basePINVOKE.copyStateData__SWIG_2(StateSpace.getCPtr(destS), State.getCPtr(dest), StateSpace.getCPtr(sourceS), State.getCPtr(source), SWIGTYPE_p_std__vectorT_std__string_t.getCPtr(subspaces));

            if (ompl_basePINVOKE.SWIGPendingException.Pending)
            {
                throw ompl_basePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_std__vectorT_std__string_t obj) {
   return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
 }
 internal static HandleRef getCPtr(SWIGTYPE_p_std__vectorT_std__string_t obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
Exemplo n.º 17
0
 public SWIGTYPE_p_std__vectorT_std__string_t fluid_names() {
   SWIGTYPE_p_std__vectorT_std__string_t ret = new SWIGTYPE_p_std__vectorT_std__string_t(CoolPropPINVOKE.AbstractState_fluid_names(swigCPtr), true);
   if (CoolPropPINVOKE.SWIGPendingException.Pending) throw CoolPropPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_std__vectorT_std__string_t obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Exemplo n.º 19
0
 public static SWIGTYPE_p_std__vectorT_std__vectorT_double_t_t PropsSImulti(SWIGTYPE_p_std__vectorT_std__string_t Outputs, string Name1, DoubleVector Prop1, string Name2, DoubleVector Prop2, string backend, SWIGTYPE_p_std__vectorT_std__string_t fluids, DoubleVector fractions)
 {
     SWIGTYPE_p_std__vectorT_std__vectorT_double_t_t ret = new SWIGTYPE_p_std__vectorT_std__vectorT_double_t_t(CoolPropPINVOKE.PropsSImulti(SWIGTYPE_p_std__vectorT_std__string_t.getCPtr(Outputs), Name1, DoubleVector.getCPtr(Prop1), Name2, DoubleVector.getCPtr(Prop2), backend, SWIGTYPE_p_std__vectorT_std__string_t.getCPtr(fluids), DoubleVector.getCPtr(fractions)), true);
     if (CoolPropPINVOKE.SWIGPendingException.Pending) throw CoolPropPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
 internal static HandleRef getCPtr(SWIGTYPE_p_std__vectorT_std__string_t obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }