Inheritance: IDisposable
Esempio n. 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);
        }
Esempio n. 2
0
        int replaceChild(long n, ASTBase newChild, bool delreplaced)
        {
            int ret = libsbmlPINVOKE.ASTBasePlugin_replaceChild(swigCPtr, n, ASTBase.getCPtr(newChild), delreplaced);

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

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

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

            return(ret);
        }
Esempio n. 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;
 }
Esempio n. 8
0
        ASTBase getFunction()
        {
            ASTBase ret = (ASTBase)libsbml.DowncastASTBase(libsbmlPINVOKE.ASTBase_getFunction(swigCPtr), false);

            return(ret);
        }
Esempio n. 9
0
 void connectToParent(ASTBase astbase)
 {
     libsbmlPINVOKE.ASTBasePlugin_connectToParent(swigCPtr, ASTBase.getCPtr(astbase));
 }
Esempio n. 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;
        }
Esempio n. 11
0
 internal static HandleRef getCPtr(ASTBase obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
Esempio n. 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);
        }
Esempio n. 13
0
 /** */
 /* libsbml-internal */
 public new void connectToParent(ASTBase astbase)
 {
     libsbmlPINVOKE.ASTBasePlugin_connectToParent(swigCPtr, ASTBase.getCPtr(astbase));
 }
Esempio n. 14
0
 /** */
 /* libsbml-internal */
 public new int addChild(ASTBase child)
 {
     int ret = libsbmlPINVOKE.ASTBasePlugin_addChild(swigCPtr, ASTBase.getCPtr(child));
     return ret;
 }
Esempio n. 15
0
 /** */
 /* 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;
 }
Esempio n. 16
0
 internal static HandleRef getCPtr(ASTBase obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
Esempio n. 17
0
        ASTBase getParentASTObject()
        {
            ASTBase ret = (ASTBase)libsbml.DowncastASTBase(libsbmlPINVOKE.ASTBasePlugin_getParentASTObject__SWIG_0(swigCPtr), false);

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

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

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