mirror of
https://github.com/openbabel/openbabel.git
synced 2025-02-25 18:55:23 -06:00
48 lines
1.3 KiB
Java
48 lines
1.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 OBChainsParser {
|
|
private long swigCPtr;
|
|
protected boolean swigCMemOwn;
|
|
|
|
protected OBChainsParser(long cPtr, boolean cMemoryOwn) {
|
|
swigCMemOwn = cMemoryOwn;
|
|
swigCPtr = cPtr;
|
|
}
|
|
|
|
protected static long getCPtr(OBChainsParser obj) {
|
|
return (obj == null) ? 0 : obj.swigCPtr;
|
|
}
|
|
|
|
protected void finalize() {
|
|
delete();
|
|
}
|
|
|
|
public synchronized void delete() {
|
|
if(swigCPtr != 0 && swigCMemOwn) {
|
|
swigCMemOwn = false;
|
|
openbabelJNI.delete_OBChainsParser(swigCPtr);
|
|
}
|
|
swigCPtr = 0;
|
|
}
|
|
|
|
public OBChainsParser() {
|
|
this(openbabelJNI.new_OBChainsParser(), true);
|
|
}
|
|
|
|
public boolean PerceiveChains(OBMol mol, boolean nukeSingleResidue) {
|
|
return openbabelJNI.OBChainsParser_PerceiveChains__SWIG_0(swigCPtr, this, OBMol.getCPtr(mol), mol, nukeSingleResidue);
|
|
}
|
|
|
|
public boolean PerceiveChains(OBMol mol) {
|
|
return openbabelJNI.OBChainsParser_PerceiveChains__SWIG_1(swigCPtr, this, OBMol.getCPtr(mol), mol);
|
|
}
|
|
|
|
}
|