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 Maintains a list of SIds. 20 * @internal 21 */ 22 23 public class IdList : global::System.IDisposable { 24 private HandleRef swigCPtr; 25 protected bool swigCMemOwn; 26 IdList(IntPtr cPtr, bool cMemoryOwn)27 internal IdList(IntPtr cPtr, bool cMemoryOwn) 28 { 29 swigCMemOwn = cMemoryOwn; 30 swigCPtr = new HandleRef(this, cPtr); 31 } 32 getCPtr(IdList obj)33 internal static HandleRef getCPtr(IdList obj) 34 { 35 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 36 } 37 getCPtrAndDisown(IdList obj)38 internal static HandleRef getCPtrAndDisown (IdList obj) 39 { 40 HandleRef ptr = new HandleRef(null, IntPtr.Zero); 41 42 if (obj != null) 43 { 44 ptr = obj.swigCPtr; 45 obj.swigCMemOwn = false; 46 } 47 48 return ptr; 49 } 50 ~IdList()51 ~IdList() { 52 Dispose(false); 53 } 54 Dispose()55 public void Dispose() { 56 Dispose(true); 57 global::System.GC.SuppressFinalize(this); 58 } 59 Dispose(bool disposing)60 protected virtual void Dispose(bool disposing) { 61 lock(this) { 62 if (swigCPtr.Handle != global::System.IntPtr.Zero) { 63 if (swigCMemOwn) { 64 swigCMemOwn = false; 65 libsbmlPINVOKE.delete_IdList(swigCPtr); 66 } 67 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); 68 } 69 } 70 } 71 IdList()72 public IdList() : this(libsbmlPINVOKE.new_IdList__SWIG_0(), true) { 73 } 74 IdList(string commaSeparated)75 public IdList(string commaSeparated) : this(libsbmlPINVOKE.new_IdList__SWIG_1(commaSeparated), true) { 76 } 77 78 79 /** */ /* libsbml-internal */ public append(string id)80 void append(string id) { 81 libsbmlPINVOKE.IdList_append(swigCPtr, id); 82 } 83 84 85 /** */ /* libsbml-internal */ public contains(string id)86 bool contains(string id) { 87 bool ret = libsbmlPINVOKE.IdList_contains(swigCPtr, id); 88 return ret; 89 } 90 91 92 /** */ /* libsbml-internal */ public empty()93 bool empty() { 94 bool ret = libsbmlPINVOKE.IdList_empty(swigCPtr); 95 return ret; 96 } 97 98 99 /** */ /* libsbml-internal */ public removeIdsBefore(string id)100 void removeIdsBefore(string id) { 101 libsbmlPINVOKE.IdList_removeIdsBefore(swigCPtr, id); 102 } 103 104 105 /** */ /* libsbml-internal */ public size()106 long size() { return (long)libsbmlPINVOKE.IdList_size(swigCPtr); } 107 clear()108 public void clear() { 109 libsbmlPINVOKE.IdList_clear(swigCPtr); 110 } 111 at(int n)112 public string at(int n) { 113 string ret = libsbmlPINVOKE.IdList_at(swigCPtr, n); 114 return ret; 115 } 116 117 } 118 119 } 120