Inheritance: IDisposable
 public static IdList mapComponentValues(Model m)
 {
     IdList ret = new IdList(libsbmlPINVOKE.SBMLTransforms_mapComponentValues(Model.getCPtr(m)), true);
     return ret;
 }
 /**
    * Expands the math represented by the ASTNode to implement the functionality
    * of all the FunctionDefinitions in the list, if they occur within the
    * original math.
    *
    * For example, an ASTNode represents the math expression: f(s, g(p, q)) where
    * f is the id of a FunctionDefinition representing f(x, y) = x * y
    * and g is the id of a FunctionDefinition representing f(x, y) = x/y
    * The outcome of the function is that the ASTNode now represents
    * the math expression: s * p/q
    *
    * @param math ASTNode representing the math to be transformed
    *
    * @param lofd the ListOfFunctionDefinitions to be expanded
    *
    * @param idsToExclude an optional list of function definition ids to exclude.
    *
    * *
  * @if python @note Because this is a static method on a class, the Python
  * language interface for libSBML will contain two variants.  One will be the
  * expected, normal static method on the class (i.e., a regular
  * <em>methodName</em>), and the other will be a standalone top-level
  * function with the name <em>ClassName_methodName()</em>. This is merely an
  * artifact of how the language interfaces are created in libSBML.  The
  * methods are functionally identical. @endif
  *
  *
    */
 /* libsbml-internal */
 public static void replaceFD(ASTNode math, ListOfFunctionDefinitions lofd, IdList idsToExclude)
 {
     libsbmlPINVOKE.SBMLTransforms_replaceFD__SWIG_2(ASTNode.getCPtr(math), ListOfFunctionDefinitions.getCPtr(lofd), IdList.getCPtr(idsToExclude));
 }
Exemple #3
0
 internal static HandleRef getCPtr(IdList obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
Exemple #4
0
        internal static HandleRef getCPtrAndDisown(IdList obj)
        {
            HandleRef ptr = new HandleRef(null, IntPtr.Zero);

            if (obj != null)
            {
            ptr             = obj.swigCPtr;
            obj.swigCMemOwn = false;
            }

            return ptr;
        }
 internal static HandleRef getCPtr(IdList obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }