Files
openbabel/scripts/java/OBRingData.java
T
Geoffrey Hutchison 07164cb7be * scripts/*: Split openbabel.i into individual copies for each
language.

  * scripts/java/*: Initial attempt at a java interface from SWIG. Untested.
2006-11-03 22:23:31 +00:00

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);
}
}