Inheritance: IDisposable
Exemple #1
0
        internal static HandleRef getCPtrAndDisown(ASTBase obj)
        {
            HandleRef ptr = new HandleRef(null, IntPtr.Zero);

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

            return(ptr);
        }
Exemple #2
0
        int replaceChild(long n, ASTBase newChild, bool delreplaced)
        {
            int ret = libsbmlPINVOKE.ASTBasePlugin_replaceChild(swigCPtr, n, ASTBase.getCPtr(newChild), delreplaced);

            return(ret);
        }
Exemple #3
0
        int prependChild(ASTBase newChild)
        {
            int ret = libsbmlPINVOKE.ASTBasePlugin_prependChild(swigCPtr, ASTBase.getCPtr(newChild));

            return(ret);
        }
Exemple #4
0
        int insertChild(long n, ASTBase newChild)
        {
            int ret = libsbmlPINVOKE.ASTBasePlugin_insertChild(swigCPtr, n, ASTBase.getCPtr(newChild));

            return(ret);
        }
Exemple #5
0
        ASTBase getChild(long n)
        {
            ASTBase ret = (ASTBase)libsbml.DowncastASTBase(libsbmlPINVOKE.ASTBasePlugin_getChild(swigCPtr, n), false);

            return(ret);
        }
Exemple #6
0
        int addChild(ASTBase child)
        {
            int ret = libsbmlPINVOKE.ASTBasePlugin_addChild(swigCPtr, ASTBase.getCPtr(child));

            return(ret);
        }
 /** */
 /* libsbml-internal */
 public new int prependChild(ASTBase newChild)
 {
     int ret = libsbmlPINVOKE.ASTBasePlugin_prependChild(swigCPtr, ASTBase.getCPtr(newChild));
     return ret;
 }
Exemple #8
0
        ASTBase getFunction()
        {
            ASTBase ret = (ASTBase)libsbml.DowncastASTBase(libsbmlPINVOKE.ASTBase_getFunction(swigCPtr), false);

            return(ret);
        }
Exemple #9
0
 void connectToParent(ASTBase astbase)
 {
     libsbmlPINVOKE.ASTBasePlugin_connectToParent(swigCPtr, ASTBase.getCPtr(astbase));
 }
Exemple #10
0
        internal static HandleRef getCPtrAndDisown(ASTBase obj)
        {
            HandleRef ptr = new HandleRef(null, IntPtr.Zero);

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

            return ptr;
        }
