internal static HandleRef getCPtrAndDisown(ASTBase obj) { HandleRef ptr = new HandleRef(null, IntPtr.Zero); if (obj != null) { ptr = obj.swigCPtr; obj.swigCMemOwn = false; } return(ptr); }
int replaceChild(long n, ASTBase newChild, bool delreplaced) { int ret = libsbmlPINVOKE.ASTBasePlugin_replaceChild(swigCPtr, n, ASTBase.getCPtr(newChild), delreplaced); return(ret); }
int prependChild(ASTBase newChild) { int ret = libsbmlPINVOKE.ASTBasePlugin_prependChild(swigCPtr, ASTBase.getCPtr(newChild)); return(ret); }
int insertChild(long n, ASTBase newChild) { int ret = libsbmlPINVOKE.ASTBasePlugin_insertChild(swigCPtr, n, ASTBase.getCPtr(newChild)); return(ret); }
ASTBase getChild(long n) { ASTBase ret = (ASTBase)libsbml.DowncastASTBase(libsbmlPINVOKE.ASTBasePlugin_getChild(swigCPtr, n), false); return(ret); }
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; }
ASTBase getFunction() { ASTBase ret = (ASTBase)libsbml.DowncastASTBase(libsbmlPINVOKE.ASTBase_getFunction(swigCPtr), false); return(ret); }
void connectToParent(ASTBase astbase) { libsbmlPINVOKE.ASTBasePlugin_connectToParent(swigCPtr, ASTBase.getCPtr(astbase)); }
internal static HandleRef getCPtrAndDisown(ASTBase obj) { HandleRef ptr = new HandleRef(null, IntPtr.Zero); if (obj != null) { ptr = obj.swigCPtr; obj.swigCMemOwn = false; } return ptr; }
internal static HandleRef getCPtr(ASTBase obj) { return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; }
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; }
internal static HandleRef getCPtr(ASTBase obj) { return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr); }
ASTBase getParentASTObject() { ASTBase ret = (ASTBase)libsbml.DowncastASTBase(libsbmlPINVOKE.ASTBasePlugin_getParentASTObject__SWIG_0(swigCPtr), false); return(ret); }
ASTBase getMath() { ASTBase ret = (ASTBase)libsbml.DowncastASTBase(libsbmlPINVOKE.ASTBasePlugin_getMath(swigCPtr), false); return(ret); }
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; }