Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 LocalParameter(LocalParameter orig) : this(libsbmlPINVOKE.new_LocalParameter__SWIG_2(LocalParameter.getCPtr(orig)), true)
 {
     if (libsbmlPINVOKE.SWIGPendingException.Pending)
     {
         throw libsbmlPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
        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);
        }
Exemplo n.º 6
0
        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);
        }
Exemplo n.º 7
0
        LocalParameter createLocalParameter()
        {
            global::System.IntPtr cPtr = libsbmlPINVOKE.KineticLaw_createLocalParameter(swigCPtr);
            LocalParameter        ret  = (cPtr == global::System.IntPtr.Zero) ? null : new LocalParameter(cPtr, false);

            return(ret);
        }
Exemplo n.º 8
0
        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);
        }
Exemplo n.º 9
0
        LocalParameter clone()
        {
            IntPtr         cPtr = libsbmlPINVOKE.LocalParameter_clone(swigCPtr);
            LocalParameter ret  = (cPtr == IntPtr.Zero) ? null : new LocalParameter(cPtr, true);

            return(ret);
        }
Exemplo n.º 10
0
        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);
        }
Exemplo n.º 11
0
        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);
        }
Exemplo n.º 12
0
        internal static HandleRef getCPtrAndDisown(LocalParameter obj)
        {
            HandleRef ptr = new HandleRef(null, IntPtr.Zero);

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

            return(ptr);
        }
Exemplo n.º 13
0
        int addLocalParameter(LocalParameter p)
        {
            int ret = libsbmlPINVOKE.KineticLaw_addLocalParameter(swigCPtr, LocalParameter.getCPtr(p));

            return(ret);
        }
Exemplo n.º 14
0
 /**
    * 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;
 }
Exemplo n.º 15
0
 internal static HandleRef getCPtr(LocalParameter obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
Exemplo n.º 16
0
        internal static HandleRef getCPtrAndDisown(LocalParameter obj)
        {
            HandleRef ptr = new HandleRef(null, IntPtr.Zero);

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

            return ptr;
        }
Exemplo n.º 17
0
 internal static HandleRef getCPtr(LocalParameter obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
Exemplo n.º 18
0
 /**
    * 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();
 }