Exemple #11
0
 internal static HandleRef getCPtr(ASTBase obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
Exemple #12
0
        public static ASTBase DowncastASTBase(IntPtr cPtr, bool owner)
        {
            if (cPtr.Equals(IntPtr.Zero)) return null;

            ASTBase ab = new ASTBase(cPtr,false);
            switch( ab.getTypeCode() )
            {
            default:
            case (int)libsbml.AST_TYPECODE_BASE:
            return new ASTBase(cPtr, owner);
            /*
            case (int)libsbml.AST_TYPECODE_CN_BASE:
            return new ASTCnBase(cPtr, owner);
            case (int)libsbml.AST_TYPECODE_FUNCTION_BASE:
            return new ASTFunctionBase(cPtr, owner);
            case (int)libsbml.AST_TYPECODE_NUMBER:
            return new ASTNumber(cPtr, owner);
            case (int)libsbml.AST_TYPECODE_CN_INTEGER:
            return new ASTCnIntegerNode(cPtr, owner);
            case (int)libsbml.AST_TYPECODE_CN_EXPONENTIAL:
            return new ASTCnExponentialNode(cPtr, owner);
            case (int)libsbml.AST_TYPECODE_CN_RATIONAL:
            return new ASTCnRationalNode(cPtr, owner);
            case (int)libsbml.AST_TYPECODE_CN_REAL:
            return new ASTCnRealNode(cPtr, owner);
            case (int)libsbml.AST_TYPECODE_CSYMBOL:
            return new ASTCSymbol(cPtr, owner);
            case (int)libsbml.AST_TYPECODE_CSYMBOL_AVOGADRO:
            return new ASTCSymbolAvogadroNode(cPtr, owner);
            case (int)libsbml.AST_TYPECODE_CSYMBOL_DELAY:
            return new ASTCSymbolDelayNode(cPtr, owner);
            case (int)libsbml.AST_TYPECODE_CSYMBOL_TIME:
            return new ASTCSymbolTimeNode(cPtr, owner);
            case (int)libsbml.AST_TYPECODE_FUNCTION:
            return new ASTFunction(cPtr, owner);
            case (int)libsbml.AST_TYPECODE_FUNCTION_UNARY:
            return new ASTUnaryFunctionNode(cPtr, owner);
            case (int)libsbml.AST_TYPECODE_FUNCTION_BINARY:
            return new ASTBinaryFunctionNode(cPtr, owner);
            case (int)libsbml.AST_TYPECODE_FUNCTION_NARY:
            return new ASTNaryFunctionNode(cPtr, owner);
            case (int)libsbml.AST_TYPECODE_FUNCTION_PIECEWISE:
            return new ASTPiecewiseFunctionNode(cPtr, owner);
            case (int)libsbml.AST_TYPECODE_FUNCTION_LAMBDA:
            return new ASTLambdaFunctionNode(cPtr, owner);
            case (int)libsbml.AST_TYPECODE_FUNCTION_CI:
            return new ASTCiFunctionNode(cPtr, owner);
            case (int)libsbml.AST_TYPECODE_FUNCTION_SEMANTIC:
            return new ASTSemanticsNode(cPtr, owner);
            case (int)libsbml.AST_TYPECODE_FUNCTION_QUALIFIER:
            return new ASTQualifierNode(cPtr, owner);*/
            case (int)libsbml.AST_TYPECODE_ASTNODE:
            return new ASTNode(cPtr, owner);

            }
            //return new ASTBase(cPtr, owner);
        }
 /** */
 /* libsbml-internal */
 public new void connectToParent(ASTBase astbase)
 {
     libsbmlPINVOKE.ASTBasePlugin_connectToParent(swigCPtr, ASTBase.getCPtr(astbase));
 }
 /** */
 /* libsbml-internal */
 public new int addChild(ASTBase child)
 {
     int ret = libsbmlPINVOKE.ASTBasePlugin_addChild(swigCPtr, ASTBase.getCPtr(child));
     return ret;
 }
 /** */
 /* libsbml-internal */
 public new int replaceChild(long n, ASTBase newChild, bool delreplaced)
 {
     int ret = libsbmlPINVOKE.ASTBasePlugin_replaceChild(swigCPtr, n, ASTBase.getCPtr(newChild), delreplaced);
     return ret;
 }
Exemple #16
0
 internal static HandleRef getCPtr(ASTBase obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
Exemple #17
0
        ASTBase getParentASTObject()
        {
            ASTBase ret = (ASTBase)libsbml.DowncastASTBase(libsbmlPINVOKE.ASTBasePlugin_getParentASTObject__SWIG_0(swigCPtr), false);

            return(ret);
        }
Exemple #18
0
        ASTBase getMath()
        {
            ASTBase ret = (ASTBase)libsbml.DowncastASTBase(libsbmlPINVOKE.ASTBasePlugin_getMath(swigCPtr), false);

            return(ret);
        }
Exemple #19
0
        ASTBase deepCopy()
        {
            ASTBase ret = (ASTBase)libsbml.DowncastASTBase(libsbmlPINVOKE.ASTBase_deepCopy(swigCPtr), false);

            return(ret);
        }
 /** */
 /* libsbml-internal */
 public new int insertChild(long n, ASTBase newChild)
 {
     int ret = libsbmlPINVOKE.ASTBasePlugin_insertChild(swigCPtr, n, ASTBase.getCPtr(newChild));
     return ret;
 }