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 public class ASTNodeValues_t : global::System.IDisposable { 14 private HandleRef swigCPtr; 15 protected bool swigCMemOwn; 16 ASTNodeValues_t(IntPtr cPtr, bool cMemoryOwn)17 internal ASTNodeValues_t(IntPtr cPtr, bool cMemoryOwn) 18 { 19 swigCMemOwn = cMemoryOwn; 20 swigCPtr = new HandleRef(this, cPtr); 21 } 22 getCPtr(ASTNodeValues_t obj)23 internal static HandleRef getCPtr(ASTNodeValues_t obj) 24 { 25 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 26 } 27 getCPtrAndDisown(ASTNodeValues_t obj)28 internal static HandleRef getCPtrAndDisown (ASTNodeValues_t obj) 29 { 30 HandleRef ptr = new HandleRef(null, IntPtr.Zero); 31 32 if (obj != null) 33 { 34 ptr = obj.swigCPtr; 35 obj.swigCMemOwn = false; 36 } 37 38 return ptr; 39 } 40 ~ASTNodeValues_t()41 ~ASTNodeValues_t() { 42 Dispose(false); 43 } 44 Dispose()45 public void Dispose() { 46 Dispose(true); 47 global::System.GC.SuppressFinalize(this); 48 } 49 Dispose(bool disposing)50 protected virtual void Dispose(bool disposing) { 51 lock(this) { 52 if (swigCPtr.Handle != global::System.IntPtr.Zero) { 53 if (swigCMemOwn) { 54 swigCMemOwn = false; 55 libsbmlPINVOKE.delete_ASTNodeValues_t(swigCPtr); 56 } 57 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); 58 } 59 } 60 } 61 62 public string name { 63 set { 64 libsbmlPINVOKE.ASTNodeValues_t_name_set(swigCPtr, value); 65 } 66 get { 67 string ret = libsbmlPINVOKE.ASTNodeValues_t_name_get(swigCPtr); 68 return ret; 69 } 70 } 71 72 public int type { 73 set { 74 libsbmlPINVOKE.ASTNodeValues_t_type_set(swigCPtr, value); 75 } 76 get { 77 int ret = libsbmlPINVOKE.ASTNodeValues_t_type_get(swigCPtr); 78 return ret; 79 } 80 } 81 82 public bool isFunction { 83 set { 84 libsbmlPINVOKE.ASTNodeValues_t_isFunction_set(swigCPtr, value); 85 } 86 get { 87 bool ret = libsbmlPINVOKE.ASTNodeValues_t_isFunction_get(swigCPtr); 88 return ret; 89 } 90 } 91 92 public string csymbolURL { 93 set { 94 libsbmlPINVOKE.ASTNodeValues_t_csymbolURL_set(swigCPtr, value); 95 } 96 get { 97 string ret = libsbmlPINVOKE.ASTNodeValues_t_csymbolURL_get(swigCPtr); 98 return ret; 99 } 100 } 101 102 public int allowedChildrenType { 103 set { 104 libsbmlPINVOKE.ASTNodeValues_t_allowedChildrenType_set(swigCPtr, value); 105 } 106 get { 107 int ret = libsbmlPINVOKE.ASTNodeValues_t_allowedChildrenType_get(swigCPtr); 108 return ret; 109 } 110 } 111 112 public SWIGTYPE_p_std__vectorT_unsigned_int_t numAllowedChildren { 113 set { 114 libsbmlPINVOKE.ASTNodeValues_t_numAllowedChildren_set(swigCPtr, SWIGTYPE_p_std__vectorT_unsigned_int_t.getCPtr(value)); 115 if (libsbmlPINVOKE.SWIGPendingException.Pending) throw libsbmlPINVOKE.SWIGPendingException.Retrieve(); 116 } 117 get { 118 SWIGTYPE_p_std__vectorT_unsigned_int_t ret = new SWIGTYPE_p_std__vectorT_unsigned_int_t(libsbmlPINVOKE.ASTNodeValues_t_numAllowedChildren_get(swigCPtr), true); 119 if (libsbmlPINVOKE.SWIGPendingException.Pending) throw libsbmlPINVOKE.SWIGPendingException.Retrieve(); 120 return ret; 121 } 122 } 123 ASTNodeValues_t()124 public ASTNodeValues_t() : this(libsbmlPINVOKE.new_ASTNodeValues_t(), true) { 125 } 126 127 } 128 129 } 130