public SBaseList getListOfAllElements() { IntPtr cPtr = libsbmlPINVOKE.SBasePlugin_getListOfAllElements__SWIG_1(swigCPtr); SBaseList ret = (cPtr == IntPtr.Zero) ? null : new SBaseList(cPtr, false); return(ret); }
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; }
public void renameIDs(SBaseList elements, IdentifierTransformer idTransformer) { libsbmlPINVOKE.Model_renameIDs(swigCPtr, SBaseList.getCPtr(elements), IdentifierTransformer.getCPtr(idTransformer)); }
internal static HandleRef getCPtr(SBaseList obj) { return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; }
internal static HandleRef getCPtr(SBaseList obj) { return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr); }
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); }