mirror of
https://github.com/openbabel/openbabel.git
synced 2026-08-01 00:58:00 -05:00
language. * scripts/java/*: Initial attempt at a java interface from SWIG. Untested.
61 lines
1.9 KiB
Java
61 lines
1.9 KiB
Java
/* ----------------------------------------------------------------------------
|
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
* Version 1.3.29
|
|
*
|
|
* Do not make changes to this file unless you know what you are doing--modify
|
|
* the SWIG interface file instead.
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
|
|
public class OBRingData extends OBGenericData {
|
|
private long swigCPtr;
|
|
|
|
protected OBRingData(long cPtr, boolean cMemoryOwn) {
|
|
super(net.sourceforge.openbabelJNI.SWIGOBRingDataUpcast(cPtr), cMemoryOwn);
|
|
swigCPtr = cPtr;
|
|
}
|
|
|
|
protected static long getCPtr(OBRingData obj) {
|
|
return (obj == null) ? 0 : obj.swigCPtr;
|
|
}
|
|
|
|
protected void finalize() {
|
|
delete();
|
|
}
|
|
|
|
public void delete() {
|
|
if(swigCPtr != 0 && swigCMemOwn) {
|
|
swigCMemOwn = false;
|
|
net.sourceforge.openbabelJNI.delete_OBRingData(swigCPtr);
|
|
}
|
|
swigCPtr = 0;
|
|
super.delete();
|
|
}
|
|
|
|
public OBRingData() {
|
|
this(net.sourceforge.openbabelJNI.new_OBRingData__SWIG_0(), true);
|
|
}
|
|
|
|
public OBRingData(OBRingData arg0) {
|
|
this(net.sourceforge.openbabelJNI.new_OBRingData__SWIG_1(OBRingData.getCPtr(arg0)), true);
|
|
}
|
|
|
|
public OBGenericData Clone(OBBase arg0) {
|
|
long cPtr = net.sourceforge.openbabelJNI.OBRingData_Clone(swigCPtr, OBBase.getCPtr(arg0));
|
|
return (cPtr == 0) ? null : new OBGenericData(cPtr, false);
|
|
}
|
|
|
|
public void SetData(SWIGTYPE_p_std__vectorTOpenBabel__OBRing_p_t vr) {
|
|
net.sourceforge.openbabelJNI.OBRingData_SetData(swigCPtr, SWIGTYPE_p_std__vectorTOpenBabel__OBRing_p_t.getCPtr(vr));
|
|
}
|
|
|
|
public void PushBack(OBRing r) {
|
|
net.sourceforge.openbabelJNI.OBRingData_PushBack(swigCPtr, OBRing.getCPtr(r));
|
|
}
|
|
|
|
public SWIGTYPE_p_std__vectorTOpenBabel__OBRing_p_t GetData() {
|
|
return new SWIGTYPE_p_std__vectorTOpenBabel__OBRing_p_t(net.sourceforge.openbabelJNI.OBRingData_GetData(swigCPtr), false);
|
|
}
|
|
|
|
}
|