1
/* ----------------------------------------------------------------------------
2
* This file was automatically generated by SWIG (http://www.swig.org).
5
* Do not make changes to this file unless you know what you are doing--modify
6
* the SWIG interface file instead.
7
* ----------------------------------------------------------------------------- */
11
using System.Runtime.InteropServices;
13
public class OBSerialNums : OBGenericData {
14
private HandleRef swigCPtr;
16
internal OBSerialNums(IntPtr cPtr, bool cMemoryOwn) : base(openbabelPINVOKE.OBSerialNumsUpcast(cPtr), cMemoryOwn) {
17
swigCPtr = new HandleRef(this, cPtr);
20
internal static HandleRef getCPtr(OBSerialNums obj) {
21
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28
public override void Dispose() {
30
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
32
openbabelPINVOKE.delete_OBSerialNums(swigCPtr);
34
swigCPtr = new HandleRef(null, IntPtr.Zero);
35
GC.SuppressFinalize(this);
40
public OBSerialNums() : this(openbabelPINVOKE.new_OBSerialNums__SWIG_0(), true) {
43
public OBSerialNums(OBSerialNums cp) : this(openbabelPINVOKE.new_OBSerialNums__SWIG_1(OBSerialNums.getCPtr(cp)), true) {
44
if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
47
public SWIGTYPE_p_std__mapT_int_OpenBabel__OBAtom_p_t GetData() {
48
SWIGTYPE_p_std__mapT_int_OpenBabel__OBAtom_p_t ret = new SWIGTYPE_p_std__mapT_int_OpenBabel__OBAtom_p_t(openbabelPINVOKE.OBSerialNums_GetData(swigCPtr), false);
52
public void SetData(SWIGTYPE_p_std__mapT_int_OpenBabel__OBAtom_p_t sm) {
53
openbabelPINVOKE.OBSerialNums_SetData(swigCPtr, SWIGTYPE_p_std__mapT_int_OpenBabel__OBAtom_p_t.getCPtr(sm));
54
if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();