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
private long swigCPtr;
12
protected boolean swigCMemOwn;
14
protected OBBase(long cPtr, boolean cMemoryOwn) {
15
swigCMemOwn = cMemoryOwn;
19
protected static long getCPtr(OBBase obj) {
20
return (obj == null) ? 0 : obj.swigCPtr;
23
protected void finalize() {
27
public synchronized void delete() {
28
if(swigCPtr != 0 && swigCMemOwn) {
30
openbabelJNI.delete_OBBase(swigCPtr);
35
public boolean Clear() {
36
return openbabelJNI.OBBase_Clear(swigCPtr, this);
39
public OBBase DoTransformations(SWIGTYPE_p_std__mapT_std__string_std__string_t arg0) {
40
long cPtr = openbabelJNI.OBBase_DoTransformations(swigCPtr, this, SWIGTYPE_p_std__mapT_std__string_std__string_t.getCPtr(arg0));
41
return (cPtr == 0) ? null : new OBBase(cPtr, false);
44
public static String ClassDescription() {
45
return openbabelJNI.OBBase_ClassDescription();
48
public boolean HasData(String arg0) {
49
return openbabelJNI.OBBase_HasData__SWIG_0(swigCPtr, this, arg0);
52
public boolean HasData(long type) {
53
return openbabelJNI.OBBase_HasData__SWIG_2(swigCPtr, this, type);
56
public void DeleteData(long type) {
57
openbabelJNI.OBBase_DeleteData__SWIG_0(swigCPtr, this, type);
60
public void DeleteData(OBGenericData arg0) {
61
openbabelJNI.OBBase_DeleteData__SWIG_1(swigCPtr, this, OBGenericData.getCPtr(arg0), arg0);
64
public void DeleteData(vectorData arg0) {
65
openbabelJNI.OBBase_DeleteData__SWIG_2(swigCPtr, this, vectorData.getCPtr(arg0), arg0);
68
public boolean DeleteData(String s) {
69
return openbabelJNI.OBBase_DeleteData__SWIG_3(swigCPtr, this, s);
72
public void SetData(OBGenericData d) {
73
openbabelJNI.OBBase_SetData(swigCPtr, this, OBGenericData.getCPtr(d), d);
76
public void CloneData(OBGenericData d) {
77
openbabelJNI.OBBase_CloneData(swigCPtr, this, OBGenericData.getCPtr(d), d);
80
public long DataSize() {
81
return openbabelJNI.OBBase_DataSize(swigCPtr, this);
84
public OBGenericData GetData(long type) {
85
long cPtr = openbabelJNI.OBBase_GetData__SWIG_0(swigCPtr, this, type);
86
return (cPtr == 0) ? null : new OBGenericData(cPtr, false);
89
public OBGenericData GetData(String arg0) {
90
long cPtr = openbabelJNI.OBBase_GetData__SWIG_1(swigCPtr, this, arg0);
91
return (cPtr == 0) ? null : new OBGenericData(cPtr, false);
94
public vectorData GetAllData(long type) {
95
return new vectorData(openbabelJNI.OBBase_GetAllData(swigCPtr, this, type), true);
98
public vectorData GetData() {
99
return new vectorData(openbabelJNI.OBBase_GetData__SWIG_3(swigCPtr, this), false);
102
public vectorData GetData(DataOrigin source) {
103
return new vectorData(openbabelJNI.OBBase_GetData__SWIG_4(swigCPtr, this, source.swigValue()), true);
106
public SWIGTYPE_p_std__vectorT_OpenBabel__OBGenericData_p_t__iterator BeginData() {
107
return new SWIGTYPE_p_std__vectorT_OpenBabel__OBGenericData_p_t__iterator(openbabelJNI.OBBase_BeginData(swigCPtr, this), true);
110
public SWIGTYPE_p_std__vectorT_OpenBabel__OBGenericData_p_t__iterator EndData() {
111
return new SWIGTYPE_p_std__vectorT_OpenBabel__OBGenericData_p_t__iterator(openbabelJNI.OBBase_EndData(swigCPtr, this), true);
115
this(openbabelJNI.new_OBBase(), true);