/* ---------------------------------------------------------------------------- * 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 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 void delete() { if(swigCPtr != 0 && swigCMemOwn) { swigCMemOwn = false; net.sourceforge.openbabelJNI.delete_OBSmartsPattern(swigCPtr); } swigCPtr = 0; } public OBSmartsPattern() { this(net.sourceforge.openbabelJNI.new_OBSmartsPattern__SWIG_0(), true); } public OBSmartsPattern(OBSmartsPattern cp) { this(net.sourceforge.openbabelJNI.new_OBSmartsPattern__SWIG_1(OBSmartsPattern.getCPtr(cp)), true); } public long NumMatches() { return net.sourceforge.openbabelJNI.OBSmartsPattern_NumMatches(swigCPtr); } public long NumAtoms() { return net.sourceforge.openbabelJNI.OBSmartsPattern_NumAtoms(swigCPtr); } public long NumBonds() { return net.sourceforge.openbabelJNI.OBSmartsPattern_NumBonds(swigCPtr); } public int GetAtomicNum(int arg0) { return net.sourceforge.openbabelJNI.OBSmartsPattern_GetAtomicNum(swigCPtr, arg0); } public void GetBond(SWIGTYPE_p_int arg0, SWIGTYPE_p_int arg1, SWIGTYPE_p_int arg2, int arg3) { net.sourceforge.openbabelJNI.OBSmartsPattern_GetBond(swigCPtr, SWIGTYPE_p_int.getCPtr(arg0), SWIGTYPE_p_int.getCPtr(arg1), SWIGTYPE_p_int.getCPtr(arg2), arg3); } public int GetCharge(int arg0) { return net.sourceforge.openbabelJNI.OBSmartsPattern_GetCharge(swigCPtr, arg0); } public String GetSMARTS() { return net.sourceforge.openbabelJNI.OBSmartsPattern_GetSMARTS__SWIG_0(swigCPtr); } public int GetVectorBinding(int idx) { return net.sourceforge.openbabelJNI.OBSmartsPattern_GetVectorBinding(swigCPtr, idx); } public boolean Empty() { return net.sourceforge.openbabelJNI.OBSmartsPattern_Empty(swigCPtr); } public boolean IsValid() { return net.sourceforge.openbabelJNI.OBSmartsPattern_IsValid(swigCPtr); } public boolean Init(String arg0) { return net.sourceforge.openbabelJNI.OBSmartsPattern_Init__SWIG_0(swigCPtr, arg0); } public void WriteMapList(SWIGTYPE_p_std__ostream arg0) { net.sourceforge.openbabelJNI.OBSmartsPattern_WriteMapList(swigCPtr, SWIGTYPE_p_std__ostream.getCPtr(arg0)); } public boolean Match(OBMol mol, boolean single) { return net.sourceforge.openbabelJNI.OBSmartsPattern_Match__SWIG_0(swigCPtr, OBMol.getCPtr(mol), single); } public boolean Match(OBMol mol) { return net.sourceforge.openbabelJNI.OBSmartsPattern_Match__SWIG_1(swigCPtr, OBMol.getCPtr(mol)); } public boolean RestrictedMatch(OBMol mol, SWIGTYPE_p_std__vectorTstd__pairTint_int_t_t pairs, boolean single) { return net.sourceforge.openbabelJNI.OBSmartsPattern_RestrictedMatch__SWIG_0(swigCPtr, OBMol.getCPtr(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 net.sourceforge.openbabelJNI.OBSmartsPattern_RestrictedMatch__SWIG_1(swigCPtr, OBMol.getCPtr(mol), SWIGTYPE_p_std__vectorTstd__pairTint_int_t_t.getCPtr(pairs)); } public boolean RestrictedMatch(OBMol mol, OBBitVec bv, boolean single) { return net.sourceforge.openbabelJNI.OBSmartsPattern_RestrictedMatch__SWIG_2(swigCPtr, OBMol.getCPtr(mol), OBBitVec.getCPtr(bv), single); } public boolean RestrictedMatch(OBMol mol, OBBitVec bv) { return net.sourceforge.openbabelJNI.OBSmartsPattern_RestrictedMatch__SWIG_3(swigCPtr, OBMol.getCPtr(mol), OBBitVec.getCPtr(bv)); } public vvInt GetMapList() { return new vvInt(net.sourceforge.openbabelJNI.OBSmartsPattern_GetMapList(swigCPtr), false); } public vvInt GetUMapList() { return new vvInt(net.sourceforge.openbabelJNI.OBSmartsPattern_GetUMapList(swigCPtr), false); } public SWIGTYPE_p_std__vectorTstd__vectorTint_t_t__iterator BeginMList() { return new SWIGTYPE_p_std__vectorTstd__vectorTint_t_t__iterator(net.sourceforge.openbabelJNI.OBSmartsPattern_BeginMList(swigCPtr), true); } public SWIGTYPE_p_std__vectorTstd__vectorTint_t_t__iterator EndMList() { return new SWIGTYPE_p_std__vectorTstd__vectorTint_t_t__iterator(net.sourceforge.openbabelJNI.OBSmartsPattern_EndMList(swigCPtr), true); } }