Parameter remove(string sid) { IntPtr cPtr = libsbmlPINVOKE.ListOfLocalParameters_remove__SWIG_1(swigCPtr, sid); LocalParameter ret = (cPtr == IntPtr.Zero) ? null : new LocalParameter(cPtr, true); return(ret); }
Parameter remove(long n) { IntPtr cPtr = libsbmlPINVOKE.ListOfLocalParameters_remove__SWIG_0(swigCPtr, n); LocalParameter ret = (cPtr == IntPtr.Zero) ? null : new LocalParameter(cPtr, true); return(ret); }
LocalParameter(LocalParameter orig) : this(libsbmlPINVOKE.new_LocalParameter__SWIG_2(LocalParameter.getCPtr(orig)), true) { if (libsbmlPINVOKE.SWIGPendingException.Pending) { throw libsbmlPINVOKE.SWIGPendingException.Retrieve(); } }
LocalParameter getLocalParameter(string sid) { global::System.IntPtr cPtr = libsbmlPINVOKE.KineticLaw_getLocalParameter__SWIG_2(swigCPtr, sid); LocalParameter ret = (cPtr == global::System.IntPtr.Zero) ? null : new LocalParameter(cPtr, false); return(ret); }
Parameter get(long n) { IntPtr cPtr = libsbmlPINVOKE.ListOfLocalParameters_get__SWIG_0(swigCPtr, n); LocalParameter ret = (cPtr == IntPtr.Zero) ? null : new LocalParameter(cPtr, false); return(ret); }
Parameter get(string sid) { IntPtr cPtr = libsbmlPINVOKE.ListOfLocalParameters_get__SWIG_2(swigCPtr, sid); LocalParameter ret = (cPtr == IntPtr.Zero) ? null : new LocalParameter(cPtr, false); return(ret); }
LocalParameter createLocalParameter() { global::System.IntPtr cPtr = libsbmlPINVOKE.KineticLaw_createLocalParameter(swigCPtr); LocalParameter ret = (cPtr == global::System.IntPtr.Zero) ? null : new LocalParameter(cPtr, false); return(ret); }
LocalParameter removeLocalParameter(long n) { global::System.IntPtr cPtr = libsbmlPINVOKE.KineticLaw_removeLocalParameter__SWIG_0(swigCPtr, n); LocalParameter ret = (cPtr == global::System.IntPtr.Zero) ? null : new LocalParameter(cPtr, true); return(ret); }
LocalParameter clone() { IntPtr cPtr = libsbmlPINVOKE.LocalParameter_clone(swigCPtr); LocalParameter ret = (cPtr == IntPtr.Zero) ? null : new LocalParameter(cPtr, true); return(ret); }
LocalParameter getLocalParameter(long n) { IntPtr cPtr = libsbmlPINVOKE.KineticLaw_getLocalParameter__SWIG_0(swigCPtr, n); LocalParameter ret = (cPtr == IntPtr.Zero) ? null : new LocalParameter(cPtr, false); return(ret); }
LocalParameter removeLocalParameter(string sid) { IntPtr cPtr = libsbmlPINVOKE.KineticLaw_removeLocalParameter__SWIG_1(swigCPtr, sid); LocalParameter ret = (cPtr == IntPtr.Zero) ? null : new LocalParameter(cPtr, true); return(ret); }
internal static HandleRef getCPtrAndDisown(LocalParameter obj) { HandleRef ptr = new HandleRef(null, IntPtr.Zero); if (obj != null) { ptr = obj.swigCPtr; obj.swigCMemOwn = false; } return(ptr); }
int addLocalParameter(LocalParameter p) { int ret = libsbmlPINVOKE.KineticLaw_addLocalParameter(swigCPtr, LocalParameter.getCPtr(p)); return(ret); }
/** * Adds a copy of the given LocalParameter object to the list of local * parameters in this KineticLaw. * * @param p the LocalParameter to add * * * @return integer value indicating success/failure of the * function. @if clike The value is drawn from the * enumeration #OperationReturnValues_t. @endif The possible values * returned by this function are: * @li @link libsbml#LIBSBML_OPERATION_SUCCESS LIBSBML_OPERATION_SUCCESS@endlink * @li @link libsbml#LIBSBML_LEVEL_MISMATCH LIBSBML_LEVEL_MISMATCH@endlink * @li @link libsbml#LIBSBML_VERSION_MISMATCH LIBSBML_VERSION_MISMATCH@endlink * @li @link libsbml#LIBSBML_DUPLICATE_OBJECT_ID LIBSBML_DUPLICATE_OBJECT_ID@endlink * @li @link libsbml#LIBSBML_INVALID_OBJECT LIBSBML_INVALID_OBJECT@endlink * @li @link libsbml#LIBSBML_OPERATION_FAILED LIBSBML_OPERATION_FAILED@endlink * * * @note This method should be used with some caution. The fact that this * method @em copies the object passed to it means that the caller will be * left holding a physically different object instance than the one contained * inside this object. Changes made to the original object instance (such as * resetting attribute values) will <em>not affect the instance in this * object</em>. In addition, the caller should make sure to free the * original object if it is no longer being used, or else a memory leak will * result. Please see other methods on this class (particularly a * corresponding method whose name begins with the word <code>create</code>) * for alternatives that do not lead to these issues. * * * * @see createLocalParameter() */ public int addLocalParameter(LocalParameter p) { int ret = libsbmlPINVOKE.KineticLaw_addLocalParameter(swigCPtr, LocalParameter.getCPtr(p)); return ret; }
internal static HandleRef getCPtr(LocalParameter obj) { return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr); }
internal static HandleRef getCPtrAndDisown(LocalParameter obj) { HandleRef ptr = new HandleRef(null, IntPtr.Zero); if (obj != null) { ptr = obj.swigCPtr; obj.swigCMemOwn = false; } return ptr; }
internal static HandleRef getCPtr(LocalParameter obj) { return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; }
/** * Copy constructor; creates a copy of a given LocalParameter object. * * @param orig the LocalParameter instance to copy. * * @throws SBMLConstructorException * Thrown if the argument @p orig is @c null. */ public LocalParameter(LocalParameter orig) : this(libsbmlPINVOKE.new_LocalParameter__SWIG_2(LocalParameter.getCPtr(orig)), true) { if (libsbmlPINVOKE.SWIGPendingException.Pending) throw libsbmlPINVOKE.SWIGPendingException.Retrieve(); }