Esempio n. 1
0
        internal static HandleRef getCPtrAndDisown(Priority obj)
        {
            HandleRef ptr = new HandleRef(null, IntPtr.Zero);

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

            return ptr;
        }
Esempio n. 2
0
 internal static HandleRef getCPtr(Priority obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
Esempio n. 3
0
 /**
    * (SBML Level 3 only) Sets the priority definition of this Event
    * to a copy of the given Priority object instance.
    *
    * @param priority the Priority object instance to use
    *
    * @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 libsbmlcs.libsbml.LIBSBML_OPERATION_SUCCESS LIBSBML_OPERATION_SUCCESS @endlink
    * @li @link libsbmlcs.libsbml.LIBSBML_LEVEL_MISMATCH LIBSBML_LEVEL_MISMATCH @endlink
    * @li @link libsbmlcs.libsbml.LIBSBML_VERSION_MISMATCH LIBSBML_VERSION_MISMATCH @endlink
    * @li @link libsbmlcs.libsbml.LIBSBML_UNEXPECTED_ATTRIBUTE LIBSBML_UNEXPECTED_ATTRIBUTE @endlink
    *
    * @note The element 'priority' is available in SBML Level 3
    * Version 1 Core, but is not present in lower Levels of SBML.
    */
 public int setPriority(Priority priority)
 {
     int ret = libsbmlPINVOKE.Event_setPriority(swigCPtr, Priority.getCPtr(priority));
     return ret;
 }
Esempio n. 4
0
 /**
    * Copy constructor; creates a copy of this Priority.
    *
    * @param orig the object to copy.
    *
    * @throws SBMLConstructorException
    * Thrown if the argument @p orig is @c null.
    */
 public Priority(Priority orig)
     : this(libsbmlPINVOKE.new_Priority__SWIG_2(Priority.getCPtr(orig)), true)
 {
     if (libsbmlPINVOKE.SWIGPendingException.Pending) throw libsbmlPINVOKE.SWIGPendingException.Retrieve();
 }
Esempio n. 5
0
        int setPriority(Priority priority)
        {
            int ret = libsbmlPINVOKE.Event_setPriority(swigCPtr, Priority.getCPtr(priority));

            return(ret);
        }