1 //------------------------------------------------------------------------------ 2 // <auto-generated /> 3 // 4 // This file was automatically generated by SWIG (http://www.swig.org). 5 // Version 4.0.2 6 // 7 // Do not make changes to this file unless you know what you are doing--modify 8 // the SWIG interface file instead. 9 //------------------------------------------------------------------------------ 10 11 namespace libsbml { 12 13 using System; 14 using System.Runtime.InteropServices; 15 16 /** 17 * @sbmlpackage{core} 18 * 19 @htmlinclude pkg-marker-core.html Methods for transform elements of SBML 20 * 21 * @internal 22 */ 23 24 public class SBMLTransforms : global::System.IDisposable { 25 private HandleRef swigCPtr; 26 protected bool swigCMemOwn; 27 SBMLTransforms(IntPtr cPtr, bool cMemoryOwn)28 internal SBMLTransforms(IntPtr cPtr, bool cMemoryOwn) 29 { 30 swigCMemOwn = cMemoryOwn; 31 swigCPtr = new HandleRef(this, cPtr); 32 } 33 getCPtr(SBMLTransforms obj)34 internal static HandleRef getCPtr(SBMLTransforms obj) 35 { 36 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 37 } 38 getCPtrAndDisown(SBMLTransforms obj)39 internal static HandleRef getCPtrAndDisown (SBMLTransforms obj) 40 { 41 HandleRef ptr = new HandleRef(null, IntPtr.Zero); 42 43 if (obj != null) 44 { 45 ptr = obj.swigCPtr; 46 obj.swigCMemOwn = false; 47 } 48 49 return ptr; 50 } 51 ~SBMLTransforms()52 ~SBMLTransforms() { 53 Dispose(false); 54 } 55 Dispose()56 public void Dispose() { 57 Dispose(true); 58 global::System.GC.SuppressFinalize(this); 59 } 60 Dispose(bool disposing)61 protected virtual void Dispose(bool disposing) { 62 lock(this) { 63 if (swigCPtr.Handle != global::System.IntPtr.Zero) { 64 if (swigCMemOwn) { 65 swigCMemOwn = false; 66 libsbmlPINVOKE.delete_SBMLTransforms(swigCPtr); 67 } 68 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); 69 } 70 } 71 } 72 73 74 /** */ /* libsbml-internal */ public replaceFD(ASTNode math, FunctionDefinition fd, IdList idsToExclude)75 static void replaceFD(ASTNode math, FunctionDefinition fd, IdList idsToExclude) { 76 libsbmlPINVOKE.SBMLTransforms_replaceFD__SWIG_0(ASTNode.getCPtr(math), FunctionDefinition.getCPtr(fd), IdList.getCPtr(idsToExclude)); 77 } 78 79 80 /** */ /* libsbml-internal */ public replaceFD(ASTNode math, FunctionDefinition fd)81 static void replaceFD(ASTNode math, FunctionDefinition fd) { 82 libsbmlPINVOKE.SBMLTransforms_replaceFD__SWIG_1(ASTNode.getCPtr(math), FunctionDefinition.getCPtr(fd)); 83 } 84 85 86 /** */ /* libsbml-internal */ public replaceFD(ASTNode math, ListOfFunctionDefinitions lofd, IdList idsToExclude)87 static void replaceFD(ASTNode math, ListOfFunctionDefinitions lofd, IdList idsToExclude) { 88 libsbmlPINVOKE.SBMLTransforms_replaceFD__SWIG_2(ASTNode.getCPtr(math), ListOfFunctionDefinitions.getCPtr(lofd), IdList.getCPtr(idsToExclude)); 89 } 90 91 92 /** */ /* libsbml-internal */ public replaceFD(ASTNode math, ListOfFunctionDefinitions lofd)93 static void replaceFD(ASTNode math, ListOfFunctionDefinitions lofd) { 94 libsbmlPINVOKE.SBMLTransforms_replaceFD__SWIG_3(ASTNode.getCPtr(math), ListOfFunctionDefinitions.getCPtr(lofd)); 95 } 96 97 98 /** */ /* libsbml-internal */ public expandInitialAssignments(Model m)99 static bool expandInitialAssignments(Model m) { 100 bool ret = libsbmlPINVOKE.SBMLTransforms_expandInitialAssignments(Model.getCPtr(m)); 101 return ret; 102 } 103 104 105 /** */ /* libsbml-internal */ public evaluateASTNode(ASTNode node, Model m)106 static double evaluateASTNode(ASTNode node, Model m) { 107 double ret = libsbmlPINVOKE.SBMLTransforms_evaluateASTNode__SWIG_0(ASTNode.getCPtr(node), Model.getCPtr(m)); 108 return ret; 109 } 110 111 112 /** */ /* libsbml-internal */ public evaluateASTNode(ASTNode node)113 static double evaluateASTNode(ASTNode node) { 114 double ret = libsbmlPINVOKE.SBMLTransforms_evaluateASTNode__SWIG_1(ASTNode.getCPtr(node)); 115 return ret; 116 } 117 118 119 /** */ /* libsbml-internal */ public expandL3V2InitialAssignments(Model m)120 static bool expandL3V2InitialAssignments(Model m) { 121 bool ret = libsbmlPINVOKE.SBMLTransforms_expandL3V2InitialAssignments(Model.getCPtr(m)); 122 return ret; 123 } 124 mapComponentValues(Model m)125 public static IdList mapComponentValues(Model m) { 126 IdList ret = new IdList(libsbmlPINVOKE.SBMLTransforms_mapComponentValues(Model.getCPtr(m)), true); 127 return ret; 128 } 129 clearComponentValues()130 public static void clearComponentValues() { 131 libsbmlPINVOKE.SBMLTransforms_clearComponentValues(); 132 } 133 nodeContainsId(ASTNode node, IdList ids)134 public static bool nodeContainsId(ASTNode node, IdList ids) { 135 bool ret = libsbmlPINVOKE.SBMLTransforms_nodeContainsId(ASTNode.getCPtr(node), IdList.getCPtr(ids)); 136 if (libsbmlPINVOKE.SWIGPendingException.Pending) throw libsbmlPINVOKE.SWIGPendingException.Retrieve(); 137 return ret; 138 } 139 SBMLTransforms()140 public SBMLTransforms() : this(libsbmlPINVOKE.new_SBMLTransforms(), true) { 141 } 142 143 } 144 145 } 146