mirror of
https://github.com/openbabel/openbabel.git
synced 2025-02-25 18:55:23 -06:00
74 lines
2.3 KiB
Java
74 lines
2.3 KiB
Java
/* ----------------------------------------------------------------------------
|
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
* Version 1.3.31
|
|
*
|
|
* Do not make changes to this file unless you know what you are doing--modify
|
|
* the SWIG interface file instead.
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
|
|
public class OBSetData extends OBGenericData {
|
|
private long swigCPtr;
|
|
|
|
protected OBSetData(long cPtr, boolean cMemoryOwn) {
|
|
super(openbabelJNI.SWIGOBSetDataUpcast(cPtr), cMemoryOwn);
|
|
swigCPtr = cPtr;
|
|
}
|
|
|
|
protected static long getCPtr(OBSetData obj) {
|
|
return (obj == null) ? 0 : obj.swigCPtr;
|
|
}
|
|
|
|
protected void finalize() {
|
|
delete();
|
|
}
|
|
|
|
public synchronized void delete() {
|
|
if(swigCPtr != 0 && swigCMemOwn) {
|
|
swigCMemOwn = false;
|
|
openbabelJNI.delete_OBSetData(swigCPtr);
|
|
}
|
|
swigCPtr = 0;
|
|
super.delete();
|
|
}
|
|
|
|
public OBSetData() {
|
|
this(openbabelJNI.new_OBSetData(), true);
|
|
}
|
|
|
|
public OBGenericData Clone(OBBase arg0) {
|
|
long cPtr = openbabelJNI.OBSetData_Clone(swigCPtr, this, OBBase.getCPtr(arg0), arg0);
|
|
return (cPtr == 0) ? null : new OBGenericData(cPtr, false);
|
|
}
|
|
|
|
public void AddData(OBGenericData d) {
|
|
openbabelJNI.OBSetData_AddData(swigCPtr, this, OBGenericData.getCPtr(d), d);
|
|
}
|
|
|
|
public void SetData(vectorData vdata) {
|
|
openbabelJNI.OBSetData_SetData(swigCPtr, this, vectorData.getCPtr(vdata), vdata);
|
|
}
|
|
|
|
public OBGenericData GetData(String s) {
|
|
long cPtr = openbabelJNI.OBSetData_GetData__SWIG_0(swigCPtr, this, s);
|
|
return (cPtr == 0) ? null : new OBGenericData(cPtr, false);
|
|
}
|
|
|
|
public vectorData GetData() {
|
|
return new vectorData(openbabelJNI.OBSetData_GetData__SWIG_2(swigCPtr, this), false);
|
|
}
|
|
|
|
public SWIGTYPE_p_std__vectorTOpenBabel__OBGenericData_p_t__iterator GetBegin() {
|
|
return new SWIGTYPE_p_std__vectorTOpenBabel__OBGenericData_p_t__iterator(openbabelJNI.OBSetData_GetBegin(swigCPtr, this), true);
|
|
}
|
|
|
|
public SWIGTYPE_p_std__vectorTOpenBabel__OBGenericData_p_t__iterator GetEnd() {
|
|
return new SWIGTYPE_p_std__vectorTOpenBabel__OBGenericData_p_t__iterator(openbabelJNI.OBSetData_GetEnd(swigCPtr, this), true);
|
|
}
|
|
|
|
public void DeleteData(OBGenericData gd) {
|
|
openbabelJNI.OBSetData_DeleteData(swigCPtr, this, OBGenericData.getCPtr(gd), gd);
|
|
}
|
|
|
|
}
|