mirror of
https://github.com/openbabel/openbabel.git
synced 2026-08-01 00:58:00 -05:00
132 lines
4.5 KiB
Java
132 lines
4.5 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 OBSmartsPattern {
|
|
private long swigCPtr;
|
|
protected boolean swigCMemOwn;
|
|
|
|
protected OBSmartsPattern(long cPtr, boolean cMemoryOwn) {
|
|
swigCMemOwn = cMemoryOwn;
|
|
swigCPtr = cPtr;
|
|
}
|
|
|
|
protected static long getCPtr(OBSmartsPattern obj) {
|
|
return (obj == null) ? 0 : obj.swigCPtr;
|
|
}
|
|
|
|
protected void finalize() {
|
|
delete();
|
|
}
|
|
|
|
public synchronized void delete() {
|
|
if(swigCPtr != 0 && swigCMemOwn) {
|
|
swigCMemOwn = false;
|
|
openbabelJNI.delete_OBSmartsPattern(swigCPtr);
|
|
}
|
|
swigCPtr = 0;
|
|
}
|
|
|
|
public OBSmartsPattern() {
|
|
this(openbabelJNI.new_OBSmartsPattern__SWIG_0(), true);
|
|
}
|
|
|
|
public OBSmartsPattern(OBSmartsPattern cp) {
|
|
this(openbabelJNI.new_OBSmartsPattern__SWIG_1(OBSmartsPattern.getCPtr(cp), cp), true);
|
|
}
|
|
|
|
public long NumMatches() {
|
|
return openbabelJNI.OBSmartsPattern_NumMatches(swigCPtr, this);
|
|
}
|
|
|
|
public long NumAtoms() {
|
|
return openbabelJNI.OBSmartsPattern_NumAtoms(swigCPtr, this);
|
|
}
|
|
|
|
public long NumBonds() {
|
|
return openbabelJNI.OBSmartsPattern_NumBonds(swigCPtr, this);
|
|
}
|
|
|
|
public int GetAtomicNum(int arg0) {
|
|
return openbabelJNI.OBSmartsPattern_GetAtomicNum(swigCPtr, this, arg0);
|
|
}
|
|
|
|
public void GetBond(SWIGTYPE_p_int arg0, SWIGTYPE_p_int arg1, SWIGTYPE_p_int arg2, int arg3) {
|
|
openbabelJNI.OBSmartsPattern_GetBond(swigCPtr, this, SWIGTYPE_p_int.getCPtr(arg0), SWIGTYPE_p_int.getCPtr(arg1), SWIGTYPE_p_int.getCPtr(arg2), arg3);
|
|
}
|
|
|
|
public int GetCharge(int arg0) {
|
|
return openbabelJNI.OBSmartsPattern_GetCharge(swigCPtr, this, arg0);
|
|
}
|
|
|
|
public String GetSMARTS() {
|
|
return openbabelJNI.OBSmartsPattern_GetSMARTS__SWIG_0(swigCPtr, this);
|
|
}
|
|
|
|
public int GetVectorBinding(int idx) {
|
|
return openbabelJNI.OBSmartsPattern_GetVectorBinding(swigCPtr, this, idx);
|
|
}
|
|
|
|
public boolean Empty() {
|
|
return openbabelJNI.OBSmartsPattern_Empty(swigCPtr, this);
|
|
}
|
|
|
|
public boolean IsValid() {
|
|
return openbabelJNI.OBSmartsPattern_IsValid(swigCPtr, this);
|
|
}
|
|
|
|
public boolean Init(String arg0) {
|
|
return openbabelJNI.OBSmartsPattern_Init__SWIG_0(swigCPtr, this, arg0);
|
|
}
|
|
|
|
public void WriteMapList(SWIGTYPE_p_std__ostream arg0) {
|
|
openbabelJNI.OBSmartsPattern_WriteMapList(swigCPtr, this, SWIGTYPE_p_std__ostream.getCPtr(arg0));
|
|
}
|
|
|
|
public boolean Match(OBMol mol, boolean single) {
|
|
return openbabelJNI.OBSmartsPattern_Match__SWIG_0(swigCPtr, this, OBMol.getCPtr(mol), mol, single);
|
|
}
|
|
|
|
public boolean Match(OBMol mol) {
|
|
return openbabelJNI.OBSmartsPattern_Match__SWIG_1(swigCPtr, this, OBMol.getCPtr(mol), mol);
|
|
}
|
|
|
|
public boolean RestrictedMatch(OBMol mol, SWIGTYPE_p_std__vectorTstd__pairTint_int_t_t pairs, boolean single) {
|
|
return openbabelJNI.OBSmartsPattern_RestrictedMatch__SWIG_0(swigCPtr, this, OBMol.getCPtr(mol), mol, SWIGTYPE_p_std__vectorTstd__pairTint_int_t_t.getCPtr(pairs), single);
|
|
}
|
|
|
|
public boolean RestrictedMatch(OBMol mol, SWIGTYPE_p_std__vectorTstd__pairTint_int_t_t pairs) {
|
|
return openbabelJNI.OBSmartsPattern_RestrictedMatch__SWIG_1(swigCPtr, this, OBMol.getCPtr(mol), mol, SWIGTYPE_p_std__vectorTstd__pairTint_int_t_t.getCPtr(pairs));
|
|
}
|
|
|
|
public boolean RestrictedMatch(OBMol mol, OBBitVec bv, boolean single) {
|
|
return openbabelJNI.OBSmartsPattern_RestrictedMatch__SWIG_2(swigCPtr, this, OBMol.getCPtr(mol), mol, OBBitVec.getCPtr(bv), bv, single);
|
|
}
|
|
|
|
public boolean RestrictedMatch(OBMol mol, OBBitVec bv) {
|
|
return openbabelJNI.OBSmartsPattern_RestrictedMatch__SWIG_3(swigCPtr, this, OBMol.getCPtr(mol), mol, OBBitVec.getCPtr(bv), bv);
|
|
}
|
|
|
|
public vvInt GetMapList() {
|
|
return new vvInt(openbabelJNI.OBSmartsPattern_GetMapList(swigCPtr, this), false);
|
|
}
|
|
|
|
public vvInt GetUMapList() {
|
|
return new vvInt(openbabelJNI.OBSmartsPattern_GetUMapList(swigCPtr, this), false);
|
|
}
|
|
|
|
public SWIGTYPE_p_std__vectorTstd__vectorTint_t_t__iterator BeginMList() {
|
|
return new SWIGTYPE_p_std__vectorTstd__vectorTint_t_t__iterator(openbabelJNI.OBSmartsPattern_BeginMList(swigCPtr, this), true);
|
|
}
|
|
|
|
public SWIGTYPE_p_std__vectorTstd__vectorTint_t_t__iterator EndMList() {
|
|
return new SWIGTYPE_p_std__vectorTstd__vectorTint_t_t__iterator(openbabelJNI.OBSmartsPattern_EndMList(swigCPtr, this), true);
|
|
}
|
|
|
|
}
|