Files
openbabel/scripts/java/OBRingData.java
T
Geoffrey Hutchison 8dad311517 * src/atom.h, src/base.h, src/bond.h, src/residue.h, src/mol.h,
src/ring.h, src/mol.cpp, src/base.cpp, src/obiter.h: Remove
  OBNodeBase, OBEdgeBase, and OBGraphBase classes, contributed by
  Gerd Menche.

  * tools/obprop.cpp: Ditto. Example of changing iterators to new format.

  * scripts/*: Updated based on above changes.
2006-11-20 18:43:41 +00:00

61 lines
1.8 KiB
Java

/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.30
*
* 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(openbabelJNI.SWIGOBRingDataUpcast(cPtr), cMemoryOwn);
swigCPtr = cPtr;
}
protected static long getCPtr(OBRingData obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected void finalize() {
delete();
}
public synchronized void delete() {
if(swigCPtr != 0 && swigCMemOwn) {
swigCMemOwn = false;
openbabelJNI.delete_OBRingData(swigCPtr);
}
swigCPtr = 0;
super.delete();
}
public OBRingData() {
this(openbabelJNI.new_OBRingData__SWIG_0(), true);
}
public OBRingData(OBRingData arg0) {
this(openbabelJNI.new_OBRingData__SWIG_1(OBRingData.getCPtr(arg0), arg0), true);
}
public OBGenericData Clone(OBBase arg0) {
long cPtr = openbabelJNI.OBRingData_Clone(swigCPtr, this, OBBase.getCPtr(arg0), arg0);
return (cPtr == 0) ? null : new OBGenericData(cPtr, false);
}
public void SetData(SWIGTYPE_p_std__vectorTOpenBabel__OBRing_p_t vr) {
openbabelJNI.OBRingData_SetData(swigCPtr, this, SWIGTYPE_p_std__vectorTOpenBabel__OBRing_p_t.getCPtr(vr));
}
public void PushBack(OBRing r) {
openbabelJNI.OBRingData_PushBack(swigCPtr, this, OBRing.getCPtr(r), r);
}
public SWIGTYPE_p_std__vectorTOpenBabel__OBRing_p_t GetData() {
return new SWIGTYPE_p_std__vectorTOpenBabel__OBRing_p_t(openbabelJNI.OBRingData_GetData(swigCPtr, this), false);
}
}