Inheritance: IDisposable
Example #1
0
        public SBaseList getListOfAllElements()
        {
            IntPtr    cPtr = libsbmlPINVOKE.SBasePlugin_getListOfAllElements__SWIG_1(swigCPtr);
            SBaseList ret  = (cPtr == IntPtr.Zero) ? null : new SBaseList(cPtr, false);

            return(ret);
        }
Example #2
0
        public SBaseList getListOfAllElements(ElementFilter filter)
        {
            IntPtr    cPtr = libsbmlPINVOKE.SBasePlugin_getListOfAllElements__SWIG_0(swigCPtr, ElementFilter.getCPtr(filter));
            SBaseList ret  = (cPtr == IntPtr.Zero) ? null : new SBaseList(cPtr, false);

            return(ret);
        }
    /**
     * Returns a list of all ids from the given list of elements
     */
    public static List<string> getAllIds(SBaseList allElements)
    {
        var result = new List<string>();
        if (allElements == null || allElements.getSize() == 0)
            return result;

        for (uint i = 0; i < allElements.getSize(); ++i)
        {
            SBase current = allElements.get(i);
            if (current.isSetId() && current.getTypeCode() != libsbml.SBML_LOCAL_PARAMETER)
            {
                result.Add(current.getId());
            }
        }

        return result;
    }
Example #4
0
 public void renameIDs(SBaseList elements, IdentifierTransformer idTransformer)
 {
     libsbmlPINVOKE.Model_renameIDs(swigCPtr, SBaseList.getCPtr(elements), IdentifierTransformer.getCPtr(idTransformer));
 }
Example #5
0
 internal static HandleRef getCPtr(SBaseList obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
Example #6
0
 internal static HandleRef getCPtr(SBaseList obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
Example #7
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SBaseList obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }